I’ve checked the tutorial you had followed and seems the errori s in this line:

 

sudo ln -s /etc/guacamole/guacamole.war /opt/tomcat/tomcatapp/webapps

 

that will be dor properly work:

 

sudo ln -s /etc/guacamole/guacamole.war /opt/tomcat/tomcatapp/webapps/guacamole

 

Tomcat works with symlinks (also mine are setted up with symlinks), but you 
need to put it in the right place.

 

Alessandro

 

Da: Antoine Besnier <besnier_anto...@yahoo.fr.INVALID> 
Inviato: martedì 1 marzo 2022 17:48
A: user@guacamole.apache.org
Oggetto: Re: Error 404 with Guacamole 1.4.0 / Tomcat 9 / Ubuntu 21.10

 

This line in the tutorial you followed may be the culprit:

 

sudo ln -s /etc/guacamole/guacamole.war /opt/tomcat/tomcatapp/webapps

 

check the value of $CATALINA_HOME, and confirm your guacamole.war is present in 
the directory $CATALINA_HOME/webapps. Don't know if tomcat can work with links? 
safer to just copy guacamole.war directly.

 

See the doc: 
https://guacamole.apache.org/doc/gug/installing-guacamole.html#deploying-guacamole

 

Cheers

 

 

 

Le mardi 1 mars 2022, 12:59:32 UTC+1, Adam Cherrett <adamcherr...@gmail.com 
<mailto:adamcherr...@gmail.com> > a écrit : 

 

 

I need some help troubleshooting my attempt to get 1.4.0 running (for use on my 
local network). I am working with a clean installation of Ubuntu 21.10, and 
have been following the steps in 
https://computingforgeeks.com/install-and-use-guacamole-on-ubuntu/

 

Tomcat 9 appears to be running fine (and I can access the manager app through 
the browser):

 

> systemctl status tomcat

● tomcat.service - Tomcat 9 servlet container
     Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor prese
t: enabled)
     Active: active (running) since Mon 2022-02-28 13:28:23 CET; 23h ago
    Process: 13902 ExecStart=/opt/tomcat/tomcatapp/bin/startup.sh (code=exited
, status=0/SUCCESS)
   Main PID: 13909 (java)
      Tasks: 39 (limit: 38299)
     Memory: 340.4M
        CPU: 1min 44.670s
     CGroup: /system.slice/tomcat.service
             └─13909 /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Djava.util.l
ogging.config.file=/opt/tomcat/tomcatapp/conf/logging.properties -Djava.util.l
ogging.manager=org.apache.juli.ClassLoaderLogManager -Djava.security.egd=file:
///dev/urandom -Djava.awt.headless=true -Djdk.tls.ephemeralDHKeySize=2048 -Dja
va.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalin
a.security.SecurityListener.UMASK=0027 -Xms512M -Xmx1024M -server -XX:+UsePara
llelGC -Dignore.endorsed.dirs= -classpath /opt/tomcat/tomcatapp/bin/bootstrap.
jar:/opt/tomcat/tomcatapp/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat/tomc
atapp -Dcatalina.home=/opt/tomcat/tomcatapp -Djava.io.tmpdir=/opt/tomcat/tomca
tapp/temp org.apache.catalina.startup.Bootstrap start


Feb 28 13:28:23 blackbox systemd[1]: Starting Tomcat 9 servlet container...
Feb 28 13:28:23 blackbox startup.sh[13902]: Tomcat started.
Feb 28 13:28:23 blackbox systemd[1]: Started Tomcat 9 servlet container.

 

guacd appears to be fine:

● guacd.service - LSB: Guacamole proxy daemon
     Loaded: loaded (/etc/init.d/guacd; generated)
     Active: active (running) since Mon 2022-02-28 13:28:41 CET; 23h ago
       Docs: man:systemd-sysv-generator(8)
    Process: 13992 ExecStart=/etc/init.d/guacd start (code=exited, status=0/SU
CCESS)
      Tasks: 1 (limit: 38299)
     Memory: 9.4M
        CPU: 15ms
     CGroup: /system.slice/guacd.service
             └─13996 /usr/local/sbin/guacd -p /var/run/guacd.pid

Feb 28 13:28:41 blackbox systemd[1]: Starting LSB: Guacamole proxy daemon...
Feb 28 13:28:41 blackbox guacd[13994]: Guacamole proxy daemon (guacd) version 
1.4.0 started
Feb 28 13:28:41 blackbox guacd[13992]: Starting guacd:
Feb 28 13:28:41 blackbox guacd[13994]: guacd[13994]: INFO:        Guacamole pr
oxy daemon (guacd) version 1.4.0 started
Feb 28 13:28:41 blackbox guacd[13992]: SUCCESS
Feb 28 13:28:41 blackbox guacd[13996]: Listening on host 127.0.0.1, port 4822
Feb 28 13:28:41 blackbox systemd[1]: Started LSB: Guacamole proxy daemon.

 

I can restart both tomcat and guacd without problems. I suspect the problem 
lies with the guacamole client. I have tried prerolled versions and compiling 
my own - neither of them works. Browsing to http://127.0.0.1:8080/guacamole 
gives a 404 error. The Tomcat manager shows a number of applications running, 
and shows guacamole is not. Trying to start it from the browser gives the error 
"FAIL - Application at context path [/guacamole] could not be started".

 

Here are some log entries:

 

in catalina.YYYY-MM-DD.log (duplicated in catalina.out):

