Code Monkey home page Code Monkey logo

docker-guacamole's People

Contributors

abesnier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-guacamole's Issues

Passing client ip to tomcat - Cloudflare tunnel

Hi,

More than reporting a bug, what i would like to ask is how do I pass the client public ip address to tomcat server when using cloudflare tunnel as reverse proxy. I have added the variable REMOTE_IP_VALVE_ENABLED: "true" to my compose file but that didn't do anything... Guacamole keeps logging the cloudflared tunnel container ip...

version: "3"
services:
  guacamole:
      image: abesnier/guacamole
      container_name: guacamole
      volumes:
        - postgres:/config
        - /home/guacamole/branding.jar:/config/guacamole/extensions/guacamole-branding-1.5.2.jar
      ports:
        - 8082:8080
      environment:
        USE_DEFAULT_BRANDING: N
        REMOTE_IP_VALVE_ENABLED: true
volumes:
  postgres:
    driver: local

Postgres Password

Hi, first of all, nice that you take your time to mantain this project! 🏆

If i'm not mistaken, when you want to connect to te postgresql db, you do not have to provide a password, is this correkt?
For example, here you provide a update command but no pw is given.

docker exec -it guacamole bash -c "psql -U guacamole guacamole_db -c \"UPDATE guacamole_user_attribute SET attribute_value='false' WHERE attribute_name = 'guac-totp-key-confirmed' and user_id = (SELECT user_id FROM guacamole_user INNER JOIN guacamole_entity ON guacamole_entity.entity_id = guacamole_user.entity_id WHERE guacamole_entity.name = 'your username');\""

If so, feel free to assign me this taks ;-)

Cheers

Change /dev/log location?

Describe Your Problem:

Thanks for continuing to update and support this app. I'm trying to build an addon for homeassistant based on your app, however I have encountered an issue.

HA os (home assistant os) doesn't allow to access /dev/log. This causes the issue "unable to bind socket to /dev/log: Read-only file system"

What could I change to make the logs use another location ?

Here is my repo if you want : https://github.com/alexbelgium/hassio-addons-test/tree/master/guacamole
I've simply modified it to use /data instead of /config (as this is the only remanent location allowed in HA) ; and added a few scripts to provide a banner at launch.

Thanks,
Best regards

Logs:

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-socklog: fatal: unable to bind socket to /dev/log: Read-only file system

Screenshots:

Environment:

SSH Keys Issue

Hey there, I'm running into an issue that isn't unknown, but looks like no one has ever posted a solution for this.

guacd[165]: INFO:	Creating new client for protocol "ssh"
guacd[165]: INFO:	Connection ID is "$d11a8e0c-7f21-44a7-b538-d52f643bdbd3"
guacd[331207]: INFO:	User "@def06cd2-7974-405a-aa29-b9571ee6d086" joined connection "$d11a8e0c-7f21-44a7-b538-d52f643bdbd3" (1 users now present)
16:02:41.640 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService - User "Oosmus" connected to connection "14".
guacd[331207]: INFO:	Auth key successfully imported.
guacd[331207]: ERROR:	Host key not found for <hostname>.
guacd[331207]: ERROR:	Host key did not match any provided known host keys. 
guacd[331207]: INFO:	User "@def06cd2-7974-405a-aa29-b9571ee6d086" disconnected (0 users remain)
guacd[331207]: INFO:	Last user of connection "$d11a8e0c-7f21-44a7-b538-d52f643bdbd3" disconnected
16:02:48.307 [http-nio-8080-exec-3] INFO  o.a.g.tunnel.TunnelRequestService - User "Oosmus" disconnected from connection "14". Duration: 6666 milliseconds
Exception in thread "Thread-51" java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:449)
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:307)
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:249)
	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:191)
	at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:36)
	at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
	at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
	at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
guacd[165]: INFO:	Connection "$d11a8e0c-7f21-44a7-b538-d52f643bdbd3" removed.

Things I have tried:

  • generating new ssh keys that I confirmed worked on another machine without using Guac
  • removing the username from the username field
  • keeping or removing passphrases
  • using the older PEM method, or the newer openSSH method.

The most progress I can make here is connecting and getting a login screen, however, once I enter any username, the connection closes and the above error is posted.

Doc improvement request - underscore not shown in ssh sessions

