tankmek / guacamole-docker-compose

Build Apache Guacamole using MariaDB and Nginx with docker compose. Utilizes Docker secrets and a persistent database volume.
GNU General Public License v3.0
2 stars 3 forks source link

mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied #2

Open SuperGaleb opened 1 year ago

SuperGaleb commented 1 year ago

Hi,

I still have issues with guacamole versions 14 and 15, version 13 works fine. My docker runs in namespaces. I use same docker-compose file in both cases (on same VM, same or new db), if I pull version 13, everything works fine. Once I change to v14 or v15 guacamole container keeps restarting. Returning to v 13 everything is back up again. Thanks for your time.

Please see details below:

Guacamole version 13:

Last login: Fri Mar 3 13:42:40 2023 from 192.168.25.16 root@zeus:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1799429c4d78 nginx:latest "/docker-entrypoint.…" 4 days ago Up 2 days 80/tcp, 0.0.0.0:3443->443/tcp, :::3443->443/tcp gproxy 4962afe95a39 guacamole/guacamole:1.3.0 "/opt/guacamole/bin/…" 4 days ago Up 2 days 8080/tcp guacamole 700f0846c792 mariadb:10.5.13 "docker-entrypoint.s…" 4 days ago Up 2 days 3306/tcp guacamole-db 9c866d473db0 guacamole/guacd:latest "/bin/sh -c '/opt/gu…" 4 days ago Up 2 days (healthy) 4822/tcp

Guacamole version 14 or 15

root@zeus:/opt/guacamole# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 72a7d49fcfbd nginx:1.20.2 "/docker-entrypoint.…" 26 seconds ago Up 25 seconds 80/tcp, 0.0.0.0:3443->443/tcp, :::3443->443/tcp gproxy 528d2b0b711e guacamole/guacamole:1.5.0 "/opt/guacamole/bin/…" 26 seconds ago Restarting (1) 10 seconds ago guacamole 7b1cd5900851 guacamole/guacd:1.5.0 "/bin/sh -c '/opt/gu…" 27 seconds ago Up 26 seconds (health: starting) 4822/tcp guacd dc8c2771a8a9 mariadb:10.5.13 "docker-entrypoint.s…" 27 seconds ago Up 26 seconds 3306/tcp

root@zeus:/opt/guacamole# docker logs guacamole mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied mkdir: cannot create directory ‘/home/guacamole/.guacamole’: Permission denied root@zeus:/opt/guacamole#

tankmek commented 1 year ago

Have you checked /var/log/audit/audit.log for any clues? What about disabling selinux and seeing if that is related?

SuperGaleb commented 1 year ago

I migrated guacamole to different VM (docker - no namespaces) and it works fine. Looks versions 14 and 15 do not like namespaces. If you have any idea how to fix it it would be nice to go back to namespaces. Thanks.

tankmek commented 1 year ago

I will do some tests with namespaces and get back to you