You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Travis Kelley <rh...@gmail.com> on 2017/08/19 23:17:36 UTC

guacd connection refused from docker image

I used docker to deploy guacd, guacamole, and mysql.  I thought I had
everything setup correctly.  I'm able to bring up the web gui and
login, but when I try to connect I'm getting a connection refused in
the catalina log file as shown below.  I even confirmed that guacd is
listening with the netstat commend at the bottom.  I'm at a loss as to
how to investigate further whats stopping the guacamole client from
being able to connect to guacd.  Can anyone offer any suggestions?


22:56:11.017 [http-nio-8080-exec-5] ERROR
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket
tunnel to guacd failed: java.net.ConnectException: Connection refused
(Connection refused)
22:56:11.042 [http-nio-8080-exec-4] ERROR
o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed:
java.net.ConnectException: Connection refused (Connection refused)


docker run --name some-guacd -d guacamole/guacd

docker run --name some-guacamole --link some-guacd:guacd --link
some-mysql:mysql -e MYSQL_DATABASE=guacamole_db -e
MYSQL_USER=guacamole_user -e MYSQL_PASSWORD=PASSWORD -d -p 8080:8080
guacamole/guacamole


[root@guacamole ~]# nsenter -t 32637 -n netstat -tupan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address
State       PID/Program name
tcp        0      0 0.0.0.0:4822            0.0.0.0:*
LISTEN      32637/guacd

Re: guacd connection refused from docker image

Posted by Nick Couchman <ni...@yahoo.com>.
On Monday, August 21, 2017, 1:16:06 AM EDT, Mike Jumper <mi...@guac-dev.org> wrote:


On Sun, Aug 20, 2017 at 9:04 PM, Travis Kelley <rh...@gmail.com> wrote:

Ok, this was a really boneheaded move by me.  When I created the
connection inside the guacamole gui I put the IP address of the RDP
server I wanted to connect to in the hostname field for the guacd
proxy.  Completely my fault, and once I put the RDP ip address in the
correct hostname field everything worked.

I wonder if the logging could be enhanced to say somewhere what
address its failing to connect to (either the proxy address or the
guacd address).  If I had seen my RDP servers IP address as the guacd
server I would have immediately understood the problem.



> I think we should also consider whether the proxy address, etc. could be better displayed such that it's not so easily confused with the connection parameters. I've made the same mistake myself several times.> - Mike
+1
:-)

Re: guacd connection refused from docker image

Posted by Mike Jumper <mi...@guac-dev.org>.
On Sun, Aug 20, 2017 at 9:04 PM, Travis Kelley <rh...@gmail.com> wrote:

> Ok, this was a really boneheaded move by me.  When I created the
> connection inside the guacamole gui I put the IP address of the RDP
> server I wanted to connect to in the hostname field for the guacd
> proxy.  Completely my fault, and once I put the RDP ip address in the
> correct hostname field everything worked.
>
> I wonder if the logging could be enhanced to say somewhere what
> address its failing to connect to (either the proxy address or the
> guacd address).  If I had seen my RDP servers IP address as the guacd
> server I would have immediately understood the problem.
>
>
I think we should also consider whether the proxy address, etc. could be
better displayed such that it's not so easily confused with the connection
parameters. I've made the same mistake myself several times.

- Mike

Re: guacd connection refused from docker image

Posted by Travis Kelley <rh...@gmail.com>.
Ok, this was a really boneheaded move by me.  When I created the
connection inside the guacamole gui I put the IP address of the RDP
server I wanted to connect to in the hostname field for the guacd
proxy.  Completely my fault, and once I put the RDP ip address in the
correct hostname field everything worked.

I wonder if the logging could be enhanced to say somewhere what
address its failing to connect to (either the proxy address or the
guacd address).  If I had seen my RDP servers IP address as the guacd
server I would have immediately understood the problem.

Thanks for the great app guys!

On Sat, Aug 19, 2017 at 8:42 PM, Nick Couchman <ni...@yahoo.com> wrote:
> Travis,
> Any firewalls running on the docker host?
>
> -Nick
>
>
> On Saturday, August 19, 2017, 7:17:42 PM EDT, Travis Kelley
> <rh...@gmail.com> wrote:
>
>
> I used docker to deploy guacd, guacamole, and mysql.  I thought I had
> everything setup correctly.  I'm able to bring up the web gui and
> login, but when I try to connect I'm getting a connection refused in
> the catalina log file as shown below.  I even confirmed that guacd is
> listening with the netstat commend at the bottom.  I'm at a loss as to
> how to investigate further whats stopping the guacamole client from
> being able to connect to guacd.  Can anyone offer any suggestions?
>
>
> 22:56:11.017 [http-nio-8080-exec-5] ERROR
> o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket
> tunnel to guacd failed: java.net.ConnectException: Connection refused
> (Connection refused)
> 22:56:11.042 [http-nio-8080-exec-4] ERROR
> o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed:
> java.net.ConnectException: Connection refused (Connection refused)
>
>
> docker run --name some-guacd -d guacamole/guacd
>
> docker run --name some-guacamole --link some-guacd:guacd --link
> some-mysql:mysql -e MYSQL_DATABASE=guacamole_db -e
> MYSQL_USER=guacamole_user -e MYSQL_PASSWORD=PASSWORD -d -p 8080:8080
> guacamole/guacamole
>
>
> [root@guacamole ~]# nsenter -t 32637 -n netstat -tupan
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address          Foreign Address
> State      PID/Program name
> tcp        0      0 0.0.0.0:4822            0.0.0.0:*
> LISTEN      32637/guacd

Re: guacd connection refused from docker image

Posted by Nick Couchman <ni...@yahoo.com>.
Travis,Any firewalls running on the docker host?
-Nick

On Saturday, August 19, 2017, 7:17:42 PM EDT, Travis Kelley <rh...@gmail.com> wrote:

I used docker to deploy guacd, guacamole, and mysql.  I thought I had
everything setup correctly.  I'm able to bring up the web gui and
login, but when I try to connect I'm getting a connection refused in
the catalina log file as shown below.  I even confirmed that guacd is
listening with the netstat commend at the bottom.  I'm at a loss as to
how to investigate further whats stopping the guacamole client from
being able to connect to guacd.  Can anyone offer any suggestions?


22:56:11.017 [http-nio-8080-exec-5] ERROR
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket
tunnel to guacd failed: java.net.ConnectException: Connection refused
(Connection refused)
22:56:11.042 [http-nio-8080-exec-4] ERROR
o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed:
java.net.ConnectException: Connection refused (Connection refused)


docker run --name some-guacd -d guacamole/guacd

docker run --name some-guacamole --link some-guacd:guacd --link
some-mysql:mysql -e MYSQL_DATABASE=guacamole_db -e
MYSQL_USER=guacamole_user -e MYSQL_PASSWORD=PASSWORD -d -p 8080:8080
guacamole/guacamole


[root@guacamole ~]# nsenter -t 32637 -n netstat -tupan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address
State      PID/Program name
tcp        0      0 0.0.0.0:4822            0.0.0.0:*
LISTEN      32637/guacd