Thanks for creating/maintaining this docker container its super appreciated by many people and works very well.

Describe The Bug:

Ideally, the readme and dockerhub docs should explain how to work around the default font "monospace" having a problem rendering underscores.

To Reproduce:

Open a SSH session with "Display" "Font name:" monospace or leave the font name blank and you'll get the default font which I believe is compiled into guacd source code as monospace but I could be wrong...

Simply type anything in the console with an underscore like whatever_whatever and the underscore will not visually render although it is there.

Change the default font to something nice like NotoSansMono and underscores are visible again.

Expected behavior:

This probably needs some rephrasing and general improvement, but add doc lines similar to:

There is an issue at this time displaying underscores in SSH sessions using the default font named "monospace".

If you change the Font name: option in a connection to a different font name, perhaps NotoSansMono then underscores will display properly.

If you would like a list of all fonts in the container, simply connect to the container shell and run "fc-list" which will list the eighty fonts available in the container.

Logs:

Remove any sensative information.

Screenshots:

Really the best screenshot and description is your own ticket at

https://issues.apache.org/jira/browse/GUACAMOLE-1478

Environment:

  • Guacamole Version:
  • Operating System:

guacd issue

Hi,

for some time I have connection issues to guacamole and need to try the connection several times until it works, also once it works it can break with network connection seems unstable.

The error I receive in logs is:

11:18:47.360 [Thread-2] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd terminated abnormally: Connection to guacd timed out.

What could I do?

Thanks!

"Creation of WebSocket tunnel to guacd failed"

Describe Your Problem:

Error "An internal error has occurred within the Guacamole server, and the connection has been terminated. If the problem persists, please notify your system administrator, or check your system logs." when trying to launch any connection.

