18 / 18
May 2022

Hi all,
I have a problem with guacamole, I have installed apache guacamole with guide"https://github.com/EGroupware/egroupware/wiki/Apache-Guacamole-managed-by-EGroupware10" withouth error , but when I open guacamole inside egroupware , I receive this error “404 Not Found nginx/1.18.0 (Ubuntu)”

This is a guacamole logs “docker logs -f guacamole”, and I see “/opt/guacamole/bin/start.sh: 542: /opt/guacamole/bin/start.sh: : not found”

/opt/guacamole/bin/start.sh: 542: /opt/guacamole/bin/start.sh:  : not found
13-May-2022 16:27:52.112 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/8.5.61
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Dec 3 2020 14:03:28 UTC
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.61.0
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            5.4.0-109-generic
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/local/openjdk-8/jre
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_275-b01
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
13-May-2022 16:27:52.118 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.25] using APR version [1.6.5].
13-May-2022 16:27:52.118 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
13-May-2022 16:27:52.118 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
13-May-2022 16:27:52.126 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1d  10 Sep 2019]
13-May-2022 16:27:52.221 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
13-May-2022 16:27:52.235 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
13-May-2022 16:27:52.257 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 704 ms
13-May-2022 16:27:52.284 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
13-May-2022 16:27:52.285 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.61
13-May-2022 16:27:52.308 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/guacamole.war]
13-May-2022 16:27:54.077 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.
16:27:54.509 [localhost-startStop-1] INFO  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/root/.guacamole".
16:27:54.621 [localhost-startStop-1] INFO  o.a.g.rest.auth.HashTokenSessionMap - Sessions will expire after 60 minutes of inactivity.
16:27:54.843 [localhost-startStop-1] INFO  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/root/.guacamole".
16:27:55.131 [localhost-startStop-1] INFO  o.a.g.extension.ExtensionModule - Extension "OpenID Authentication Extension" loaded.
16:27:55.137 [localhost-startStop-1] INFO  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/root/.guacamole".
16:27:56.299 [localhost-startStop-1] INFO  o.a.g.extension.ExtensionModule - Extension "MySQL Authentication" loaded.
16:27:56.301 [localhost-startStop-1] INFO  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/root/.guacamole".
16:27:56.420 [localhost-startStop-1] INFO  o.a.g.t.w.WebSocketTunnelModule - Loading JSR-356 WebSocket support...
13-May-2022 16:27:56.819 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.apache.guacamole.rest.RESTExceptionMapper as a provider class
13-May-2022 16:27:56.819 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.apache.guacamole.rest.extension.ExtensionRESTService as a root resource class
13-May-2022 16:27:56.819 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.apache.guacamole.rest.language.LanguageRESTService as a root resource class
13-May-2022 16:27:56.820 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.apache.guacamole.rest.patch.PatchRESTService as a root resource class
13-May-2022 16:27:56.820 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.apache.guacamole.rest.auth.TokenRESTService as a root resource class
13-May-2022 16:27:56.820 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.apache.guacamole.rest.session.SessionRESTService as a root resource class
13-May-2022 16:27:56.820 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.register Registering org.codehaus.jackson.jaxrs.JacksonJsonProvider as a provider class
13-May-2022 16:27:56.823 INFO [localhost-startStop-1] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.17.1 02/28/2013 12:47 PM'
13-May-2022 16:27:56.922 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.apache.guacamole.rest.RESTExceptionMapper to GuiceManagedComponentProvider with the scope "Singleton"
13-May-2022 16:27:56.925 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.codehaus.jackson.jaxrs.JacksonJsonProvider to GuiceManagedComponentProvider with the scope "Singleton"
13-May-2022 16:27:57.536 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.apache.guacamole.rest.extension.ExtensionRESTService to GuiceManagedComponentProvider with the scope "PerRequest"
13-May-2022 16:27:57.542 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.apache.guacamole.rest.language.LanguageRESTService to GuiceManagedComponentProvider with the scope "PerRequest"
13-May-2022 16:27:57.543 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.apache.guacamole.rest.patch.PatchRESTService to GuiceManagedComponentProvider with the scope "PerRequest"
13-May-2022 16:27:57.547 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.apache.guacamole.rest.auth.TokenRESTService to GuiceManagedComponentProvider with the scope "PerRequest"
13-May-2022 16:27:57.549 INFO [localhost-startStop-1] com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory.getComponentProvider Binding org.apache.guacamole.rest.session.SessionRESTService to GuiceManagedComponentProvider with the scope "PerRequest"
13-May-2022 16:27:57.569 INFO [localhost-startStop-1] org.webjars.servlet.WebjarsServlet.init WebjarsServlet initialization completed
13-May-2022 16:27:57.587 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/guacamole.war] has finished in [5,279] ms
13-May-2022 16:27:57.592 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
13-May-2022 16:27:57.605 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 5347 ms
/opt/guacamole/bin/start.sh: 542: /opt/guacamole/bin/start.sh:  : not found
13-May-2022 16:27:52.112 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/8.5.61
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Dec 3 2020 14:03:28 UTC
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.61.0
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            5.4.0-109-generic
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
13-May-2022 16:27:52.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/local/openjdk-8/jre
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_275-b01
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
13-May-2022 16:27:52.116 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
13-May-2022 16:27:52.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
13-May-2022 16:27:52.118 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.25] using APR version [1.6.5].
13-May-2022 16:27:52.118 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
13-May-2022 16:27:52.118 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
13-May-2022 16:27:52.126 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1d  10 Sep 2019]
13-May-2022 16:27:52.221 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
13-May-2022 16:27:52.235 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
13-May-2022 16:27:52.257 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 704 ms
13-May-2022 16:27:52.284 INFO [main] org.apache.catalina.core.Standa

I have tried to reinstall it but I have the same error.
Any idea?
Tks
Giuseppe

  • created

    May '22
  • last reply

    May '22
  • 17

    replies

  • 4.3k

    views

  • 3

    users

  • 12

    links

Looks ok for me.

I’m a bit surprised about the 404. Do you have a firewall, (reverse) proxy or something else in front of the system with EGroupware, which prevents access to
https://sub.domain.tls/guacamole4
prevented?

You could try Guacamole 1.4.0. I don’t think it will solve your problem, but it’s quick to try:


Offtopic:
You use the latest RocketChat container from Rocketchat.
That is very daring, because they publish quite a lot of changes and new versions.
In the long term, you should try to get back to the version we released.

https://quay.io/repository/egroupware/rocket.chat?tag=latest&tab=tags

In this situation, however, you must take the database status into account.

Stefan

How did you install, using our egroupware-guacamole Linux package?

If you receive a 404 that means Nginx lacks its Guacamole config.

The package creates a symlink from /etc/egroupware-guacamole/nginx.conf to /etc/nginx/app.d/egroupware-guacamole.conf and restarts Nginx. Do you see that symlink?

If you installed manually, did you copy the Nginx config?

Ralf

I Ralf, I don’t hane a symlink from from /etc/egroupware-guacamole/nginx.conf to /etc/nginx/app.d/egroupware-guacamole.conf I create it?
I have installed guacamole from apt install egroupware-guacamole.
Tks
Giuseppe

Look at your JavaScript console, most like you don’t have a valid certificate.

Ralf

The package installation has already created an OpenID Connect client for Guacamole.
To check it go to: Admin > Applications > OpenID / OAuth Server > Clients and search in the list for Guacamole.

Ralf

