Hi folks, how can I write a file to the prefect wo...
# ask-community
n
Hi folks, how can I write a file to the prefect working directory? I have defined my own path using the
prefect_directory
param in the
Docker
storage. I am able read files from that defined path but I cannot write files to that directory - these are files that will be used in the flow execution. Getting
[Errno 13] Permission denied: my/path/filename
Prefect is installed on GKE clusters with Dask Gateway which is used as the Executor.
k
Hey @Nivi Mukka, I think you need to provide in the permission in the container like this . I think you need to use the
chown
and
chmod
commands as seen in the answer
n
Thanks @Kevin Kho. I tried
chown
with my user created in the Dockerfile but that did not work. Now I’m running the Dockerfile commands as root to see if there is another issue.
Running
Dockerfile
as
root
worked.
k
I see. Thanks for the info!
👍 1