Hi everyone. I have a flow that uses docker storag...
# ask-community
p
Hi everyone. I have a flow that uses docker storage. I am triggering the flow from Prefect cloud and the flow starts but it does not update the progress in prefect Cloud. The flow status is "Submitted" but and all tasks show as "pending". However, I see that the flow is running fine when I start the agent with
--show-flow-logs
. It looks like the flow is not communicating with Prefect Cloud. The flow is running an R script. I am using the
rocker/r-ver:4.1.0
image as a base and installing python 3.7 via
apt-get
. I suspect the issue is related to this. Maybe I am not installing python correctly. See my docker file in the thread. Thanks!
Dockerfile
n
Hi @Pedro Machado - a few things to check first: 1) can you access Prefect Cloud from within the container? Or any internet resources? 2) What are the logs you're seeing with the show flow logs flag?
p
Untitled
Hi Nicholas. Other flows work fine so there is no issue between the docker host and prefect cloud. I tried
curl <http://api.prefect.io|api.prefect.io>
from this container and got some html with a 404 response so I imagine the communication is OK. See the flow logs above as printed by the agent.
n
Ok perfect - thanks for checking those. Can you share your flow code so we can look at that?
(even a min reproducible example is fine, if you don't want to/can't share all of it)
p
Here is the flow.
I found the problem. My entrypoint was bad. What is the recommended entrypoint on custom Docker files?
n
Hi @Pedro Machado - I'm not sure there's a recommended entrypoint for your dockerfile; the only requirement that I know of is that Prefect can be or is installed in the container
p
Thank you!