jwetzell / docker-guacamole

A self-contained guacamole docker container for x64 and ARM. Remotely connect over SSH, RDP or VNC using HTML5.
https://hub.docker.com/r/oznu/guacamole/
GNU General Public License v3.0
104 stars 17 forks source link

Synology can't login #15

Closed LorneCash closed 1 year ago

LorneCash commented 1 year ago

Please help! I'm sure it's probably me, I don't really understand what I'm doing.

I'm using portainer to deploy this stack:

version: "2"
services:
  guacamole:
    container_name: Guacamole
    image: jwetzell/guacamole:latest
    volumes:
      - /volume1/docker/guacamole:/config
    ports:
      - 8080:8080

The deploy is successful and I open the login page but I can't login with "guacadmin". I look at the log file for clues and all I see is this and I'm not sure what to make of it:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 30-defaults.sh: executing... [cont-init.d] 30-defaults.sh: exited 0. [cont-init.d] 40-postgres.sh: executing... Database already configured [cont-init.d] 40-postgres.sh: exited 0. [cont-init.d] 50-extensions: executing... [cont-init.d] 50-extensions: exited 0. [cont-init.d] done. [services.d] starting services Starting guacamole guacd... Starting postgres... [services.d] done. /var/run/postgresql:5432 - no response Waiting for postgres to come up... guacd[270]: INFO: Guacamole proxy daemon (guacd) version 1.5.0 started guacd[270]: INFO: Listening on host 127.0.0.1, port 4822 LOG: could not bind IPv6 socket: Cannot assign requested address HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. LOG: database system was shut down at 2023-04-14 06:23:25 UTC LOG: MultiXact member wraparound protections are now enabled LOG: autovacuum launcher started LOG: database system is ready to accept connections 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-Apr-2023 06:23:32.100 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.65 14-Apr-2023 06:23:32.108 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 14 2022 12:28:53 UTC 14-Apr-2023 06:23:32.110 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.65.0 14-Apr-2023 06:23:32.112 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 14-Apr-2023 06:23:32.122 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.180+ 14-Apr-2023 06:23:32.122 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 14-Apr-2023 06:23:32.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/local/openjdk-11 14-Apr-2023 06:23:32.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.16+8 14-Apr-2023 06:23:32.131 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 14-Apr-2023 06:23:32.131 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat 14-Apr-2023 06:23:32.136 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat 14-Apr-2023 06:23:32.159 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED 14-Apr-2023 06:23:32.159 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED 14-Apr-2023 06:23:32.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED 14-Apr-2023 06:23:32.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED 14-Apr-2023 06:23:32.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED 14-Apr-2023 06:23:32.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties 14-Apr-2023 06:23:32.161 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 14-Apr-2023 06:23:32.161 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 14-Apr-2023 06:23:32.161 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 14-Apr-2023 06:23:32.162 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 14-Apr-2023 06:23:32.162 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 14-Apr-2023 06:23:32.162 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat 14-Apr-2023 06:23:32.162 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat 14-Apr-2023 06:23:32.163 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp 14-Apr-2023 06:23:32.178 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.35] using APR version [1.7.0]. 14-Apr-2023 06:23:32.178 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true]. 14-Apr-2023 06:23:32.178 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 14-Apr-2023 06:23:32.183 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1n 15 Mar 2022] 14-Apr-2023 06:23:32.757 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 14-Apr-2023 06:23:32.795 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1003] milliseconds 14-Apr-2023 06:23:32.883 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 14-Apr-2023 06:23:32.883 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.65] 14-Apr-2023 06:23:32.910 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/ROOT.war] 14-Apr-2023 06:23:34.987 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. 06:23:35.682 [main] INFO o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/config/guacamole". 06:23:35.870 [main] INFO o.a.g.GuacamoleServletContextListener - Read configuration parameters from "/config/guacamole/guacamole.properties". 06:23:35.873 [main] INFO o.a.g.rest.auth.HashTokenSessionMap - Sessions will expire after 60 minutes of inactivity. 06:23:36.434 [main] ERROR o.a.g.extension.ProviderFactory - authentication provider extension failed to start: Property postgresql-database is required. 06:23:36.436 [main] ERROR o.a.g.extension.ProviderFactory - authentication provider extension failed to start: Property postgresql-database is required. 06:23:36.548 [main] INFO o.a.g.extension.ExtensionModule - Extension "PostgreSQL Authentication" (postgresql) loaded. 06:23:36.767 [main] INFO o.a.g.t.w.WebSocketTunnelModule - Loading JSR-356 WebSocket support... 06:23:37.607 [main] WARN o.g.jersey.server.wadl.WadlFeature - JAXBContext implementation could not be found. WADL feature is disabled. 14-Apr-2023 06:23:37.913 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ROOT.war] has finished in [5,003] ms 14-Apr-2023 06:23:37.918 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 14-Apr-2023 06:23:37.936 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [5140] milliseconds 06:23:38.382 [http-nio-8080-exec-7] WARN o.a.g.e.AuthenticationProviderFacade - Authentication attempt ignored because the relevant authentication provider could not be loaded. Please check for errors earlier in the logs. 06:23:38.383 [http-nio-8080-exec-7] WARN o.a.g.e.AuthenticationProviderFacade - Authentication attempt ignored because the relevant authentication provider could not be loaded. Please check for errors earlier in the logs. 06:23:48.458 [http-nio-8080-exec-9] WARN o.a.g.e.AuthenticationProviderFacade - Authentication attempt ignored because the relevant authentication provider could not be loaded. Please check for errors earlier in the logs. 06:23:48.458 [http-nio-8080-exec-9] WARN o.a.g.e.AuthenticationProviderFacade - Authentication attempt ignored because the relevant authentication provider could not be loaded. Please check for errors earlier in the logs. 06:23:48.459 [http-nio-8080-exec-9] WARN o.a.g.r.auth.AuthenticationService - Authentication attempt from 192.168.208.1 for user "guacadmin" failed.

LorneCash commented 1 year ago

Not sure what happened Deleted the folder and tried again and this time it worked... Only difference was I manually set the Admin as the owner of the postgres folder. I saw something about that in another post. I'm not sure if that actually made a difference because it was for a different repo.