Closed annahung31 closed 3 years ago
Hi @annahung31!
That's a weird error, I haven't seen that before. I'm guessing the user that the Docker daemon runs under doesn't have permission to read from your cog_test/ directory.
You could try to chmod -R 777 cog_test
from the playground/ directory. But I'm not sure that will work.
Is this a cloud instance or a university machine in some sort of managed cluster?
Thanks for the reply! unfortunately changing the permission doesn't solve the error.
It's a machine in the cluster managed by the lab I belong to. We(me and my colleagues) maintain the machine by ourselves, but only one system administrator for each machine, so most of us are non-root users.
Just a note, I also tried on adding myself into the docker group like the Answer of this page, but it still doesn't work.
Fixed! 🥳
The issue was that the folder was part of an sshfs mount. user_allow_other
was disabled which meant that Docker didn't have permission to access it.
Solution: https://serverfault.com/a/947184
We should try to catch errors like this and point to solutions.
Thanks Andreas!
@allcontributors please add @annahung31 for bugs
@zeke
I've put up a pull request to add @annahung31! :tada:
Sharing my experience here : I just had similar issue troubleshooting with weight download with cog run
for https://github.com/replicate/cog-stable-diffusion.
=> => exporting layers 0.0s
=> => writing image sha256:4cb11762fd809c053c4c72975c48a7f0df2f032f58d9cca9566176ff3a304d4c 0.0s
=> => naming to docker.io/library/cog-lorarep-base 0.0s
=> exporting cache 0.0s
=> => preparing build cache for export 0.0s
Running 'script/download-weights' in Docker with the current directory mounted as a volume...
[FATAL tini (7)] exec script/download-weights failed: Permission denied
ⅹ exit status 126
Solution was to give 777 permission to all the scripts on my projects so docker daemons can run them, just like @andreasjansson suggested above.
Hi, Thanks for the cool work!
I'm following the tutorial here and working on Ubuntu as a non-root user. But when I run
cog run python
, I encountered an error:It seems related to the
mount
setting of docker, but I'm not familiar with the docker setting. How can I deal with the error? Where can I find the Dockerfile that cog created and modify the setting? Thanks!The full building log: