Re: turn off VNC auto-reconnect?

2022-03-01 Thread Ivanmarcus

Tushar,

Shame it won't work. It's been a while since I utilised that parameter 
but I had an idea it might have achieved the desired outcome, albeit not 
quite as you wanted technically, thanks for enlightening me.


Although I quite understand what you want to do unfortunately I can't 
offer any further insight, however I trust someone else will be able to 
assist.


On 2/03/22 5:16 pm, Tushar Sheth wrote:

Thanks for thinking about this- but unfortunately, that won't work.

As explained by Nick here:

https://lists.apache.org/thread/m7lof9s15n1dr2tlpkoznfstjyph59m0 



api-session-timeout refers to idle time on the guac webapp UI. If there 
is an active connection, guac considers that as not idle, even if there 
is nothing happening on the actual remote desktop.


Regardless, we have idle timeout for the remote connection working via 
TigerVNC server's -IdleTimeout parameter.


I just need help figuring out how to turn off guacamole's auto reconnect 
when the VNC server closes the connection when the idle timeout is 
triggered.


I found an old thread with some ideas, but not a clear solution, here:

https://lists.apache.org/thread/b7n7x5vr3j5cd370nrrlrb10qhlw00h3 



Tushar

On Wed, Mar 2, 2022 at 2:50 AM Ivanmarcus  
wrote:


Tushar,

I've not tried this specifically, however I wonder if you were to set
api-session-timeout to 15 in guacamole.properties whether that would
address your issue?

On 2/03/22 7:39 am, Tushar Sheth wrote:
 > Hi- we set our VNC server (TigerVNC) to disconnect a session after a
 > certain amount of idle time (15 minutes). When that happens,
guacamole
 > kicks in and does a countdown of a certain number of seconds and
then
 > automatically reconnects the connection.
 >
 > I want to turn the guacamole vnc auto-reconnect off.
 >
 > We are using database authentication. So, I inserted the
following into
 > the "guacamole_connection_parameter" table:
 >
 > connection_id = '97'
 > parameter_name = 'autoretry'
 > parameter_value = '0'
 >
 > It did not work- guacamole still auto reconnects after the
connection
 > timeout.
 >
 > What am I missing?
 >
 > Tushar
 >
 >
 >
 >

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org

For additional commands, e-mail: user-h...@guacamole.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Re: turn off VNC auto-reconnect?

2022-03-01 Thread Tushar Sheth
Thanks for thinking about this- but unfortunately, that won't work.

As explained by Nick here:

https://lists.apache.org/thread/m7lof9s15n1dr2tlpkoznfstjyph59m0

api-session-timeout refers to idle time on the guac webapp UI. If there is
an active connection, guac considers that as not idle, even if there is
nothing happening on the actual remote desktop.

Regardless, we have idle timeout for the remote connection working via
TigerVNC server's -IdleTimeout parameter.

I just need help figuring out how to turn off guacamole's auto reconnect
when the VNC server closes the connection when the idle timeout is
triggered.

I found an old thread with some ideas, but not a clear solution, here:

https://lists.apache.org/thread/b7n7x5vr3j5cd370nrrlrb10qhlw00h3

Tushar

On Wed, Mar 2, 2022 at 2:50 AM Ivanmarcus 
wrote:

> Tushar,
>
> I've not tried this specifically, however I wonder if you were to set
> api-session-timeout to 15 in guacamole.properties whether that would
> address your issue?
>
> On 2/03/22 7:39 am, Tushar Sheth wrote:
> > Hi- we set our VNC server (TigerVNC) to disconnect a session after a
> > certain amount of idle time (15 minutes). When that happens, guacamole
> > kicks in and does a countdown of a certain number of seconds and then
> > automatically reconnects the connection.
> >
> > I want to turn the guacamole vnc auto-reconnect off.
> >
> > We are using database authentication. So, I inserted the following into
> > the "guacamole_connection_parameter" table:
> >
> > connection_id = '97'
> > parameter_name = 'autoretry'
> > parameter_value = '0'
> >
> > It did not work- guacamole still auto reconnects after the connection
> > timeout.
> >
> > What am I missing?
> >
> > Tushar
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
> For additional commands, e-mail: user-h...@guacamole.apache.org
>
>


Re: turn off VNC auto-reconnect?

2022-03-01 Thread Ivanmarcus

Tushar,

I've not tried this specifically, however I wonder if you were to set 
api-session-timeout to 15 in guacamole.properties whether that would 
address your issue?


On 2/03/22 7:39 am, Tushar Sheth wrote:
Hi- we set our VNC server (TigerVNC) to disconnect a session after a 
certain amount of idle time (15 minutes). When that happens, guacamole 
kicks in and does a countdown of a certain number of seconds and then 
automatically reconnects the connection.


I want to turn the guacamole vnc auto-reconnect off.

We are using database authentication. So, I inserted the following into 
the "guacamole_connection_parameter" table:


connection_id = '97'
parameter_name = 'autoretry'
parameter_value = '0'

