You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Jeremy Tourville <je...@gmail.com> on 2019/11/11 01:23:37 UTC

Error when connecting

I have setup a new server on CentOS 7.7 and defined a new connection to use
VNC.  I have supplied the connection name, location: ROOT, Protocol: VNC.
In the Guacd section I have defined the hostname and port 5901.  When I try
to connect I get an error.

Connection Error
An internal error has occurred within the Guacamole server and the
connection has been terminated.  If the problem persists. please notify
your system administrator, or check your system logs. Reconnecting in x
seconds...

At the same time I ran-
#tail -f /var/log/messages

Nov 10 18:10:45 remote server: 18:10:45.589 [http-bio-8080-exec-5] ERROR
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to
guacd failed: java.net.ConnectException: Connection refused (Connection
refused)
Nov 10 18:10:45 remote server: 18:10:45.634 [http-bio-8080-exec-2] ERROR
o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed:
java.net.ConnectException: Connection refused (Connection refused)

I did confirm that guacd is running.  I also confirmed I am able to connect
to VNC from my workstation (which is not the Guacamole Server)  VNC works
normally from my workstation.

Any suggestions or hints for troubleshooting would be appreciated.  Thank
you.

Re: Error when connecting

Posted by Nick Couchman <vn...@apache.org>.
On Mon, Nov 11, 2019 at 4:24 PM Jeremy Tourville <je...@gmail.com>
wrote:

> Doh!!!! I am wearing egg all over my face and eating some humble pie.  I
> should have caught the fact that vnc service was not running on 5901.  I'm
> glad the fix was simple.  Funny thing is that I have 11 vnc sessions
> defined
> for other users and all of them were running EXCEPT the first one.  I
> thought I had set them all to enable.  It's all connecting now.  Problem
> solved.
>
>
Glad you figured it out.  I'll take the simple solutions!

-Nick

Re: Error when connecting

Posted by Jeremy Tourville <je...@gmail.com>.
Doh!!!! I am wearing egg all over my face and eating some humble pie.  I
should have caught the fact that vnc service was not running on 5901.  I'm
glad the fix was simple.  Funny thing is that I have 11 vnc sessions defined
for other users and all of them were running EXCEPT the first one.  I
thought I had set them all to enable.  It's all connecting now.  Problem
solved.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

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


Re: Error when connecting

Posted by Nick Couchman <vn...@apache.org>.
On Sun, Nov 10, 2019 at 9:38 PM Jeremy Tourville <je...@gmail.com>
wrote:

> OK, I checked my connection settings
> I used the IP address not the hostname so there wouldn't be DNS issues.  I
> defined port 5901.  The user markw runs vncserver@:1.service.  So I think
> that port number should be correct.  I tried to connect one more time using
> these settings.   Here is my log.
>

Yeah, that should be correct.  Any firewall running on the system or
anything like that?  Can you verify that the system is listening on that
port (ss -tnlp) and that there are no firewall rules that would block it?

-Nick

Re: Error when connecting

Posted by Jeremy Tourville <je...@gmail.com>.
OK, I checked my connection settings
I used the IP address not the hostname so there wouldn't be DNS issues.  I
defined port 5901.  The user markw runs vncserver@:1.service.  So I think
that port number should be correct.  I tried to connect one more time using
these settings.   Here is my log.

