Re: tracking down a tomcat 500 error

2017-10-06 Thread Jacob Staub

Good morning,

See attached for a docker-compose file that runs Guacamole 0.9.13 
successfully in the following environment:


1. Docker host = Ubuntu 16.04.3 LTS
2. Docker engine = 17.06.2-ce
3. Docker compose = 1.13.0.

A note about the attached docker-compose file:

From what I understand about Docker networking, 'network_mode: 
"bridge"' places docker-compose initiated containers on the default 
bridge network which is handy if you want them to interact with 
containers that were not initiated with docker-compose.


For example, if you use a common database container initiated via 
typical docker command line instructions it would reside on the default 
"bridge" network. To place your Guacamole containers on the bridge 
network such that the common database container is accessible, 
'network_mode: "bridge"' would be used.


Regards,
Jake

On 10/5/2017 2:42 PM, Ryan Underwood wrote:


Anyone have ideas on the below?  I get the same error when guacd is 
running or when it’s not.  I’ve tried it with docker link (deprecated) 
and putting all the containers on a docker network.  No matter what, 
tomcat gives me the connection refused error. I tried it with RDP and 
random other protocols just to see if I could generate a different 
warning.


I can telnet to $GUACD_HOST 4802 from the guacamole server and see the 
guacd error about the protocol in the logs.  I’ve disabled windows 
firewall, disabled antivirus, tried it on public and private networks 
and am just flat out of ideas.


01:42:10.038 [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)


01:42:10.108 [http-nio-8080-exec-7] ERROR 
o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: 
java.net.ConnectException: Connection refused (Connection refused)


Thank you

*From:* Ryan Underwood [mailto:r...@greymarketlabs.com]
*Sent:* Wednesday, October 04, 2017 9:52 PM
*To:* user@guacamole.incubator.apache.org
*Subject:* RE: tracking down a tomcat 500 error

I thought I was there but think I have a problem with guacamole 
connecting to guacd.  From each of the containers I can ping the other 
so the network connectivity within docker _/seems/_ OK.  Here’s what I 
have when I attempt to connect to a connection that I setup through 
the GUI:


01:42:10.038 [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)


01:42:10.108 [http-nio-8080-exec-7] ERROR 
o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: 
java.net.ConnectException: Connection refused (Connection refused)


Any tips on this one?  I saw an error like this in the board history 
but the person said they didn’t have guacd running.  I know it’s 
running but perhaps there’s a connectivity issue…


Thank you

-Ryan

*From:* Ryan Underwood [mailto:r...@greymarketlabs.com]
*Sent:* Wednesday, October 04, 2017 9:43 AM
*To:* user@guacamole.incubator.apache.org 
<mailto:user@guacamole.incubator.apache.org>

*Subject:* RE: tracking down a tomcat 500 error

Docker on win10 pro does, and that was a good idea.  I had the 
password environment variable wrong and saw the access denied for the 
user in the mysql logs.  Thanks for the quick responses!


*From:* Mike Jumper [mailto:mike.jum...@guac-dev.org]
*Sent:* Wednesday, October 04, 2017 12:17 AM
*To:* user@guacamole.incubator.apache.org 
<mailto:user@guacamole.incubator.apache.org>

*Subject:* Re: tracking down a tomcat 500 error

On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood 
<r...@greymarketlabs.com <mailto:r...@greymarketlabs.com>> wrote:


I am running guacamole via docker on win10 pro. I’m using Mysql,
guacamole and guacd and all appear to be running as intended.  I
get a 500 error when I hit the home page. Localhost access log
shows all the GETs work

Those GETs are probably to static files, and thus aren't hitting the 
component which is failing.


and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]

There shouldn't be a PUT occurring prior to login. What URL is that 
PUT request for?


"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I
should be looking to narrow this down or get more info?

".../api/tokens" is the URL of the REST endpoint used for handling 
authentication. Given the description of your setup, the MySQL portion 
of things is most likely misconfigured (somehow). Once we find the 
proper log, things should clear up.


Catalina error seems to be in non-guacamole classes so not sure
where to go next.

-Ryan

Catalina:

04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8]
com.sun.jersey.spi.container.ContainerResponse.logException Mapped
exception to respons

RE: tracking down a tomcat 500 error

