cannot create directory '/home/node/.cache': Permission denied #95
|
Don know what I am doing wrong. I keep getting this error What am I doing wrong? |
Replies: 4 comments 10 replies
|
This same issue was closed before, but I do think this needs some further info. Are you running on a Synology NAS by chance? Mine was running fine and not referencing the .cache folder at all until I pulled the latest release, and then I started getting the same errors you're experiencing. What I did to fix it was add another volume to redirect the /home/node/.cache folder to another one on the host. When running, Cinephage seems to reference the /home/node/.cache and just plain /.cache for different things, so I just created one for each. Here's my full volume section of my docker compose: volumes: I have /home/node/.cache pointed to /cache on the host, and I created a new one for the /.cache which is pointed to /camoufoxcache on the host. This is what worked for me. Can you try that? If not, can you show your compose file so we can see how you're set up? |
|
I'll look into this - I am off of work today. We've been testing different things with Camoufox which is used for bypassing cloudflare things. |
|
Alright, finally got some of this shit figured out better. The issue was Camoufox (the browser we use for bypassing Cloudflare) was trying to write to /home/node/.cache, but when you run with custom PUID/PGID that directory doesn't exist or has wrong permissions. What changed:
Now everything (data, logs, cache) stays in /app and works with whatever UID/GID you may use. @mikesellt thanks for the workaround in the meantime - that volume mount approach was clutch while we are still messing with this. Still leaving this open in case I'm just stupid |
|
@ido-nl, are you on synology? Also please post your compose. |
Remove the user flag and pass your UID:GID via the env vars. The userflag only makes sense if you are running rootless docker.