Logs:

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/30-defaults.sh
cont-init: info: /etc/cont-init.d/30-defaults.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 "C.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.
������@fixing permissions on existing directory /config/postgres ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
������Finitdb: warning: enabling "trust" authentication for local connections
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.
������5Success. You can now start the database server using:
������J    /usr/lib/postgresql/13/bin/pg_ctl -D /config/postgres -l logfile start
������9cont-init: info: /etc/cont-init.d/40-postgres.sh exited 0
cont-init: info: running /etc/cont-init.d/50-extensions
cont-init: info: /etc/cont-init.d/50-extensions 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 postgres (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting postgres...
Starting guacamole guacd...
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...
2022-04-03 20:39:19.085 UTC [162] LOG:  starting PostgreSQL 13.5 (Debian 13.5-0+deb11u1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2022-04-03 20:39:19.086 UTC [162] LOG:  listening on IPv6 address "::1", port 5432
2022-04-03 20:39:19.086 UTC [162] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2022-04-03 20:39:19.090 UTC [162] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
guacd[163]: INFO:       Guacamole proxy daemon (guacd) version 1.4.0 started
guacd[163]: INFO:       Listening on host ::1, port 4822
2022-04-03 20:39:19.093 UTC [165] LOG:  database system was shut down at 2022-04-03 20:39:18 UTC
2022-04-03 20:39:19.097 UTC [162] LOG:  database system is ready to accept connections
2022-04-03 20:39:20.078 UTC [173] FATAL:  role "root" does not exist
/var/run/postgresql:5432 - accepting connections
CREATE TYPE
CREATE TYPE
CREATE TYPE
CREATE TYPE
CREATE TYPE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
INSERT 0 1
INSERT 0 1
INSERT 0 6
INSERT 0 3
Starting guacamole client...
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
03-Apr-2022 20:39:20.908 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.60
03-Apr-2022 20:39:20.912 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Mar 9 2022 14:52:25 UTC
03-Apr-2022 20:39:20.912 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.60.0
03-Apr-2022 20:39:20.912 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
03-Apr-2022 20:39:20.912 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            5.4.17-2136.304.4.3.el8uek.aarch64
03-Apr-2022 20:39:20.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          aarch64
03-Apr-2022 20:39:20.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/local/openjdk-11
03-Apr-2022 20:39:20.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.14.1+1
03-Apr-2022 20:39:20.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
03-Apr-2022 20:39:20.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
03-Apr-2022 20:39:20.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
03-Apr-2022 20:39:20.926 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
03-Apr-2022 20:39:20.926 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
03-Apr-2022 20:39:20.926 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
03-Apr-2022 20:39:20.926 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
03-Apr-2022 20:39:20.926 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
03-Apr-2022 20:39:20.926 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
03-Apr-2022 20:39:20.927 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
03-Apr-2022 20:39:20.928 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
03-Apr-2022 20:39:20.934 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
03-Apr-2022 20:39:20.934 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
03-Apr-2022 20:39:20.934 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
03-Apr-2022 20:39:20.941 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1n  15 Mar 2022]
03-Apr-2022 20:39:21.219 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
03-Apr-2022 20:39:21.244 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [505] milliseconds
03-Apr-2022 20:39:21.291 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
03-Apr-2022 20:39:21.291 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.60]
03-Apr-2022 20:39:21.306 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/ROOT.war]
03-Apr-2022 20:39:22.628 INFO [main] 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.
20:39:22.925 [main] INFO  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/config/guacamole".
20:39:23.003 [main] INFO  o.a.g.GuacamoleServletContextListener - Read configuration parameters from "/config/guacamole/guacamole.properties".
20:39:23.004 [main] INFO  o.a.g.rest.auth.HashTokenSessionMap - Sessions will expire after 60 minutes of inactivity.
20:39:23.951 [main] INFO  o.a.g.extension.ExtensionModule - Extension "PostgreSQL Authentication" (postgresql) loaded.
20:39:24.064 [main] INFO  o.a.g.t.w.WebSocketTunnelModule - Loading JSR-356 WebSocket support...
20:39:24.488 [main] WARN  o.g.jersey.server.wadl.WadlFeature - JAXBContext implementation could not be found. WADL feature is disabled.
03-Apr-2022 20:39:24.714 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ROOT.war] has finished in [3,408] ms
03-Apr-2022 20:39:24.719 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
03-Apr-2022 20:39:24.728 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [3484] milliseconds
20:41:24.329 [http-nio-8080-exec-1] WARN  o.a.g.r.auth.AuthenticationService - Authentication attempt from 10.0.2.100 for user "guacadmin" failed.
20:41:27.706 [http-nio-8080-exec-10] INFO  o.a.g.r.auth.AuthenticationService - User "guacadmin" successfully authenticated from 10.0.2.100.
20:42:08.750 [http-nio-8080-exec-2] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:42:08.783 [http-nio-8080-exec-9] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
20:44:14.232 [http-nio-8080-exec-6] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:44:14.277 [http-nio-8080-exec-1] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
20:44:35.366 [http-nio-8080-exec-1] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:44:35.412 [http-nio-8080-exec-5] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
20:44:57.911 [http-nio-8080-exec-8] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:44:57.957 [http-nio-8080-exec-9] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
20:45:07.842 [http-nio-8080-exec-4] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:45:07.892 [http-nio-8080-exec-3] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
20:45:13.111 [http-nio-8080-exec-5] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:45:13.151 [http-nio-8080-exec-8] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
20:45:59.337 [http-nio-8080-exec-5] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:45:59.378 [http-nio-8080-exec-8] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)

Screenshots:

Screenshot_2022 04 03_22:49:36

Environment:

  • Guacamole Version: latest release from docker hub
  • Operating System: Oracle Linux 8 running podman

new config won't start up (postgresql.conf not found)

Describe The Bug:
Fresh installation of the container won't start up properly

To Reproduce:

    image: abesnier/guacamole
    container_name: guacamole
    hostname: guacamole
    environment:
     - EXTENSIONS=auth-totp
    volumes:
     - ${DOCKERCONFDIR}/guacamole:/config
    ports:
      - 9010:8080

Expected behavior:
First start creates all files

Logs:

today at 19:29:22postgres: could not access the server configuration file "/config/postgres/postgresql.conf": No such file or directory
today at 19:29:22/var/run/postgresql:5432 - no response
today at 19:29:22Waiting for postgres to come up...

Screenshots:

Environment:

  • Guacamole Version: 1.4.0-s6_v3
  • Operating System: Docker

2FA no longer valid

Hey there

After following the guide to upgrade PostgreSQL to v14, my docker instance now successfully starts and I can log in with my stored username and password, only the 2FA fails:

image

My clocks are all synced, so I have no idea what next to try. Is there a way to reinitiate the setup of 2FA for a given user from the CLI?