2017-10-05 Thread Ryan Underwood
Anyone have ideas on the below?  I get the same error when guacd is running or 
when it’s not.  I’ve tried it with docker link (deprecated) and putting all the 
containers on a docker network.  No matter what, tomcat gives me the connection 
refused error. I tried it with RDP and random other protocols just to see if I 
could generate a different warning.
I can telnet to $GUACD_HOST 4802 from the guacamole server and see the guacd 
error about the protocol in the logs.  I’ve disabled windows firewall, disabled 
antivirus, tried it on public and private networks and am just flat out of 
ideas.


01:42:10.038 [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)
01:42:10.108 [http-nio-8080-exec-7] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - 
HTTP tunnel request failed: java.net.ConnectException: Connection refused 
(Connection refused)


Thank you

From: Ryan Underwood [mailto:r...@greymarketlabs.com]
Sent: Wednesday, October 04, 2017 9:52 PM
To: user@guacamole.incubator.apache.org
Subject: RE: tracking down a tomcat 500 error

I thought I was there but think I have a problem with guacamole connecting to 
guacd.  From each of the containers I can ping the other so the network 
connectivity within docker _seems_ OK.  Here’s what I have when I attempt to 
connect to a connection that I setup through the GUI:

01:42:10.038 [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)
01:42:10.108 [http-nio-8080-exec-7] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - 
HTTP tunnel request failed: java.net.ConnectException: Connection refused 
(Connection refused)

Any tips on this one?  I saw an error like this in the board history but the 
person said they didn’t have guacd running.  I know it’s running but perhaps 
there’s a connectivity issue…
Thank you
-Ryan

From: Ryan Underwood [mailto:r...@greymarketlabs.com]
Sent: Wednesday, October 04, 2017 9:43 AM
To: 
user@guacamole.incubator.apache.org<mailto:user@guacamole.incubator.apache.org>
Subject: RE: tracking down a tomcat 500 error

Docker on win10 pro does, and that was a good idea.  I had the password 
environment variable wrong and saw the access denied for the user in the mysql 
logs.  Thanks for the quick responses!

From: Mike Jumper [mailto:mike.jum...@guac-dev.org]
Sent: Wednesday, October 04, 2017 12:17 AM
To: 
user@guacamole.incubator.apache.org<mailto:user@guacamole.incubator.apache.org>
Subject: Re: tracking down a tomcat 500 error

On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood 
<r...@greymarketlabs.com<mailto:r...@greymarketlabs.com>> wrote:
I am running guacamole via docker on win10 pro. I’m using Mysql, guacamole and 
guacd and all appear to be running as intended.  I get a 500 error when I hit 
the home page. Localhost access log shows all the GETs work

Those GETs are probably to static files, and thus aren't hitting the component 
which is failing.

and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]

There shouldn't be a PUT occurring prior to login. What URL is that PUT request 
for?

"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I should be 
looking to narrow this down or get more info?

".../api/tokens" is the URL of the REST endpoint used for handling 
authentication. Given the description of your setup, the MySQL portion of 
things is most likely misconfigured (somehow). Once we find the proper log, 
things should clear up.

  Catalina error seems to be in non-guacamole classes so not sure where to go 
next.
-Ryan

Catalina:

04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8] 
com.sun.jersey.spi.container.ContainerResponse.logException Mapped exception to 
response: 500 (Internal Server Error)
org.apache.guacamole.rest.APIException
at 
org.apache.guacamole.rest.RESTExceptionWrapper.invoke(RESTExceptionWrapper.java:202)

What log file is this from specifically?

Thanks,

- Mike



RE: tracking down a tomcat 500 error

2017-10-04 Thread Ryan Underwood
I thought I was there but think I have a problem with guacamole connecting to 
guacd.  From each of the containers I can ping the other so the network 
connectivity within docker _seems_ OK.  Here’s what I have when I attempt to 
connect to a connection that I setup through the GUI:

01:42:10.038 [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)
01:42:10.108 [http-nio-8080-exec-7] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - 
HTTP tunnel request failed: java.net.ConnectException: Connection refused 
(Connection refused)

Any tips on this one?  I saw an error like this in the board history but the 
person said they didn’t have guacd running.  I know it’s running but perhaps 
there’s a connectivity issue…
Thank you
-Ryan

From: Ryan Underwood [mailto:r...@greymarketlabs.com]
Sent: Wednesday, October 04, 2017 9:43 AM
To: user@guacamole.incubator.apache.org
Subject: RE: tracking down a tomcat 500 error

Docker on win10 pro does, and that was a good idea.  I had the password 
environment variable wrong and saw the access denied for the user in the mysql 
logs.  Thanks for the quick responses!