01-Mar-2022 12:27:33.610 INFO [http-nio-8080-exec-18] org.apache.jasper.servle
t.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no T
LDs. Enable debug logging for this logger for a complete list of JARs that wer
e scanned but no TLDs were found in them. Skipping unneeded JARs during scanni
ng can improve startup time and JSP compilation time.
01-Mar-2022 12:27:33.611 SEVERE [http-nio-8080-exec-18] org.apache.catalina.co 
<http://org.apache.catalina.co> 
re.StandardContext.startInternal One or more listeners failed to start. Full d
etails will be found in the appropriate container log file
01-Mar-2022 12:27:33.612 SEVERE [http-nio-8080-exec-18] org.apache.catalina.co 
<http://org.apache.catalina.co> 
re.StandardContext.startInternal Context [/guacamole] startup failed due to pr
evious errors

 

in localhost_access_log.YYYY-MM-DD.txt:

192.168.0.50 - - [01/Mar/2022:12:26:54 +0100] "GET /guacamole HTTP/1.1" 404 76
1
192.168.0.50 - - [01/Mar/2022:12:26:54 +0100] "GET /favicon.ico HTTP/1.1" 200 
8192
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET / HTTP/1.1" 200 11165
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /tomcat.css HTTP/1.1" 200 5
542
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /tomcat.svg HTTP/1.1" 200 6
7795
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /bg-nav.png HTTP/1.1" 200 1
401
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /asf-logo-wide.svg HTTP/1.1
" 200 27235
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /bg-button.png HTTP/1.1" 20
0 713
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /bg-upper.png HTTP/1.1" 200
 3103
192.168.0.50 - - [01/Mar/2022:12:27:01 +0100] "GET /bg-middle.png HTTP/1.1" 20
0 1918
192.168.0.50 - - [01/Mar/2022:12:27:04 +0100] "GET /manager/html HTTP/1.1" 403
 3446
127.0.0.1 - - [01/Mar/2022:12:27:24 +0100] "GET / HTTP/1.1" 200 11165
127.0.0.1 - tomcat [01/Mar/2022:12:27:26 +0100] "GET /manager/html HTTP/1.1" 2
00 17639
127.0.0.1 - tomcat [01/Mar/2022:12:27:33 +0100] "POST /manager/html/start?path
=/guacamole&org.apache.catalina.filters.CSRF_NONCE=C82F32F4F2B7BF04460DB9681C5
311B2 HTTP/1.1" 200 17710

 

in manager.YYYY-MM-DD.log:

01-Mar-2022 12:27:26.940 INFO [http-nio-8080-exec-17] org.apache.catalina.core
.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host '
localhost'
01-Mar-2022 12:27:33.290 INFO [http-nio-8080-exec-18] org.apache.catalina.core
.ApplicationContext.log HTMLManager: start: Starting web application '/guacamo
le'
01-Mar-2022 12:27:33.614 INFO [http-nio-8080-exec-18] org.apache.catalina.core
.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host '
localhost'

 

in syslog:

Mar  1 12:26:55 blackbox kernel: [85369.163074] audit: type=1326 audit(1646134
015.358:278): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.firefox.firefox pid=
26373 comm="MainThread" exe="/snap/firefox/1025/usr/lib/firefox/firefox" sig=0
 arch=c000003e syscall=314 compat=0 ip=0x7f823a59a89d code=0x50000
Mar  1 12:26:55 blackbox rtkit-daemon[1271]: Supervising 7 threads of 4 proces
ses of 1 users.
Mar  1 12:26:55 blackbox rtkit-daemon[1271]: Supervising 7 threads of 4 proces
ses of 1 users.
Mar  1 12:27:00 blackbox gnome-shell[1399]: libinput error: client bug: timer 
event3 debounce: scheduled expiry is in the past (-9ms), your system is too sl
ow
Mar  1 12:27:00 blackbox gnome-shell[1399]: libinput error: client bug: timer 
event3 debounce short: scheduled expiry is in the past (-22ms), your system is
 too slow
Mar  1 12:27:02 blackbox kernel: [85376.053342] IPv6: MLD: clamping QRV from 1
 to 2!
Mar  1 12:27:12 blackbox gnome-shell[1399]: libinput error: client bug: timer 
event3 debounce short: scheduled expiry is in the past (-0ms), your system is 
too slow
Mar  1 12:27:25 blackbox kernel: [85399.594820] audit: type=1326 audit(1646134
045.789:279): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.firefox.firefox pid=
26429 comm="MainThread" exe="/snap/firefox/1025/usr/lib/firefox/firefox" sig=0
 arch=c000003e syscall=314 compat=0 ip=0x7f035f28a89d code=0x50000
Mar  1 12:27:25 blackbox rtkit-daemon[1271]: Supervising 7 threads of 4 proces
ses of 1 users.
Mar  1 12:27:25 blackbox rtkit-daemon[1271]: Supervising 7 threads of 4 proces
ses of 1 users.
Mar  1 12:27:30 blackbox gnome-shell[1399]: libinput error: client bug: timer 
event3 debounce: scheduled expiry is in the past (-5ms), your system is too sl
ow
Mar  1 12:27:30 blackbox gnome-shell[1399]: libinput error: client bug: timer 
event3 debounce short: scheduled expiry is in the past (-18ms), your system is
 too slow

 

Any help with interpreting relevant log entries, pointers for where to look 
next, how to enable debug logging, etc. would be very much appreciated.

Thanks in advance!

Adam

Reply via email to