You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by doyouhas <zj...@gmail.com> on 2018/11/06 20:47:09 UTC

"Error connecting to RDP server" Linux machine

Hey guys,

I'm really confused as to why I am receiving the aforementioned error when
trying to initiate an RDP connection. I have tested that I am able to
connect to this machine when using the Microsoft Remote Desktop client on
Mac. However when trying to access that same instance using Guacamole, I get
that error thrown. Really confused here....any pointers in the right
direction would be appreciated. 



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

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
Found the issue. Wasn't setting the requisite nginx proxy rules *face palm*.
Cannot believe I overlooked something so basic. Had you not brought it up, I
never would have thought to check that. You saved me from bashing my brains
dude. Seriously. Thank you, thank you, thank you. HTTPS is now working after
inserting those rules. Cheers.



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

Re: "Error connecting to RDP server" Linux machine

Posted by Mike Jumper <mj...@apache.org>.
The only possibilities are:

* You are actually connecting to the same machine and XRDP is kicking off
one user in favor of the other.
* Something on the network is causing Guacamole to fall back to HTTP, and
you are hitting browser limits on max concurrent HTTP connections per
domain.

Guacamole itself does not impose these sorts of connection restrictions and
will not disconnect one user when another tries to connect. The only
possibilities are an external system which does impose such limits (XRDP)
or network issues which are giving the same behavior as those limits.

- Mike


On Tue, Nov 6, 2018, 21:50 doyouhas <zjpiazza@gmail.com wrote:

> Spoke too soon. I'm back to the same problem of when I'm logged in with one
> user, as soon as the next user logs in (to a totally different machine),
> guacamole kicks the first user. What gives, this behavior is truly bizarre.
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
Spoke too soon. I'm back to the same problem of when I'm logged in with one
user, as soon as the next user logs in (to a totally different machine),
guacamole kicks the first user. What gives, this behavior is truly bizarre.



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

Re: "Error connecting to RDP server" Linux machine

Posted by Mike Jumper <mj...@apache.org>.
Take a peek at the docs coverying proxying guac through Nginx (and if you
already have, double-check):

http://guacamole.apache.org/doc/gug/proxying-guacamole.html#nginx

It's fairly easy for misconfiguration to result in WebSocket effectively
being blocked. Guac will then fallback to HTTP, which is fine but (1) is
under tighter browser restrictions in terms of max connections per domain
and (2) will have slightly higher input latency. You'll see a warning in
the Tomcat logs if HTTP is being used as a fallback.

- Mike


On Tue, Nov 6, 2018, 21:44 doyouhas <zjpiazza@gmail.com wrote:

> Not seeing anything specifically related to HTTPS/fallback. Since you
> mentioned that, however, I went ahead and disabled HTTPS on my nginx proxy
> and that seems like it may be the culprit. I have a connection going right
> now and it has been solid for the past five minutes. What settings do I
> need
> to look at regarding HTTPS?
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
Not seeing anything specifically related to HTTPS/fallback. Since you
mentioned that, however, I went ahead and disabled HTTPS on my nginx proxy
and that seems like it may be the culprit. I have a connection going right
now and it has been solid for the past five minutes. What settings do I need
to look at regarding HTTPS?



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

Re: "Error connecting to RDP server" Linux machine

Posted by Mike Jumper <mj...@apache.org>.
Do you see any warnings from Guacamole in your Tomcat logs about having to
fallback to HTTP?

- Mike


On Tue, Nov 6, 2018, 21:27 doyouhas <zjpiazza@gmail.com wrote:

> Sorry if I didn't explain the situation more clearly. The connections are
> not
> pointed at the same machine, they are pointed at different machines (ec2
> instances). I have literally zero problem maintaining a consistent
> connection connecting with a standard RDP client to the exact same
> instance.
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
Sorry if I didn't explain the situation more clearly. The connections are not
pointed at the same machine, they are pointed at different machines (ec2
instances). I have literally zero problem maintaining a consistent
connection connecting with a standard RDP client to the exact same instance.



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

Re: "Error connecting to RDP server" Linux machine

Posted by Mike Jumper <mj...@apache.org>.
Are both connections using the same RDP username? It sounds like session
management within XRDP is killing one session when a new session is
established, which is the expected behavior for multiple connections
attempting to access the same desktop session.

This isn't something within Guacamole's control, but rather is dictated by
the remote desktop server's session manager.

- Mike

On Tue, Nov 6, 2018, 21:16 doyouhas <zjpiazza@gmail.com wrote:

> Bizarre. I was finally....somehow....able to get a stable connection via
> guacacmole, for about twenty minutes. As soon as I added another
> connection,
> my original connection timed out and it went in a loop where one session
> would be disconnected and the other would connect. What gives?
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
Bizarre. I was finally....somehow....able to get a stable connection via
guacacmole, for about twenty minutes. As soon as I added another connection,
my original connection timed out and it went in a loop where one session
would be disconnected and the other would connect. What gives?



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

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
Here are the relevant log file. I initiated one connection from Mac RDP
client and one from Guacamole.
 
xrdp.log: http://dpaste.com/2B72S73
xrdp-sesman.log: http://dpaste.com/1WN0ZP7



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

Re: "Error connecting to RDP server" Linux machine

Posted by Mike Jumper <mj...@apache.org>.
On Tue, Nov 6, 2018, 16:42 doyouhas <zjpiazza@gmail.com wrote:

> I was able to get the instances to connect via guacamole by changing the
> xrdp.ini file authentication to rdp instead of negotiate. Only problem now
> is that the connection is stable for a few minutes before crapping the bed.
> It will stay stuck in that loop of working, then disconnecting, until I
> logout. Im using the latest guac verion, 0.9.14.
>

What happens on the XRDP side when it stops accepting connections? Anything
in XRDP's logs that indicates what might be dying?

Are there other connections happening externally which might result in XRDP
kicking off the guacamole connection?

- Mike

Re: "Error connecting to RDP server" Linux machine

Posted by doyouhas <zj...@gmail.com>.
I was able to get the instances to connect via guacamole by changing the
xrdp.ini file authentication to rdp instead of negotiate. Only problem now
is that the connection is stable for a few minutes before crapping the bed.
It will stay stuck in that loop of working, then disconnecting, until I
logout. Im using the latest guac verion, 0.9.14.



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

Re: "Error connecting to RDP server" Linux machine

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Nov 6, 2018 at 15:47 doyouhas <zj...@gmail.com> wrote:

> Hey guys,
>
> I'm really confused as to why I am receiving the aforementioned error when
> trying to initiate an RDP connection. I have tested that I am able to
> connect to this machine when using the Microsoft Remote Desktop client on
> Mac. However when trying to access that same instance using Guacamole, I
> get
> that error thrown. Really confused here....any pointers in the right
> direction would be appreciated.


What version of Guacamole do your have installed?  How did you install it?
If you look at the output from guacd, either by running it in the
foreground or looking at syslog, do you see any using error messages?

-Nick