Chris Goddard
08/30/2020, 3:45 PMbackend
is correctly set and the runner token is available as an environment variable). however, when I give the flow docker storage and spin up a docker agent, nothing happens when I try to trigger a flow from the ui - no errors, it's just like it's not receiving any instructions from prefect cloud.
I am working in WSL2 (widows linux subsystem) - which creates all kinds of hellish networking issues (classic windows) - but I've confirmed that docker is working and I've run the docker image that was created for my flow and run the flow manually within the container by unpickling and running flow.run
The on thing I thought it might be was failure to connect to the docker daemon (in case wsl ran it somewhere else) but I've confirmed that it's running at unix:///var/run/docker.sock (I think earlier versions of WSL had an issue but I don't think that's what's going on).
What else could I try? any suggestions?
prefect diagnostics
output:
{
"config_overrides": {
"cloud": {
"agent": {
"auth_token": true
}
},
"context": {
"secrets": false
}
},
"env_vars": [
"PREFECT__CLOUD__AGENT__AUTH_TOKEN"
],
"system_information": {
"platform": "Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29",
"prefect_version": "0.13.4",
"python_version": "3.8.1"
}
}
nicholas
08/30/2020, 3:54 PMScheduled
State in the UI but never leave it? Or do they get Submitted
?Chris Goddard
08/30/2020, 3:56 PMScheduled
and then I get a message saying they're behind schedule - so they never runnicholas
08/30/2020, 3:58 PMChris Goddard
08/30/2020, 4:00 PM400 Client Error: Bad Request ("invalid IP address in add-host: """)
ERROR - agent | Error while deploying flow: APIError(HTTPError('400 Client Error: Bad Request for url: <http+docker://localhost/v1.40/containers/create'>))
nicholas
08/30/2020, 4:06 PMChris Goddard
08/30/2020, 4:09 PMnicholas
08/30/2020, 4:11 PMChris Goddard
08/30/2020, 4:37 PMnicholas
08/30/2020, 4:51 PMChris Goddard
08/30/2020, 4:51 PMnicholas
08/30/2020, 4:53 PMChris Goddard
08/30/2020, 4:53 PMnicholas
08/30/2020, 4:54 PMChris Goddard
08/30/2020, 4:55 PMnicholas
08/30/2020, 4:55 PMChris Goddard
08/30/2020, 4:56 PMnicholas
08/30/2020, 4:58 PMChris Goddard
08/30/2020, 4:58 PMinvalid IP address in add-host: """
I'm just using a simple docker storage object - with a base dockerfile and local_image=True. I'm not using a registry url.
add-host is clearly part of how prefect is creating the container - is there some other docker networking configuration I might need?get_docker_ip()
is returning null--no-docker-interface
flag on the prefect agent start command.nicholas
08/30/2020, 6:12 PM