Hi people, I'm getting this weired error while usi...
# ask-community
x
Hi people, I'm getting this weired error while using custom Docker image with DockerRun on Prefect Server, the error pops up immediately after the agent pulled the image successfully, and no task has been executed yet. I didn't use
rstrip
anywhere in my code and the flow runs smoothly with LocalRun. I wounder is it possible for me to get a full stacktrace on this error... Thanks for your help!
k
Hey @Xyp Jn, are you using Azure Storage?
x
Oh yes, I'm using Azure storage. Is this an authentication problem?
k
There is an issue for this and a workaround detailed here
🙌 1
x
Thanks! So basically we need to have a env variable named "AZURE_STORAGE_CONNECTION_STRING" at the running environment? Just initializing an Azure storage will not work because the connection string is not stored with the flow?
Will it be a good idea for me to build an image with this variable set?
k
So just to clarify env variables are only passed from agent to Flow for local agents. The others don’t so having it in the container should work or you can do it upon agent start like:
prefect agent docker start --env AZURE_STORAGE_CONNECTION_STRING
and this will be passed to the Flow.