From: Mike Jumper [mailto:mike.jum...@guac-dev.org]
Sent: Wednesday, October 04, 2017 12:17 AM
To: 
user@guacamole.incubator.apache.org<mailto:user@guacamole.incubator.apache.org>
Subject: Re: tracking down a tomcat 500 error

On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood 
<r...@greymarketlabs.com<mailto:r...@greymarketlabs.com>> wrote:
I am running guacamole via docker on win10 pro. I’m using Mysql, guacamole and 
guacd and all appear to be running as intended.  I get a 500 error when I hit 
the home page. Localhost access log shows all the GETs work

Those GETs are probably to static files, and thus aren't hitting the component 
which is failing.

and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]

There shouldn't be a PUT occurring prior to login. What URL is that PUT request 
for?

"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I should be 
looking to narrow this down or get more info?

".../api/tokens" is the URL of the REST endpoint used for handling 
authentication. Given the description of your setup, the MySQL portion of 
things is most likely misconfigured (somehow). Once we find the proper log, 
things should clear up.

  Catalina error seems to be in non-guacamole classes so not sure where to go 
next.
-Ryan

Catalina:

04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8] 
com.sun.jersey.spi.container.ContainerResponse.logException Mapped exception to 
response: 500 (Internal Server Error)
org.apache.guacamole.rest.APIException
at 
org.apache.guacamole.rest.RESTExceptionWrapper.invoke(RESTExceptionWrapper.java:202)

What log file is this from specifically?

Thanks,

- Mike



RE: tracking down a tomcat 500 error

2017-10-04 Thread Ryan Underwood
Docker on win10 pro does, and that was a good idea.  I had the password 
environment variable wrong and saw the access denied for the user in the mysql 
logs.  Thanks for the quick responses!

From: Mike Jumper [mailto:mike.jum...@guac-dev.org]
Sent: Wednesday, October 04, 2017 12:17 AM
To: user@guacamole.incubator.apache.org
Subject: Re: tracking down a tomcat 500 error

On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood 
<r...@greymarketlabs.com<mailto:r...@greymarketlabs.com>> wrote:
I am running guacamole via docker on win10 pro. I’m using Mysql, guacamole and 
guacd and all appear to be running as intended.  I get a 500 error when I hit 
the home page. Localhost access log shows all the GETs work

Those GETs are probably to static files, and thus aren't hitting the component 
which is failing.

and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]

There shouldn't be a PUT occurring prior to login. What URL is that PUT request 
for?

"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I should be 
looking to narrow this down or get more info?

".../api/tokens" is the URL of the REST endpoint used for handling 
authentication. Given the description of your setup, the MySQL portion of 
things is most likely misconfigured (somehow). Once we find the proper log, 
things should clear up.

  Catalina error seems to be in non-guacamole classes so not sure where to go 
next.
-Ryan

Catalina:

04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8] 
com.sun.jersey.spi.container.ContainerResponse.logException Mapped exception to 
response: 500 (Internal Server Error)
org.apache.guacamole.rest.APIException
at 
org.apache.guacamole.rest.RESTExceptionWrapper.invoke(RESTExceptionWrapper.java:202)

What log file is this from specifically?

Thanks,

- Mike



RE: tracking down a tomcat 500 error

2017-10-04 Thread Mike Jumper
Does the Windows 10 version of Docker have the "docker logs" command?

https://docs.docker.com/engine/reference/commandline/logs/


On Oct 4, 2017 05:39, "Ryan Underwood" <r...@greymarketlabs.com> wrote:

Thanks Mike.
I typed PUT but meant POST, as it shows below, to POST
/guacamole/api/tokens.
The larger log excerpt I pasted is catalina.out from tomcat. I'll
investigate the MySQL side and jdbc connection.
-Ryan

Sent from my Android phone using TouchDown (www.symantec.com)


-Original Message-
*From:* Mike Jumper [mike.jum...@guac-dev.org]
*Received:* Wednesday, 04 Oct 2017, 12:18AM
*To:* user@guacamole.incubator.apache.org [user@guacamole.incubator.
apache.org]
*Subject:* Re: tracking down a tomcat 500 error

On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood <r...@greymarketlabs.com>
wrote:

> I am running guacamole via docker on win10 pro. I’m using Mysql, guacamole
> and guacd and all appear to be running as intended.  I get a 500 error when
> I hit the home page. Localhost access log shows all the GETs work
>

