ckulka / baikal-docker

Provides a ready-to-go Baikal server, incl. docker-compose.yml & Systemd service file
https://hub.docker.com/r/ckulka/baikal
MIT License
335 stars 46 forks source link

Fatal Error: The system temp directory is not writeable #200

Closed Dark-Gizmoa closed 3 months ago

Dark-Gizmoa commented 3 months ago

After an automativ update with watchtower i get the error message "Baikal Fatal Error: The system temp directory is not writeable" when i try to connect to the WebUI.

Tests i did:

Error message is still there

Dark-Gizmoa commented 3 months ago

after some testing:

docker exec -it bash

Docker Folder (inside container) /tmp is owned by root, only read rights for user nginx. After i fiddled a little bit with the rights (chmod 777), Baikal is up and running.

Is it possible to include a script (like /docker-entrypoint.d/40-fix-baikal-file-permissions.sh) to check the tmp folder and set permissions?

ckulka commented 3 months ago

Hi @Dark-Gizmoa , that is very strange... can you show me what you see when you run the following command inside the container:

ls -l / | grep tmp

Reason why I'm asking is because when I start a new ckulka/baikal:nginx container, the /tmp directory is owned by root, but also is writable by anyone:

$ docker run --rm -it ckulka/baikal:nginx ls -l / | grep tmp
drwxrwxrwt   2 root root 4096 Jun 12 00:00 tmp
Dark-Gizmoa commented 3 months ago

Hi @ckulka,

i think i found the failure:

I changed the image/container folder of docker to an external hdd. Seems that the Access rights werde Set faulty (some correct with r/w some only r) After i chowned the parent folder (in my case /sda/docker_internal/...) everything works fine