Nov 10 20:36:51 remote guacd[1314]: Creating new client for protocol "vnc"
Nov 10 20:36:51 remote guacd: guacd[1314]: INFO:#011Creating new client for
protocol "vnc"
Nov 10 20:36:51 remote guacd: guacd[1314]: INFO:#011Connection ID is
"$9f4a5375-627f-4698-b24a-38c80da22422"
Nov 10 20:36:51 remote guacd[1314]: Connection ID is
"$9f4a5375-627f-4698-b24a-38c80da22422"
Nov 10 20:36:51 remote guacd[9257]: Cursor rendering: local
Nov 10 20:36:51 remote guacd: guacd[9257]: INFO:#011Cursor rendering: local
Nov 10 20:36:51 remote guacd: guacd[9257]: INFO:#011User
"@55b6b0d0-0d80-485a-a381-e6a3a31f9078" joined connection
"$9f4a5375-627f-4698-b24a-38c80da22422" (1 users now present)
Nov 10 20:36:51 remote guacd[9257]: User
"@55b6b0d0-0d80-485a-a381-e6a3a31f9078" joined connection
"$9f4a5375-627f-4698-b24a-38c80da22422" (1 users now present)
Nov 10 20:36:51 remote guacd: guacd[9257]: ERROR:#011Unable to connect to
VNC server.
Nov 10 20:36:51 remote guacd[9257]: ConnectClientToTcpAddr6: connect
Nov 10 20:36:51 remote guacd[9257]: ConnectToTcpAddr: connect
Nov 10 20:36:51 remote server: 20:36:51.664 [http-bio-8080-exec-6] INFO 
o.a.g.tunnel.TunnelRequestService - User "markw" connected to connection
"1".
Nov 10 20:36:51 remote guacd[9257]: Unable to connect to VNC server
Nov 10 20:36:51 remote guacd[9257]: Unable to connect to VNC server.
Nov 10 20:36:51 remote guacd[9257]: User
"@55b6b0d0-0d80-485a-a381-e6a3a31f9078" disconnected (0 users remain)
Nov 10 20:36:51 remote guacd: guacd[9257]: INFO:#011User
"@55b6b0d0-0d80-485a-a381-e6a3a31f9078" disconnected (0 users remain)
Nov 10 20:36:51 remote guacd: guacd[9257]: INFO:#011Last user of connection
"$9f4a5375-627f-4698-b24a-38c80da22422" disconnected
Nov 10 20:36:51 remote guacd[9257]: Last user of connection
"$9f4a5375-627f-4698-b24a-38c80da22422" disconnected
Nov 10 20:36:51 remote server: 20:36:51.705 [http-bio-8080-exec-6] INFO 
o.a.g.tunnel.TunnelRequestService - User "markw" disconnected from
connection "1". Duration: 41 milliseconds
Nov 10 20:36:56 remote guacd[1314]: Connection
"$9f4a5375-627f-4698-b24a-38c80da22422" removed.
Nov 10 20:36:56 remote guacd: guacd[1314]: INFO:#011Connection
"$9f4a5375-627f-4698-b24a-38c80da22422" removed.




--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

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


Re: Error when connecting

Posted by Nick Couchman <vn...@apache.org>.
On Sun, Nov 10, 2019 at 9:04 PM Jeremy Tourville <je...@gmail.com>
wrote:

> Ok, I fixed the connection setting as directed.  You were right on.  Now I
> get a different error so at least we're making progress!
>
> [root@remote ~]# tail -f /var/log/messages
> Nov 10 19:56:59 remote guacd[8878]: Unable to connect to VNC server
> Nov 10 19:56:59 remote guacd[8878]: Unable to connect to VNC server.
> Nov 10 19:56:59 remote guacd[8878]: User
> "@6e57d567-0a6f-4777-8a42-d24836033382" disconnected (0 users remain)
> Nov 10 19:56:59 remote guacd: guacd[8878]: INFO:#011User
> "@6e57d567-0a6f-4777-8a42-d24836033382" disconnected (0 users remain)
> Nov 10 19:56:59 remote guacd: guacd[8878]: INFO:#011Last user of connection
> "$77370ef9-c860-434c-a98b-dc4aa894da62" disconnected
> Nov 10 19:56:59 remote guacd[8878]: Last user of connection
> "$77370ef9-c860-434c-a98b-dc4aa894da62" disconnected
> Nov 10 19:56:59 remote server: 19:56:59.300 [http-bio-8080-exec-5] INFO
> o.a.g.tunnel.TunnelRequestService - User "markw" disconnected from
> connection "1". Duration: 19 milliseconds
> Nov 10 19:57:04 remote guacd[1314]: Connection
> "$77370ef9-c860-434c-a98b-dc4aa894da62" removed.
> Nov 10 19:57:04 remote guacd: guacd[1314]: INFO:#011Connection
> "$77370ef9-c860-434c-a98b-dc4aa894da62" removed.
> Nov 10 20:01:01 remote systemd: Started Session 4 of user root.
> Nov 10 20:01:23 remote guacd[1314]: Creating new client for protocol "vnc"
> Nov 10 20:01:23 remote guacd: guacd[1314]: INFO:#011Creating new client for
> protocol "vnc"
> Nov 10 20:01:23 remote guacd: guacd[1314]: INFO:#011Connection ID is
> "$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186"
> Nov 10 20:01:23 remote guacd[1314]: Connection ID is
> "$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186"
> Nov 10 20:01:23 remote guacd[8936]: Cursor rendering: local
> Nov 10 20:01:23 remote guacd: guacd[8936]: INFO:#011Cursor rendering: local
> Nov 10 20:01:23 remote guacd: guacd[8936]: INFO:#011User
> "@394831b0-e156-4ce2-a38f-e5ad0e8deceb" joined connection
> "$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" (1 users now present)
> Nov 10 20:01:23 remote guacd[8936]: User
> "@394831b0-e156-4ce2-a38f-e5ad0e8deceb" joined connection
> "$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" (1 users now present)
> Nov 10 20:01:23 remote server: 20:01:23.460 [http-bio-8080-exec-10] INFO
> o.a.g.tunnel.TunnelRequestService - User "markw" connected to connection
> "1".
> Nov 10 20:01:23 remote guacd[8936]: ConnectClientToTcpAddr6: getaddrinfo
> (Name or service not known)
> Nov 10 20:01:23 remote guacd: guacd[8936]: ERROR:#011Unable to connect to
> VNC server.
> Nov 10 20:01:23 remote guacd[8936]: ConnectToTcpAddr: connect
> Nov 10 20:01:23 remote guacd[8936]: Unable to connect to VNC server
> Nov 10 20:01:23 remote guacd[8936]: Unable to connect to VNC server.
>

These messages right here indicate that the system running guacd cannot
resolve or locate the VNC server you're trying to connect to.  In
particular, the "getaddrinfo (Name or service not known)" indicates that
you're trying to connect with a hostname, but the system cannot resolve
that name to an IP address.  So, either the hostname is invalid (mistyped,
wrong, etc.), or DNS is not working properly on the system where guacd is
running.

-Nick

Re: Error when connecting

Posted by Jeremy Tourville <je...@gmail.com>.
Ok, I fixed the connection setting as directed.  You were right on.  Now I
get a different error so at least we're making progress!  