Those GETs are probably to static files, and thus aren't hitting the
component which is failing.


> and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]
>

There shouldn't be a PUT occurring prior to login. What URL is that PUT
request for?

"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I should
> be looking to narrow this down or get more info?
>

".../api/tokens" is the URL of the REST endpoint used for handling
authentication. Given the description of your setup, the MySQL portion of
things is most likely misconfigured (somehow). Once we find the proper log,
things should clear up.

  Catalina error seems to be in non-guacamole classes so not sure where to
> go next.
>
> -Ryan
>
>
>
> Catalina:
>
>
>
> 04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8]
> com.sun.jersey.spi.container.ContainerResponse.logException Mapped
> exception to response: 500 (Internal Server Error)
>
> org.apache.guacamole.rest.APIException
>
> at org.apache.guacamole.rest.RESTExceptionWrapper.invoke(RESTEx
> ceptionWrapper.java:202)
>

What log file is this from specifically?

Thanks,

- Mike


RE: tracking down a tomcat 500 error

2017-10-04 Thread Ryan Underwood
Thanks Mike.
I typed PUT but meant POST, as it shows below, to POST /guacamole/api/tokens.
The larger log excerpt I pasted is catalina.out from tomcat. I'll investigate 
the MySQL side and jdbc connection.
-Ryan

Sent from my Android phone using TouchDown (www.symantec.com)

-Original Message-
From: Mike Jumper [mike.jum...@guac-dev.org]
Received: Wednesday, 04 Oct 2017, 12:18AM
To: user@guacamole.incubator.apache.org [user@guacamole.incubator.apache.org]
Subject: Re: tracking down a tomcat 500 error

On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood 
<r...@greymarketlabs.com<mailto:r...@greymarketlabs.com>> wrote:
I am running guacamole via docker on win10 pro. I’m using Mysql, guacamole and 
guacd and all appear to be running as intended.  I get a 500 error when I hit 
the home page. Localhost access log shows all the GETs work

Those GETs are probably to static files, and thus aren't hitting the component 
which is failing.

and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]

There shouldn't be a PUT occurring prior to login. What URL is that PUT request 
for?

"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I should be 
looking to narrow this down or get more info?

".../api/tokens" is the URL of the REST endpoint used for handling 
authentication. Given the description of your setup, the MySQL portion of 
things is most likely misconfigured (somehow). Once we find the proper log, 
things should clear up.

  Catalina error seems to be in non-guacamole classes so not sure where to go 
next.
-Ryan

Catalina:

04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8] 
com.sun.jersey.spi.container.ContainerResponse.logException Mapped exception to 
response: 500 (Internal Server Error)
org.apache.guacamole.rest.APIException
at 
org.apache.guacamole.rest.RESTExceptionWrapper.invoke(RESTExceptionWrapper.java:202)

What log file is this from specifically?

Thanks,

- Mike



Re: tracking down a tomcat 500 error

2017-10-03 Thread Mike Jumper
On Tue, Oct 3, 2017 at 8:42 PM, Ryan Underwood 
wrote:

> I am running guacamole via docker on win10 pro. I’m using Mysql, guacamole
> and guacd and all appear to be running as intended.  I get a 500 error when
> I hit the home page. Localhost access log shows all the GETs work
>

Those GETs are probably to static files, and thus aren't hitting the
component which is failing.


> and a PUT failed (172.17.0.1 - - [04/Oct/2017:03:27:52 +]
>

There shouldn't be a PUT occurring prior to login. What URL is that PUT
request for?

"POST /guacamole/api/tokens HTTP/1.1" 500 185).  Any ideas where I should
> be looking to narrow this down or get more info?
>

".../api/tokens" is the URL of the REST endpoint used for handling
authentication. Given the description of your setup, the MySQL portion of
things is most likely misconfigured (somehow). Once we find the proper log,
things should clear up.

  Catalina error seems to be in non-guacamole classes so not sure where to
> go next.
>
> -Ryan
>
>
>
> Catalina:
>
>
>
> 04-Oct-2017 03:13:40.242 SEVERE [http-nio-8080-exec-8]
> com.sun.jersey.spi.container.ContainerResponse.logException Mapped
> exception to response: 500 (Internal Server Error)
>
> org.apache.guacamole.rest.APIException
>
> at org.apache.guacamole.rest.RESTExceptionWrapper.invoke(
> RESTExceptionWrapper.java:202)
>

What log file is this from specifically?

Thanks,

- Mike