Which image/tag is this hash ?

I created a container on 2023-05-23 10:47:09, using image: abesnier/guacamole in the compose file.
The downloaded image has this hash : abesnier/guacamole@sha256:2fbf45e5cc56ff4efd25bd72422c135a90cf57b689a2a97ecb896d75af6f158c.

Could you let me know which tags this was ? I'm thinking 1.5.0 but the hashes don't seem to match.
I'd like to be 100% certain about the versions before attempting an upgrade.

Thank you very much.

Unable to to VNC into itself on MacOS

I installed this image on a m2 Mac Mini. I got it running with no issues. My goal is to access the mac away from outside the network. Plus a little benefit of having a container to connect to other machines. I setup a Cloudflare Tunnel to access the mac on port 8080. I can access guacamole with no issues. But I cant get guacamole to connect to the host computer (the Mac) through vnc. I set up the mac settings to allow VNC connections and tested with a vnc client, again no issues. But I can not get a VNC connection to the Mac Mini from the Guacamole server that is running on it. I'm starting to lose my mind trying different things and I could really use some guidance. I put in the local IP (192.168.1.103), or 127.0.0.1, or localhost, with port 5900. I've tried adding user credentials, I've tried not using a name and only the VNC password, and every other combination you can think of. It's as if the docker container is unable to talk to the local network. I found this closed issue (#22) but am unsure how it applies to my situation. I can't find any useful info in the logs, it just times out every time. Please someone help me.

Impossible to start since the updated version to s6 overlay 3.0

Describe The Bug:
Since the update of the 2022-01-20 (updated to s6 overlay 3.0), the docker doesn't want to start (see message log)

To Reproduce:
Install the docker image and try to launch it

Expected behavior:
launching the docker without issue

Logs:
Start container abesnier-guacamole failed: {"message":"OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/init": stat /init: no such file or directory: unknown"}.

Remove any sensative information.

Screenshots:

Environment:

  • Guacamole Version:
  • Operating System:

Mouse bug Issues on Windows machines

Using your latest image I noticed on RDP connections to Windows 10/11/Server 2022 machines that the cursor does not properly update its shape when you cross over a window border. The expected behavior is for it change the icon of the cursor to the scaling cursor shape allowing you to scale the window. You can still scale the window but the cursor never changes.

It only changes when something else on the screen changes, for instance if there is an animation or when you trigger the start menu. Here’s an example of this:

https://imgur.com/a/E7BSbkH

Here you can see that the cursor initially does not change when crossing the window border, however when I press the alt key which highlights an element of the menu of this particular window the cursor suddenly also changes. As long as nothing changes on the screen the cursor remains unchanged and this is especially evident when the cursor does finally change it remains changed until something on the screen changes as you can also see in the video where the scale cursor remains visible even when the mouse has left the context area.

This behavior is not seen in the official guacamole and guacd images.

Custom theme

Puting this:
https://github.com/LagManCZ/guacamole-dark-theme
in extension folder didn't work.
and disappears after reloading container, what am I doing wrong?

My docker-compose.yaml

version: "3"
services:
  guacamole:
    restart: unless-stopped
    image: abesnier/guacamole
    container_name: guacamole
    user: root
    volumes:
      - ./data:/data
      - ./config:/config
      - ./extensions:/app/guacamole/extensions/
    ports:
      - 4000:8080

When I replace guacamole-branding-1.5.4.jar and reinstall container, sometimes work partially without my logo...
Im puting jar in extension and in extension in data.
I clear the cache and check it in different browsers, I've been struggling all day and nothing changes.

Thanks for any help.

No access to directory "/config/postgres": Permission denied

2 weeks ago I installed abesnier/guacamole on a Raspberry Pi. It worked fine, I could access my Windows PC from my Macbook.

Today I redeployed the latest version. Now the container does not start any more. The error message in the log is:

postgres: could not access directory "/config/postgres": Permission denied

I deleted the /config folder and added
user: root
in the Docker-Compose file, but this did not help, I get the same error.

In Putty I can see, that the folder /config/guacamole has owner root, group users and rights rwxr-s---.
The folder /config/postgres, however, has owner messagebus, group render and rights rwx--S---.

SAML issue

Evening,

I'm trying to connect to Azure AD using SAML. I've set everything up but am getting the following error

20:13:58.532 [http-nio-8080-exec-5] WARN  o.a.g.e.AuthenticationProviderFacade - The "saml" authentication provider has encountered an internal error which will halt the authentication process. If this is unexpected or you are the developer of this authentication provider, you may wish to enable debug-level logging. If this is expected and you wish to ignore such failures in the future, please set "skip-if-unavailable: saml" within your guacamole.properties.
20:13:58.542 [http-nio-8080-exec-5] ERROR o.a.g.rest.RESTExceptionMapper - An internal error occurred, but did not contain an error message. Enable debug-level logging for details.

I'm not sure where to find further logs or if I'm missing something obvious. A copy of my compose file is below

version: "3"
services:
  guacamole:
    image: abesnier/guacamole
    container_name: guacamole
    volumes:
      - postgres:/config
    ports:
      - 8080:8080
    environment:
      - TZ=Europe/London
      - EXTENSIONS=auth-sso-saml
      - EXTENSION_PRIORITY=*, saml
      - SAML_IDP_METADATA_URL=https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxx/federationmetadata/2007-06/federationmetadata.xml?appid=xxxxxxxxxxxxxxxxxxxx
      - SAML_IDP_URL=https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxx/saml2
      - SAML_ENTITY_ID=https://you.me.them
      - SAML_CALLBACK_URL=https://you.me.them

      - GUACD_LOG_LEVEL=debug
      - SAML_STRICT=false
      - SAML_DEBUG=true
volumes:
  postgres:
    driver: local

`1.5.2` fails to start

referring to #18

the container is running fine on a 5week old image, possibly 1.5.0 ?

These are the details for that image
  "Env": [
		"PATH=/usr/lib/postgresql/13/bin:/usr/local/tomcat/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
		"JAVA_HOME=/opt/java/openjdk",
		"LANG=en_US.UTF-8",
		"LANGUAGE=en_US:en",
		"LC_ALL=en_US.UTF-8",
		"JAVA_VERSION=jdk-11.0.19+7",
		"CATALINA_HOME=/usr/local/tomcat",
		"TOMCAT_NATIVE_LIBDIR=/usr/local/tomcat/native-jni-lib",
		"LD_LIBRARY_PATH=/usr/local/tomcat/native-jni-lib",
		"GPG_KEYS=48F8E69F6390C9F25CFEDCD268248959359E722B A9C5DF4D22E99998D9875A5110C01C5A2F6059E7 DCFD35E0BF8CA7344752DE8B6FB21E8933C60243",
		"TOMCAT_MAJOR=9",
		"TOMCAT_VERSION=9.0.74",
		"TOMCAT_SHA512=0e173fc2a76404c41c571c50a1956a2b867870d767200bd30f48d89bf04a4b6337f12e6577415da932cd2dfef9b4e9e9fdd52bd873afb06c6258b0e64244a44e",
		"GUACAMOLE_HOME=/config/guacamole",
		"PGDATA=/config/postgres",
		"POSTGRES_USER=guacamole",
		"POSTGRES_DB=guacamole_db",
		"S6OVERLAY_VER=3.1.4.2",
		"POSTGREJDBC_VER=42.6.0",
		"GUAC_DOWN_PATH=https://dlcdn.apache.org/guacamole",
		"GUAC_VER=1.5.1",
		"GUAC_VER_PATH=1.5.1",
		"PG_MAJOR=13",
		"GUACD_LOG_LEVEL=info",
		"S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0"
	],

When I now pull 1.5.2, the container doesn't start properly.

docker logs for container
root@docker:~# docker logs guacamole-guacamole-1
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/30-defaults.sh
cont-init: info: /etc/cont-init.d/30-defaults.sh exited 0
cont-init: info: running /etc/cont-init.d/40-postgres.sh
Database already configured
cont-init: info: /etc/cont-init.d/40-postgres.sh exited 0
cont-init: info: running /etc/cont-init.d/50-extensions
cont-init: info: /etc/cont-init.d/50-extensions 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 postgres (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting postgres...
Starting guacamole guacd...
/var/run/postgresql:5432 - no response
Waiting for postgres to come up...
guacd[154]: INFO:       Guacamole proxy daemon (guacd) version 1.5.2 started
guacd[154]: INFO:       Listening on host 0.0.0.0, port 4822
2023-06-14 10:24:41.226 UTC [153] LOG:  starting PostgreSQL 13.11 (Ubuntu 13.11-1.pgdg22.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit
2023-06-14 10:24:41.228 UTC [153] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2023-06-14 10:24:41.228 UTC [153] LOG:  could not bind IPv6 address "::1": Cannot assign requested address
2023-06-14 10:24:41.228 UTC [153] HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2023-06-14 10:24:41.251 UTC [153] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-06-14 10:24:41.278 UTC [156] LOG:  database system was shut down at 2023-06-14 10:21:57 UTC
2023-06-14 10:24:41.303 UTC [153] LOG:  database system is ready to accept connections
2023-06-14 10:24:42.082 UTC [164] FATAL:  role "root" does not exist
/var/run/postgresql:5432 - accepting connections
Starting guacamole client...
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
14-Jun-2023 12:24:43.028 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.76
14-Jun-2023 12:24:43.035 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jun 5 2023 07:17:04 UTC
14-Jun-2023 12:24:43.035 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.76.0
14-Jun-2023 12:24:43.035 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
14-Jun-2023 12:24:43.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            4.19.0-24-amd64
14-Jun-2023 12:24:43.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
14-Jun-2023 12:24:43.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /opt/java/openjdk
14-Jun-2023 12:24:43.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.19+7
14-Jun-2023 12:24:43.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Eclipse Adoptium
14-Jun-2023 12:24:43.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
14-Jun-2023 12:24:43.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
14-Jun-2023 12:24:43.068 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
14-Jun-2023 12:24:43.068 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
14-Jun-2023 12:24:43.069 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
14-Jun-2023 12:24:43.069 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
14-Jun-2023 12:24:43.070 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
14-Jun-2023 12:24:43.070 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
14-Jun-2023 12:24:43.071 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
14-Jun-2023 12:24:43.071 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
14-Jun-2023 12:24:43.071 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
14-Jun-2023 12:24:43.071 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
14-Jun-2023 12:24:43.072 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
14-Jun-2023 12:24:43.072 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
14-Jun-2023 12:24:43.072 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
14-Jun-2023 12:24:43.073 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
14-Jun-2023 12:24:43.081 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.37] using APR version [1.7.0].
14-Jun-2023 12:24:43.081 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
14-Jun-2023 12:24:43.082 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
14-Jun-2023 12:24:43.089 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.2 15 Mar 2022]
14-Jun-2023 12:24:43.740 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
14-Jun-2023 12:24:43.802 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1145] milliseconds
14-Jun-2023 12:24:43.923 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
14-Jun-2023 12:24:43.924 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.76]
14-Jun-2023 12:24:43.958 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/ROOT.war]
14-Jun-2023 12:24:47.377 INFO [main] 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.
12:24:48.280 [main] INFO  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/config/guacamole".
12:24:48.487 [main] INFO  o.a.g.GuacamoleServletContextListener - Read configuration parameters from "/config/guacamole/guacamole.properties".
12:24:48.489 [main] INFO  o.a.g.rest.auth.HashTokenSessionMap - Sessions will expire after 10 minutes of inactivity.
12:24:49.624 [main] INFO  o.a.g.extension.ExtensionModule - Multiple extensions are installed and will be loaded in order of decreasing priority:
12:24:49.624 [main] INFO  o.a.g.extension.ExtensionModule -  - [postgresql] "PostgreSQL Authentication" (/config/guacamole/extensions/guacamole-auth-jdbc-postgresql-1.5.1.jar)
12:24:49.625 [main] INFO  o.a.g.extension.ExtensionModule -  - [postgresql] "PostgreSQL Authentication" (/config/guacamole/extensions/guacamole-auth-jdbc-postgresql-1.5.2.jar)
12:24:49.625 [main] INFO  o.a.g.extension.ExtensionModule -  - [totp] "TOTP TFA Authentication Backend" (/config/guacamole/extensions/guacamole-auth-totp-1.5.1.jar)
12:24:49.625 [main] INFO  o.a.g.extension.ExtensionModule -  - [totp] "TOTP TFA Authentication Backend" (/config/guacamole/extensions/guacamole-auth-totp-1.5.2.jar)
12:24:49.625 [main] INFO  o.a.g.extension.ExtensionModule -  - [guacamole-branding] "Guacamole Branding" (/config/guacamole/extensions/guacamole-branding-1.5.2.jar)
12:24:49.625 [main] INFO  o.a.g.extension.ExtensionModule - To change this order, set the "extension-priority" property or rename the extension files. The default priority of extensions is dictated by the sort order of their filenames.
12:24:51.311 [main] INFO  o.a.g.extension.ExtensionModule - Extension "PostgreSQL Authentication" (postgresql) loaded.
12:24:52.571 [main] INFO  o.a.g.extension.ExtensionModule - Extension "PostgreSQL Authentication" (postgresql) loaded.
12:24:52.943 [main] INFO  o.a.g.extension.ExtensionModule - Extension "TOTP TFA Authentication Backend" (totp) loaded.
12:24:53.271 [main] INFO  o.a.g.extension.ExtensionModule - Extension "TOTP TFA Authentication Backend" (totp) loaded.
12:24:53.271 [main] INFO  o.a.g.extension.ExtensionModule - Extension "Guacamole Branding" (guacamole-branding) loaded.
12:24:53.460 [main] INFO  o.a.g.t.w.WebSocketTunnelModule - Loading JSR-356 WebSocket support...
14-Jun-2023 12:24:53.638 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
14-Jun-2023 12:24:53.660 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
14-Jun-2023 12:24:53.716 INFO [AsyncFileHandlerWriter-1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.google.common.base.Predicates$CompositionPredicate]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.google.common.base.Predicates$CompositionPredicate]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
                at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
                at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1420)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1259)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
                at com.google.common.base.Predicates.compose(Predicates.java:227)
                at com.google.common.collect.Maps.keyPredicateOnEntries(Maps.java:2462)
                at com.google.common.collect.Maps.filterKeys(Maps.java:2496)
                at com.google.inject.internal.PackageNameCompressor.compressPackagesInMessage(PackageNameCompressor.java:114)
                at com.google.inject.internal.Messages.formatMessages(Messages.java:115)
                at com.google.inject.CreationException.getMessage(CreationException.java:50)
                at java.base/java.lang.Throwable.getLocalizedMessage(Unknown Source)
                at java.base/java.lang.Throwable.toString(Unknown Source)
                at java.base/java.lang.String.valueOf(Unknown Source)
                at java.base/java.io.PrintWriter.println(Unknown Source)
                at org.apache.juli.OneLineFormatter$IndentingPrintWriter.println(OneLineFormatter.java:283)
                at java.base/java.lang.Throwable$WrappedPrintWriter.println(Unknown Source)
                at java.base/java.lang.Throwable.printStackTrace(Unknown Source)
                at java.base/java.lang.Throwable.printStackTrace(Unknown Source)
                at org.apache.juli.OneLineFormatter.format(OneLineFormatter.java:159)
                at org.apache.juli.FileHandler.publish(FileHandler.java:233)
                at org.apache.juli.AsyncFileHandler.publishInternal(AsyncFileHandler.java:138)
                at org.apache.juli.AsyncFileHandler$1.run(AsyncFileHandler.java:131)
                at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.base/java.lang.Thread.run(Unknown Source)
