Closed an0wak closed 1 year ago
besides the problem you found in prepare.sh (already fixed) everything works. (tested 1 minute ago). You can not just change variable names in the docker-compose.yml. Only (if ever) change the value but not the variable name.
Your guacamole can not connect to postgres because you changed the variable names of postgres so the postgres docker daemon does not know which user is allowed to connect. As you can read here, the variables must have defined names!
https://hub.docker.com/_/postgres
POSTGRES_USER
and NOT POSTGRESQL_USER
Be more careful when changing things.
Thanks for reporting the other bug in prepare.sh
The reason I changed them was that when looking at the logs of guacamole_compose these appeared.
WARNING: POSTGRES_HOSTNAME detected, please use POSTGRESQL_HOSTNAME for further deployments.
WARNING: POSTGRES_DATABASE detected, please use POSTGRESQL_DATABASE for further deployments.
WARNING: POSTGRES_USER detected, please use POSTGRESQL_USER for further deployments.
WARNING: POSTGRES_PASSWORD detected, please use POSTGRESQL_PASSWORD for further deployments.
this helped me:
psql -U guacamole_user -d guacamole_db -f ./docker-entrypoint-initdb.d/initdb.sql
That is exactly what the prepare script does.
Just ended up here, and what wasn't clear to me was that after running the very first docker compose up -d
, the db init script was run, but after that, just taking the services down and back up again after changing the docker-compose.yaml
(e.g. changing the username / password in postgres) isn't sufficient. The database initdb is only triggered if the database doesn't exist, so sudo rm -f ./data/gaucamole
is also required if you don't want to run reset.sh
and clear absolutely everything. What @Lapeno94 posted I guess would also re-run that initialisation with the updated password details.
Hi,
So gone brand new install. Ran through some troubleshooting but cannot login.
Presented with.
sudo docker container logs nginx_guacamole_compose
Found error about guacamole_user but password is standard. sudo docker container logs guacamole_compose
sudo docker container logs postgres_guacamole_compose
sudo docker container logs guacd_compose
My docker-compose.yml Note: Under guacamole changed POSTGRES* --> POSTGRESQL*, as it was spitting out a warning. but apart from this nothing else.