It did not work- guacamole still auto reconnects after the connection 
timeout.


What am I missing?

Tushar






-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Re: Unknown authentication scheme from VNC server

2022-03-01 Thread Ivanmarcus

Austin,

The problem _may_ be to do with the RealVNC auth you have set.

I'm unable to help with specific macOS questions, however - as Nick has 
commented recently - RealVNC does have mechanisms that 'standard' VNC 
does not. This series of posts may be of some use in explaining that:


https://lists.apache.org/thread/yqcfok3ph6obw2k3cqc0zn1gb0ol9nmw

So, if possible, it could be worth trying a different auth setting on 
your RealVNC server. That may be all that's needed to resolve the issue?




On 2/03/22 7:45 am, Leath, Austin wrote:
Hey everyone, We are having some issues getting VNC Server on macOS to 
communicate with our guacd servers.


I took a look at the logs and I found this error message every time we 
try to connect to the machine running VNC server:


Here is the version of VNC Server that we are running on our macOS machine:

We are working with RealVNC to give us an enterprise license for VNC 
Server so that we can have decent copy/paste ability, but before we pull 
the trigger we wanted to get it working first. What should we do to 
resolve this issue? Is there an issue with the VNC Server version not 
being compatible with the guacd server?


*Austin Leath***CVAD IT Service Desk
Text Description automatically generated
*ART 371 |*�1201 West Mulberry Street, Denton, TX 76201
*cvad.itservi...@unt.edu **|* 
*940.565.4522**|**itservices.cvad.unt.edu 
*




-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Re: [EXT] Re: Re: Understanding Sharing Profile for Non-Admins

2022-03-01 Thread Leath, Austin
Thank you so much! This solves my issue

From: Nick Couchman 
Date: Tuesday, March 1, 2022 at 12:48 PM
To: user@guacamole.apache.org 
Subject: [EXT] Re: Re: Understanding Sharing Profile for Non-Admins
On Tue, Mar 1, 2022 at 12:33 PM Leath, Austin 
mailto:austin.le...@unt.edu>> wrote:
Hello, we are utilizing the guacamole API and are really wanting to know if 
there is a PATCH API endpoint that allows us to add sharing profile connection 
permissions to user groups programmatically. All of the sharing profile 
connections are already created, all we need to do is figure out a way to add 
permissions for specific user groups to access them


This can definitely be done programmatically. The correct endpoint would be a 
PATCH:
api/session/data/postgresql/userGroups//permissions

and the patch would look something like this:
[
  {
op: "add",
path: "/sharingProfilePermissions/",
value: "READ"
  }
]

I just pulled this information out of the "Network" tab in my browser's 
developer tools section, so it might take some tweaking to get it right, but 
that should put you on the right track.

-Nick


Re: Re: Understanding Sharing Profile for Non-Admins

2022-03-01 Thread Nick Couchman
On Tue, Mar 1, 2022 at 12:33 PM Leath, Austin  wrote:

> Hello, we are utilizing the guacamole API and are really wanting to know
> if there is a PATCH API endpoint that allows us to add sharing profile
> connection permissions to user groups programmatically. All of the sharing
> profile connections are already created, all we need to do is figure out a
> way to add permissions for specific user groups to access them
>
>
>

This can definitely be done programmatically. The correct endpoint would be
a PATCH:
api/session/data/postgresql/userGroups//permissions

and the patch would look something like this:
[
  {
op: "add",
path: "/sharingProfilePermissions/",
value: "READ"
  }
]

I just pulled this information out of the "Network" tab in my browser's
developer tools section, so it might take some tweaking to get it right,
but that should put you on the right track.

-Nick

>


turn off VNC auto-reconnect?

2022-03-01 Thread Tushar Sheth
Hi- we set our VNC server (TigerVNC) to disconnect a session after a
certain amount of idle time (15 minutes). When that happens, guacamole
kicks in and does a countdown of a certain number of seconds and then
automatically reconnects the connection.

I want to turn the guacamole vnc auto-reconnect off.

We are using database authentication. So, I inserted the following into the
"guacamole_connection_parameter" table:

connection_id = '97'
parameter_name = 'autoretry'
parameter_value = '0'

It did not work- guacamole still auto reconnects after the connection
timeout.

What am I missing?

Tushar


RE: Re: Understanding Sharing Profile for Non-Admins

2022-03-01 Thread Leath, Austin
Hello, we are utilizing the guacamole API and are really wanting to know if 
there is a PATCH API endpoint that allows us to add sharing profile connection 
permissions to user groups programmatically. All of the sharing profile 
connections are already created, all we need to do is figure out a way to add 
permissions for specific user groups to access them

I have been using some documentation that I found on GitHub that covers another 
version of Guacamole (Version 1.1.0), and while I know it is out of date it has 
mostly everything we need to create synchronization scripts.

I made an issue in that GitHub project that better describes what we are 
looking for: 
https://github.com/ridvanaltun/guacamole-rest-api-documentation/issues/8


