Closed nath67 closed 1 year ago
Related to #70
Just cloned the repo. ran ./prepare.sh
and then docker-compose up -d
and it worked.
Please check you use the latest version from this repo and also (if you changed passwords) that the passwords match between the guacamole:
and the posgres:
section and the username is identical.
postgres:
POSTGRES_DB: guacamole_db
> POSTGRES_PASSWORD: 'ChooseYourOwnPasswordHere1234'
> POSTGRES_USER: guacamole_user
POSTGRES_DATABASE: guacamole_db
POSTGRES_HOSTNAME: postgres
guacamole:
> POSTGRES_PASSWORD: 'ChooseYourOwnPasswordHere1234'
> POSTGRES_USER: guacamole_user
What I did:
git clone https://github.com/boschkundendienst/guacamole-docker-compose.git
cd guacamole-docker-compose/
./prepare.sh
docker-compose up -d
# wait 30 seconds
docker-compose logs
To reproduce don't try with your version, try with the original one and make sure you do not use old containers/images already downloaded or try to add version numbers in docker-compose.yml.
This is how a normal first start looks using docker-compose logs
after docker-compose up -d
.
guacd_compose | guacd[1]: INFO: Guacamole proxy daemon (guacd) version 1.5.3 started
guacd_compose | guacd[1]: INFO: Listening on host 0.0.0.0, port 4822
postgres_guacamole_compose | The files belonging to this database system will be owned by user "postgres".
postgres_guacamole_compose | This user must also own the server process.
postgres_guacamole_compose |
postgres_guacamole_compose | The database cluster will be initialized with locale "en_US.utf8".
postgres_guacamole_compose | The default database encoding has accordingly been set to "UTF8".
postgres_guacamole_compose | The default text search configuration will be set to "english".
postgres_guacamole_compose |
postgres_guacamole_compose | Data page checksums are disabled.
postgres_guacamole_compose |
postgres_guacamole_compose | fixing permissions on existing directory /var/lib/postgresql/data/guacamole ... ok
postgres_guacamole_compose | creating subdirectories ... ok
postgres_guacamole_compose | selecting dynamic shared memory implementation ... posix
postgres_guacamole_compose | selecting default max_connections ... 100
postgres_guacamole_compose | selecting default shared_buffers ... 128MB
postgres_guacamole_compose | selecting default time zone ... UTC
postgres_guacamole_compose | creating configuration files ... ok
postgres_guacamole_compose | running bootstrap script ... ok
postgres_guacamole_compose | sh: locale: not found
postgres_guacamole_compose | 2023-08-03 10:42:43.595 UTC [32] WARNING: no usable system locales were found
postgres_guacamole_compose | performing post-bootstrap initialization ... ok
postgres_guacamole_compose | syncing data to disk ... ok
postgres_guacamole_compose |
postgres_guacamole_compose | initdb: warning: enabling "trust" authentication for local connections
postgres_guacamole_compose | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
postgres_guacamole_compose |
postgres_guacamole_compose | Success. You can now start the database server using:
guacamole_compose | WARNING: POSTGRES_HOSTNAME detected, please use POSTGRESQL_HOSTNAME for further deployments.
guacamole_compose | WARNING: POSTGRES_DATABASE detected, please use POSTGRESQL_DATABASE for further deployments.
guacamole_compose | WARNING: POSTGRES_USER detected, please use POSTGRESQL_USER for further deployments.
guacamole_compose | WARNING: POSTGRES_PASSWORD detected, please use POSTGRESQL_PASSWORD for further deployments.
guacamole_compose | 03-Aug-2023 10:42:44.464 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.91
guacamole_compose | 03-Aug-2023 10:42:44.514 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 6 2023 14:43:48 UTC
guacamole_compose | 03-Aug-2023 10:42:44.515 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.91.0
guacamole_compose | 03-Aug-2023 10:42:44.515 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
guacamole_compose | 03-Aug-2023 10:42:44.515 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.19.0-50-generic
guacamole_compose | 03-Aug-2023 10:42:44.515 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
guacamole_compose | 03-Aug-2023 10:42:44.515 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /opt/java/openjdk/jre
guacamole_compose | 03-Aug-2023 10:42:44.515 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_382-b05
guacamole_compose | 03-Aug-2023 10:42:44.516 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Temurin
guacamole_compose | 03-Aug-2023 10:42:44.516 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/guacamole/tomcat
guacamole_compose | 03-Aug-2023 10:42:44.516 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
guacamole_compose | 03-Aug-2023 10:42:44.516 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/guacamole/tomcat/conf/logging.properties
guacamole_compose | 03-Aug-2023 10:42:44.516 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
guacamole_compose | 03-Aug-2023 10:42:44.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
nginx_guacamole_compose | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_guacamole_compose | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_guacamole_compose | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_guacamole_compose | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx_guacamole_compose | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx_guacamole_compose | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx_guacamole_compose | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
guacamole_compose | 03-Aug-2023 10:42:44.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
guacamole_compose | 03-Aug-2023 10:42:44.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
guacamole_compose | 03-Aug-2023 10:42:44.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
guacamole_compose | 03-Aug-2023 10:42:44.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/guacamole/tomcat
nginx_guacamole_compose | 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/guacamole.conf.template to /etc/nginx/conf.d/guacamole.conf
nginx_guacamole_compose | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
guacamole_compose | 03-Aug-2023 10:42:44.517 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
postgres_guacamole_compose |
guacamole_compose | 03-Aug-2023 10:42:44.518 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/guacamole/tomcat/temp
nginx_guacamole_compose | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_guacamole_compose | 2023/08/03 10:42:41 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/guacamole.conf:3
nginx_guacamole_compose | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/guacamole.conf:3
nginx_guacamole_compose | 2023/08/03 10:42:41 [emerg] 1#1: host not found in upstream "guacamole" in /etc/nginx/conf.d/guacamole.conf:19
guacamole_compose | 03-Aug-2023 10:42:44.518 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.37] using APR version [1.7.0].
nginx_guacamole_compose | nginx: [emerg] host not found in upstream "guacamole" in /etc/nginx/conf.d/guacamole.conf:19
guacamole_compose | 03-Aug-2023 10:42:44.518 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [{4}].
guacamole_compose | 03-Aug-2023 10:42:44.518 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
guacamole_compose | 03-Aug-2023 10:42:44.605 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.2 15 Mar 2022]
guacamole_compose | 03-Aug-2023 10:42:44.844 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
guacamole_compose | 03-Aug-2023 10:42:44.892 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1377 ms
guacamole_compose | 03-Aug-2023 10:42:44.960 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
guacamole_compose | 03-Aug-2023 10:42:44.960 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.91]
guacamole_compose | 03-Aug-2023 10:42:44.987 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/guacamole/tomcat/webapps/guacamole.war]
guacamole_compose | 03-Aug-2023 10:42:47.222 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
guacamole_compose | 10:42:47.988 [localhost-startStop-1] INFO o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/home/guacamole/.guacamole".
guacamole_compose | 10:42:48.119 [localhost-startStop-1] INFO o.a.g.GuacamoleServletContextListener - Read configuration parameters from "/home/guacamole/.guacamole/guacamole.properties".
guacamole_compose | 10:42:48.122 [localhost-startStop-1] INFO o.a.g.rest.auth.HashTokenSessionMap - Sessions will expire after 60 minutes of inactivity.
guacamole_compose | 10:42:49.667 [localhost-startStop-1] INFO o.a.g.extension.ExtensionModule - Extension "PostgreSQL Authentication" (postgresql) loaded.
guacamole_compose | 10:42:49.893 [localhost-startStop-1] INFO o.a.g.t.w.WebSocketTunnelModule - Loading JSR-356 WebSocket support...
nginx_guacamole_compose | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_guacamole_compose | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_guacamole_compose | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_guacamole_compose | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
guacamole_compose | 03-Aug-2023 10:42:51.285 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/guacamole/tomcat/webapps/guacamole.war] has finished in [6,297] ms
guacamole_compose | 03-Aug-2023 10:42:51.287 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
guacamole_compose | 03-Aug-2023 10:42:51.311 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 6418 ms
postgres_guacamole_compose | pg_ctl -D /var/lib/postgresql/data/guacamole -l logfile start
postgres_guacamole_compose |
nginx_guacamole_compose | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx_guacamole_compose | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_guacamole_compose | 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/guacamole.conf.template to /etc/nginx/conf.d/guacamole.conf
nginx_guacamole_compose | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_guacamole_compose | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_guacamole_compose | 2023/08/03 10:42:43 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/guacamole.conf:3
nginx_guacamole_compose | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/guacamole.conf:3
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: using the "epoll" event method
postgres_guacamole_compose | waiting for server to start....2023-08-03 10:42:44.975 UTC [38] LOG: starting PostgreSQL 15.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, 64-bit
postgres_guacamole_compose | 2023-08-03 10:42:44.983 UTC [38] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_guacamole_compose | 2023-08-03 10:42:45.006 UTC [41] LOG: database system was shut down at 2023-08-03 10:42:44 UTC
postgres_guacamole_compose | 2023-08-03 10:42:45.026 UTC [38] LOG: database system is ready to accept connections
postgres_guacamole_compose | done
postgres_guacamole_compose | server started
postgres_guacamole_compose | CREATE DATABASE
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: nginx/1.25.1
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14)
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: OS: Linux 5.19.0-50-generic
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker processes
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 27
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 28
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 29
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 30
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 31
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 32
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 33
nginx_guacamole_compose | 2023/08/03 10:42:43 [notice] 1#1: start worker process 34
postgres_guacamole_compose |
postgres_guacamole_compose |
postgres_guacamole_compose | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/initdb.sql
postgres_guacamole_compose | CREATE TYPE
postgres_guacamole_compose | CREATE TYPE
postgres_guacamole_compose | CREATE TYPE
postgres_guacamole_compose | CREATE TYPE
postgres_guacamole_compose | CREATE TYPE
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | CREATE TABLE
postgres_guacamole_compose | CREATE INDEX
postgres_guacamole_compose | INSERT 0 1
postgres_guacamole_compose | INSERT 0 1
postgres_guacamole_compose | INSERT 0 6
postgres_guacamole_compose | INSERT 0 3
postgres_guacamole_compose |
postgres_guacamole_compose |
postgres_guacamole_compose | waiting for server to shut down...2023-08-03 10:42:46.253 UTC [38] LOG: received fast shutdown request
postgres_guacamole_compose | .2023-08-03 10:42:46.259 UTC [38] LOG: aborting any active transactions
postgres_guacamole_compose | 2023-08-03 10:42:46.261 UTC [38] LOG: background worker "logical replication launcher" (PID 44) exited with exit code 1
postgres_guacamole_compose | 2023-08-03 10:42:46.262 UTC [39] LOG: shutting down
postgres_guacamole_compose | 2023-08-03 10:42:46.269 UTC [39] LOG: checkpoint starting: shutdown immediate
postgres_guacamole_compose | 2023-08-03 10:42:46.417 UTC [39] LOG: checkpoint complete: wrote 1000 buffers (6.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.043 s, sync=0.068 s, total=0.155 s; sync files=277, longest=0.013 s, average=0.001 s; distance=4810 kB, estimate=4810 kB
postgres_guacamole_compose | 2023-08-03 10:42:46.429 UTC [38] LOG: database system is shut down
postgres_guacamole_compose | done
postgres_guacamole_compose | server stopped
postgres_guacamole_compose |
postgres_guacamole_compose | PostgreSQL init process complete; ready for start up.
postgres_guacamole_compose |
postgres_guacamole_compose | 2023-08-03 10:42:46.512 UTC [1] LOG: starting PostgreSQL 15.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, 64-bit
postgres_guacamole_compose | 2023-08-03 10:42:46.512 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_guacamole_compose | 2023-08-03 10:42:46.512 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_guacamole_compose | 2023-08-03 10:42:46.526 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_guacamole_compose | 2023-08-03 10:42:46.554 UTC [56] LOG: database system was shut down at 2023-08-03 10:42:46 UTC
postgres_guacamole_compose | 2023-08-03 10:42:46.571 UTC [1] LOG: database system is ready to accept connections
postgres_guacamole_compose | 2023-08-03 10:47:46.653 UTC [54] LOG: checkpoint starting: time
postgres_guacamole_compose | 2023-08-03 10:47:55.863 UTC [54] LOG: checkpoint complete: wrote 94 buffers (0.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=9.162 s, sync=0.010 s, total=9.210 s; sync files=23, longest=0.007 s, average=0.001 s; distance=449 kB, estimate=449 kB
As you can see, prepare.sh
must be correct since the startup ran initdb.sql
via docker-entrypoint.sh
inside the container:
postgres_guacamole_compose | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/initdb.sql
So I can see no error and if it works in my docker in should work in your docker, too. (Docker version 20.10.18, build b40c2f6) on Ubuntu 22.04.2 LTS.
Deleting all local images resolved the issue : docker rmi $(docker images -a -q)
Thank you for your help !
I think you are working with an old local copy of the guacamole/guacamole image.
Take a look at docker images
and use docker rmi <image-id>
to delete the old copies of guacamole/guacamole
, postgres
, guacd
, nginx
. The retry.
Changing the parameter in prepare.sh does not help, it is already fine. You have to remove the old images.
I assume your source for the images is the default docker repository?
Again tested on a seconde newly installed machine - it works!
I have the following error :
I followed the doc and initdb.sql is correct. I can also mention that the option "--postgresql" in prepare.sh is not working anymore, it's "--postgres" again.