alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.52k stars 215 forks source link

šŸ› [Guacamole] postgred could not access directory #660

Closed MarcelW85 closed 1 year ago

MarcelW85 commented 1 year ago

Describe the bug

Guacamole aborts when starting with the following code:

postgres: could not access directory "/config/addons_config/guacamole/postgres": Permission denied
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...

To Reproduce

Full addon log

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
 Add-on: Guacamole Client
 Clientless remote desktop gateway
-----------------------------------------------------------
 Add-on version: 1.4.2-13
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.4  (amd64 / qemux86-64)
 Home Assistant Core: 2023.1.6
 Home Assistant Supervisor: 2022.12.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-custom_script.sh
[11:14:36] INFO: Execute /config/addons_autoscripts/guacamole.sh if existing
[11:14:36] INFO: ... no script found
cont-init: info: /etc/cont-init.d/01-custom_script.sh exited 0
cont-init: info: running /etc/cont-init.d/30-defaults.sh
cont-init: info: /etc/cont-init.d/30-defaults.sh exited 0
cont-init: info: running /etc/cont-init.d/30-folders.sh
cont-init: info: /etc/cont-init.d/30-folders.sh exited 0
cont-init: info: running /etc/cont-init.d/40-postgres.sh
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
initdb: error: could not access directory "/config/addons_config/guacamole/postgres": Permission denied
cont-init: info: /etc/cont-init.d/40-postgres.sh exited 1
cont-init: info: running /etc/cont-init.d/50-extensions
cp: cannot stat '/config/addons_config/guacamole/extensions-available/guacamole-null-1.4.0.jar': No such file or directory
cont-init: info: /etc/cont-init.d/50-extensions exited 1
cont-init: info: running /etc/cont-init.d/90-ingress.sh
cont-init: info: /etc/cont-init.d/90-ingress.sh exited 0
cont-init: info: running /etc/cont-init.d/99-run.sh
cont-init: info: /etc/cont-init.d/99-run.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service syslogd-prepare: starting
s6-rc: info: service syslogd-prepare successfully started
s6-rc: info: service syslogd-log: starting
s6-rc: info: service syslogd-log successfully started
s6-rc: info: service syslogd: starting
s6-rc: info: service syslogd successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun guacamole (no readiness notification)
services-up: info: copying legacy longrun guacd (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun postgres (no readiness notification)
Starting postgres...
Starting guacamole guacd...
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...
guacd[300]: INFO:   Guacamole proxy daemon (guacd) version 1.5.0 started
guacd[300]: INFO:   Listening on host 0.0.0.0, port 4822
postgres: could not access directory "/config/addons_config/guacamole/postgres": Permission denied
s6-rc: info: service legacy-services successfully started
Starting postgres...
postgres: could not access directory "/config/addons_config/guacamole/postgres": Permission denied
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...
Starting postgres...
postgres: could not access directory "/config/addons_config/guacamole/postgres": Permission denied
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...
Starting postgres...
postgres: could not access directory "/config/addons_config/guacamole/postgres": Permission denied
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...

Full addon config

No changes in config

System

Home Assistant 2023.1.6 Supervisor 2022.12.1 Operating System 9.4

alexbelgium commented 1 year ago

Please let me know if that helps

MarcelW85 commented 1 year ago

Unfortunately it doesn't help. Same error.

alexbelgium commented 1 year ago

I've pushed a new version trying to increase permissions, please let me know how that goes

MarcelW85 commented 1 year ago

Hi. No it doesn't help. Same error. After I installed your last version, Raspberrymatic-Addon always restarts.

alexbelgium commented 1 year ago

Crazy... The script "https://github.com/abesnier/docker-guacamole/blob/master/root/etc/cont-init.d/40-postgres.sh" creates the folder, chowns it, then executes the command... It's not even in my addon, I just modify the path inside. I don't see how to help you and I can't replicate... Perhaps try deleting "/config/addons_config/guacamole/postgres" if it exists?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.