Exception in thread "AsyncFileHandlerWriter-1" java.lang.NoClassDefFoundError: com/google/common/base/Predicates$CompositionPredicate
        at com.google.common.base.Predicates.compose(Predicates.java:227)
        at com.google.common.collect.Maps.keyPredicateOnEntries(Maps.java:2462)
        at com.google.common.collect.Maps.filterKeys(Maps.java:2496)
        at com.google.inject.internal.PackageNameCompressor.compressPackagesInMessage(PackageNameCompressor.java:114)
        at com.google.inject.internal.Messages.formatMessages(Messages.java:115)
        at com.google.inject.CreationException.getMessage(CreationException.java:50)
        at java.base/java.lang.Throwable.getLocalizedMessage(Unknown Source)
        at java.base/java.lang.Throwable.toString(Unknown Source)
        at java.base/java.lang.String.valueOf(Unknown Source)
        at java.base/java.io.PrintWriter.println(Unknown Source)
        at org.apache.juli.OneLineFormatter$IndentingPrintWriter.println(OneLineFormatter.java:283)
        at java.base/java.lang.Throwable$WrappedPrintWriter.println(Unknown Source)
        at java.base/java.lang.Throwable.printStackTrace(Unknown Source)
        at java.base/java.lang.Throwable.printStackTrace(Unknown Source)
        at org.apache.juli.OneLineFormatter.format(OneLineFormatter.java:159)
        at org.apache.juli.FileHandler.publish(FileHandler.java:233)
        at org.apache.juli.AsyncFileHandler.publishInternal(AsyncFileHandler.java:138)
        at org.apache.juli.AsyncFileHandler$1.run(AsyncFileHandler.java:131)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [com.google.common.base.Predicates$CompositionPredicate]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1422)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1259)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
        ... 21 more
Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.google.common.base.Predicates$CompositionPredicate]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1420)
        ... 23 more
