Hello,
I have been reading the manual and trying to figure out what I am doing wrong.
I presume I have a simple mistake somewhere or something that I have missed
when reading the manual.
I setup a new instance of Guacamole using Docker and Docker Compose.
version: '3.0'
networks:
guacnetwork:
services:
guacd:
container_name: guacd
image:
registry1.dso.mil/ironbank/opensource/apache/guacamole/guacamole-server:1.4.0
networks:
guacnetwork:
restart: always
postgres:
container_name: postgres
image: registry1.dso.mil/ironbank/opensource/postgres/postgresql12:12.12
environment:
PGDATA: /var/lib/postgresql/data/guacamole
POSTGRES_DB: guacamoledb
POSTGRES_PASSWORD: 'guacamole'
POSTGRES_USER: 'guacamole'
networks:
guacnetwork:
restart: always
volumes:
- ./init:/docker-entrypoint-initdb.d:z
- ./data:/var/lib/postgresql/data:Z
guacamole:
container_name: guacamole
image:
registry1.dso.mil/ironbank/opensource/apache/guacamole/guacamole-client:1.4.0
depends_on:
- guacd
- postgres
environment:
GUACD_HOSTNAME: guacd
POSTGRES_DATABASE: guacamoledb
POSTGRES_HOSTNAME: postgres
POSTGRES_PASSWORD: 'guacamole'
POSTGRES_USER: 'guacamole'
links:
- guacd
networks:
guacnetwork:
ports:
- 8080:8080/tcp
restart: always
I have observed the following:
1. The general setup of the containers work and no containers are restarting
due to misconfigurations or errors.
2. The web UI is available
3. The logs show the database is created and the schema is applied to the DB.
4. I can see the guacadmin user account creation is part of the init script
5. When I try to login via the web UI as guacadmin I get the error message
"Invalid Login"
6. docker logs -f guacamole shows:
16:15:17.956 [http-nio-8080-exec-4] WARN o.a.g.r.auth.AuthenticationService -
Authentication attempt from 172.28.0.1 for user "guacadmin" failed.
Why is auth failing? I did review the GUACAMOLE_HOME/extensions and
GUACAMOLE_HOME/lib directories.
Extesions folder contains a file:
guacamole-auth-jdbc-postgresql-1.4.0.jar
Lib folder contains a file:
postgresql-42.3.3.jar
My guacamole.properties is as follows:
# guacamole.properties - generated Wed Oct 26 14:53:23 UTC 2022
guacd-hostname: guacd
guacd-port: 4822
postgresql-username: guacamole
postgresql-password: guacamole
postgresql-database: guacamoledb
postgresql-hostname: postgres
postgresql-port: 5432
Everything seems to be generally correct based on what I have read. What else
can someone suggest to troubleshoot?
Jeremy