Hi Ralf, I have re-install egroupware-guacamole but , Openid client are blanc, he show this error:
{“error”:“invalid_client”,“error_description”:“Client authentication failed”,“message”:“Client authentication failed”}
logs:
[2022-05-15 10:12:22] openid.DEBUG: GET /egroupware/openid/endpoint.php/authorize?scope=openid+profile+email&response_type=id_token&client_id=guacamole&redirect_uri=https://ecm.atsrl.net/guacamole/&nonce=bojorkonu6c9s716de9l7ogbba HTTP/1.1
Cookie: rocketchatscreenshare=chrome; rocketchatscreenshare=chrome; eGW_cookie_test=enabled; sessionid=uf8ikoofjte4ipa7cfg8c5rfl1; kp3=Kx9Kae1eFVGm7cCuUJNHyqWp; domain=default; last_loginid=g.novembri; last_domain=default
Accept-Language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,es;q=0.6
Accept-Encoding: gzip, deflate, br
Referer: https://ecm.atsrl.net/guacamole/
Sec-Fetch-Dest: iframe
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Upgrade-Insecure-Requests: 1
Sec-Ch-Ua-Platform: “Windows"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua: " Not A;Brand”;v=“99”, “Chromium”;v=“101”, “Google Chrome”;v="101"
Connection: Upgrade
X-Forwarded-Proto: https
X-Forwarded-For: 31.191.239.118
X-Real-Ip: 31.191.239.118
Host: ecm.atsrl.net
Content-Length:
Content-Type:

[2022-05-15 10:12:22] openid.DEBUG: HTTP/1.1 401 Unauthorized
Content-Type: application/json

{“error”:“invalid_client”,“error_description”:“Client authentication failed”,“message”:“Client authentication failed”}

And error:
LOGIN.INFO-OID-PENDING_REDIRECT.
Can you help me

Please answer my question, it’s really hard to help you, if you are not answering what I asked :frowning:

Did you use the correct installation command AND replace example.org with the domain you use and your certificate is for?

HTTP_HOST=example.org apt install egroupware-guacamole

That should replace all example.org with your domain in your /etc/egroupware-guacamole/docker-compose.override.yml (please confirm!) AND set that domain when creating the OpenID client entry in EGroupware:

57

Ralf

Hi Ralf, I confirm in /etc/egroupware-guacamole/docker-compose.override.ymlin this fields OPENID_AUTHORIZATION_ENDPOINT:
OPENID_JWKS_ENDPOINT:
OPENID_ISSUER:
OPENID_CLIENT_ID: guacamole
OPENID_REDIRECT_URI:
is present my correct domain, I have installed guacamole with correct command HTTP_HOST=xxxxxxxx.it apt install egroupware-guacamole, but I have the same error:{“error”:“invalid_client”,“error_description”:“Client authentication failed”,“message”:“Client authentication failed”}

this is openid logs
[2022-05-16 08:12:21] openid.DEBUG: HTTP/1.1 401 Unauthorized

Content-Type: application/json

{“error”:“invalid_client”,“error_description”:“Client authentication failed”,“message”:“Client authentication failed”}

[2022-05-16 08:12:26] openid.DEBUG: GET /egroupware/openid/endpoint.php/authorize?scope=openid+profile+email&response_type=id_token&client_id=guacamole&redirect_uri=https://ecm.atsrl.net/guacamole/&nonce=9qkvvo71qfc6hasrjh0e90qv6b HTTP/1.1

Sec-Fetch-Site: same-origin

Sec-Fetch-Mode: navigate

Sec-Fetch-Dest: iframe

Upgrade-Insecure-Requests: 1

Cookie: eGW_cookie_test=enabled; sessionid=p49c1jvc85eu45i2og5h9mih8r; kp3=KMHeKmX55mazPqB5o0jAsx3N; domain=default; last_loginid=myuser; last_domain=default

Referer: https://xxxxxx/guacamole/

Dnt: 1

Accept-Encoding: gzip, deflate, br

Accept-Language: it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Connection: Upgrade

X-Forwarded-Proto: https

X-Forwarded-For: 31.191.239.118

X-Real-Ip: 31.191.239.118

Host: egroupware.mydomain.it

Content-Length:

Content-Type:

Tks

Hi Giuseppe.

I have just spoken to Ralf again about your problem. We don’t know how we can help you here in the forum. This is a case that can probably be solved better and faster via our support:

At some point you have to make a make or buy decision…

Stefan