On 2022/03/01 01:08:18 Mike Jumper wrote:
> On Mon, Feb 28, 2022, 12:42 Khoe, Yonathan 
> mailto:yo...@unt.edu>> wrote:
>
> > Hello,
> >
> > We set up sharing profiles for all of our connections under an admin
> > account.  We want the ability for our students to be able to generate a
> > share link to their connection viewing (to their professor) when they are
> > remoted to a machine.  We thought that this was the idea when we create the
> > sharing profiles individually and giving them a read-only option and name,
> > but it turns out that our students cannot see the “Share” button when
> > opening the Guacamole menu (ctrl+alt+shift).  The student accounts
> > themselves do not have any permissions; the user groups that the students
> > belong to also do not have permissions set (we only use it to assign the
> > connection groups).  Are we missing something in terms of letting
> > non-admins to be able to generate a share link to be given to other people?
> >
>
> You need to additionally grant the users (or the relevant group) access to
> the sharing profile, not just the connection. Only users with access to a
> particular sharing profile will be able to share the relevant connection
> using that profile.
>
> - Mike
>


R: Error 404 with Guacamole 1.4.0 / Tomcat 9 / Ubuntu 21.10

2022-03-01 Thread Alessandro Sironi
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  
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 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.-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] 

Re: Error 404 with Guacamole 1.4.0 / Tomcat 9 / Ubuntu 21.10

2022-03-01 Thread Antoine Besnier
 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 
 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.-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
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
re.StandardContext.startInternal Context [/guacamole] startup failed due to pr
evious errors
in localhost_access_log.-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 

Re: when AuthenticationFailureEvent happen, redirect to other website

2022-03-01 Thread Nick Couchman
On Tue, Mar 1, 2022 at 3:13 AM Simon  wrote:

> hello,
>  I build a authentication provider guac-ext.
> sometimes, authenticate failed, I notices that, guac-ext provide
> `Listener`. when I handle AuthenticationFailureEvent, can i redirect this
> request to other website, like google.com.
>
>
I don't think the event listener can trigger a redirect, I think you'd need
to do that with an AuthenticationProvider.

-Nick


Re: Error 404 with Guacamole 1.4.0 / Tomcat 9 / Ubuntu 21.10

2022-03-01 Thread Nick Couchman
On Tue, Mar 1, 2022 at 6:59 AM Adam Cherrett  wrote:

> 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/
>
>
How about the Guacamole manual? Have you followed the documentation there?


> 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.-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
> 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
> re.StandardContext.startInternal Context [/guacamole] startup failed due
> to pr
> evious errors
>
>
Can you just post the output of catalina.out? It may have some more
information that would be useful in determining why the deploy failed.

-Nick


Re: is there any method to remove "guacamole" in web url

2022-03-01 Thread Nick Couchman
On Tue, Mar 1, 2022 at 9:15 AM Jim Rx  wrote:

> Use a proxy. For example, we have NGINX set up to forward web requests to
> https://guac.domain.tld/ to https://guac.domain.tld:8080/guacamole/ . The
> user only has to type in the https://guac.domain.tld
>
>
> Here is a web page that talks about it
>
> How to Set up a Reverse Proxy (Step-By-Step for Nginx & Apache)
> 
>

Basically just deploy the WAR file as ROOT.war instead of guacamole.war,
which should deploy it at /. Then adjust proxy configuration to match.

-Nick


Re: is there any method to remove "guacamole" in web url

2022-03-01 Thread Jim Rx
Use a proxy. For example, we have NGINX set up to forward web requests to https://guac.domain.tld/ to https://guac.domain.tld:8080/guacamole/ . The user only has to type in the https://guac.domain.tld

 

 


Here is a web page that talks about it

 

How to Set up a Reverse Proxy (Step-By-Step for Nginx & Apache)

 

Sent: Tuesday, March 01, 2022 at 2:18 AM
From: "Simon" 
To: "user@guacamole.apache.org" 
Subject: is there any method to remove "guacamole" in web url



hello,

in default, we visit guac in browser, root web rul contain "guacamole".

is there any method to remove "guacamole" in web url?

 

 

thx

 

 





-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Error 404 with Guacamole 1.4.0 / Tomcat 9 / Ubuntu 21.10

2022-03-01 Thread Adam Cherrett
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.-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
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
re.StandardContext.startInternal Context [/guacamole] startup failed due to
pr
evious errors

in localhost_access_log.-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 

is there any method to remove "guacamole" in web url

2022-03-01 Thread Simon
hello,
in default, we visit guac in browser, root web rul contain "guacamole".
is there any method to remove "guacamole" in web url?




thx

when AuthenticationFailureEvent happen, redirect to other website

2022-03-01 Thread Simon
hello,
 I build a authentication provider guac-ext.
sometimes, authenticate failed, I notices that, guac-ext provide 
`Listener`. when I handle AuthenticationFailureEvent, can i redirect this 
request to other website, like google.com.


thx