14-Jun-2023 12:24:53.738 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ROOT.war] has finished in [9,780] ms
14-Jun-2023 12:24:53.743 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
14-Jun-2023 12:24:53.770 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [9967] milliseconds

What could be going on here ?

Issue with Postegres JDBC driver

A typo in the dockerfile introduced a bug in the extraction of the Postgres JDBC driver.

Issue is corrected in image 1.4.0-s6_v3 pushed today (28/01/2022, 2PM Europe/Paris) and will remain fixed in further releases.

Recording the issue in case people ever notice it...

(And that's what you get when you only use nano as a text editor...)

Can't start docker for arm/v7 (raspberry)

Hi!
Let me preface by apologizing because it's very likely I'm missing something very obvious as I just started with docker.
I got the image for [abesnier/guacamole:latest-pg14] as it's the most recent tag with arm/v7 but when I start the container all I get is "init: 37: exec: s6-overlay-suexec: Exec format error".

I didn't know where else to ask, from what I can read docker is supposed to be able to tell the appropriate "sub image" for the device from where it's running, however it seems it's attempting to start for something other than arm/v7.

/init: 37: exec: s6-overlay-suexec: Exec format error

Describe The Bug:

Hi, on a odroid (arm64), when i want to start the image, I have this error :
/init: 37: exec: s6-overlay-suexec: Exec format error.

To Reproduce:

docker-compose up -d
with this docker-compose.yml
version: '3.7'
services:
telem:
image: abesnier/guacamole
volumes:
- type: bind
source: /.../config
target: /config
ports:
- 8080:8080/tcp
networks:
guacnet:
ipv4_address: ...
networks:
guacnet:
ipam:
driver: default
config:
- subnet: ...

Expected behavior:

The image start on ARM64.

Logs:
/init: 37: exec: s6-overlay-suexec: Exec format error

Remove any sensative information.

Screenshots:

Environment:
odroit n2+
CPU : arm64

docker engine : 20.10.13
api version : 1.41
containerd : 1.5.10
runc : 1.0.3
docker-init : 0.19.0
docker-compose : 1.25.0
docker-py : 4.1.0
cpython : 3.8.10

  • Guacamole Version:
    latest
  • Operating System:
  • ubuntu : 20.04

How to AutoStart at boot - Restart Flag for .yml file?

Hello,

I am using docker / docker compose with the suggested .yml file under an Ubuntu 22 Server VM to remote access my local machines via external connection.

All good with the default configuration given here for docker compose yml file. It is working fine and I am able to remote into my local machines (Win RDP or SSH) flawlessly.

However, with the default configuration, this docker container will not start at boot. So, incase the VM or machine hosting this container reboots, I have to manually access the machine from local network to run docker compose up -d to start the container again.

I believe restart: unless-stopped flag / argument is to allow the container to auto-start at boot but I am unable to add that line into the docker compose file since no matter where-ever I am adding it, docker compose up -d is generating error.

Can someone help me make this .yml file automatically start at boot?

Thanks.

could not get it to start - database issue?

docker volume create guacamole_config;
docker run --detach --name guacamole --restart=always --publish 8080:8080 --volume guacamole_config:/config abesnier/guacamole:latest-bullseye;

Continually presented database errors when a docker log guacamole command was executed.

Backup

Hi, I have tried to create script for your docker on qnap however I can't make backup of data base can you help with it/or mby you have such script. I need just when I update everything is easier when I download new image and then import config

Container not picking up DHCP IP

Hey,
I have tried to deploy the container several times, however, it keeps defaulting to the ip 172.18.0.2 not is not picking up an ip from my DHCP server.

Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.