[root@remote ~]# tail -f /var/log/messages
Nov 10 19:56:59 remote guacd[8878]: Unable to connect to VNC server
Nov 10 19:56:59 remote guacd[8878]: Unable to connect to VNC server.
Nov 10 19:56:59 remote guacd[8878]: User
"@6e57d567-0a6f-4777-8a42-d24836033382" disconnected (0 users remain)
Nov 10 19:56:59 remote guacd: guacd[8878]: INFO:#011User
"@6e57d567-0a6f-4777-8a42-d24836033382" disconnected (0 users remain)
Nov 10 19:56:59 remote guacd: guacd[8878]: INFO:#011Last user of connection
"$77370ef9-c860-434c-a98b-dc4aa894da62" disconnected
Nov 10 19:56:59 remote guacd[8878]: Last user of connection
"$77370ef9-c860-434c-a98b-dc4aa894da62" disconnected
Nov 10 19:56:59 remote server: 19:56:59.300 [http-bio-8080-exec-5] INFO 
o.a.g.tunnel.TunnelRequestService - User "markw" disconnected from
connection "1". Duration: 19 milliseconds
Nov 10 19:57:04 remote guacd[1314]: Connection
"$77370ef9-c860-434c-a98b-dc4aa894da62" removed.
Nov 10 19:57:04 remote guacd: guacd[1314]: INFO:#011Connection
"$77370ef9-c860-434c-a98b-dc4aa894da62" removed.
Nov 10 20:01:01 remote systemd: Started Session 4 of user root.
Nov 10 20:01:23 remote guacd[1314]: Creating new client for protocol "vnc"
Nov 10 20:01:23 remote guacd: guacd[1314]: INFO:#011Creating new client for
protocol "vnc"
Nov 10 20:01:23 remote guacd: guacd[1314]: INFO:#011Connection ID is
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186"
Nov 10 20:01:23 remote guacd[1314]: Connection ID is
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186"
Nov 10 20:01:23 remote guacd[8936]: Cursor rendering: local
Nov 10 20:01:23 remote guacd: guacd[8936]: INFO:#011Cursor rendering: local
Nov 10 20:01:23 remote guacd: guacd[8936]: INFO:#011User
"@394831b0-e156-4ce2-a38f-e5ad0e8deceb" joined connection
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" (1 users now present)
Nov 10 20:01:23 remote guacd[8936]: User
"@394831b0-e156-4ce2-a38f-e5ad0e8deceb" joined connection
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" (1 users now present)
Nov 10 20:01:23 remote server: 20:01:23.460 [http-bio-8080-exec-10] INFO 
o.a.g.tunnel.TunnelRequestService - User "markw" connected to connection
"1".
Nov 10 20:01:23 remote guacd[8936]: ConnectClientToTcpAddr6: getaddrinfo
(Name or service not known)
Nov 10 20:01:23 remote guacd: guacd[8936]: ERROR:#011Unable to connect to
VNC server.
Nov 10 20:01:23 remote guacd[8936]: ConnectToTcpAddr: connect
Nov 10 20:01:23 remote guacd[8936]: Unable to connect to VNC server
Nov 10 20:01:23 remote guacd[8936]: Unable to connect to VNC server.
Nov 10 20:01:23 remote guacd[8936]: User
"@394831b0-e156-4ce2-a38f-e5ad0e8deceb" disconnected (0 users remain)
Nov 10 20:01:23 remote guacd: guacd[8936]: INFO:#011User
"@394831b0-e156-4ce2-a38f-e5ad0e8deceb" disconnected (0 users remain)
Nov 10 20:01:23 remote guacd: guacd[8936]: INFO:#011Last user of connection
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" disconnected
Nov 10 20:01:23 remote guacd[8936]: Last user of connection
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" disconnected
Nov 10 20:01:23 remote server: 20:01:23.514 [http-bio-8080-exec-10] INFO 
o.a.g.tunnel.TunnelRequestService - User "markw" disconnected from
connection "1". Duration: 53 milliseconds
Nov 10 20:01:28 remote guacd[1314]: Connection
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" removed.
Nov 10 20:01:28 remote guacd: guacd[1314]: INFO:#011Connection
"$8da88eb5-e76e-4ff6-b472-a8c9b5bcc186" removed.

So why can't it connect to VNC server?  I can connect from my desktop, just
not the Guacamole server itself.  



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

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


Re: Error when connecting

Posted by Mike Jumper <mj...@apache.org>.
On Sun, Nov 10, 2019 at 5:24 PM Jeremy Tourville <je...@gmail.com>
wrote:

> I have setup a new server on CentOS 7.7 and defined a new connection to
> use VNC.  I have supplied the connection name, location: ROOT, Protocol:
> VNC.  In the Guacd section I have defined the hostname and port 5901.  When
> I try to connect I get an error.
>

The hostname and port within the "guacd" section are for the hostname and
port of guacd, not the hostname and port of the VNC server. Unless you need
to use a guacd instance specific to that connection (unlikely), you should
leave these fields blank. The hostname and port of the VNC server should
instead be specified within the "parameters" section.

- Mike