[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17124977#comment-17124977
 ] 

Pierre-Arnaud Laporte edited comment on GUACAMOLE-1089 at 6/5/20, 10:14 AM:
----------------------------------------------------------------------------

Oh, I did not think about rebuilding guacamole-server.

I tried, but it doesn't seem to change anything.

I'm not sure if I needed to clean uninstall it before, is there a way to do 
this or should I try on a clean install ?

Just for your information, here all the logs I could think of (same before and 
after rebuild):

*/var/log/syslog*
{code:java}
Jun  3 15:32:31 test-net guacd[16976]: Creating new client for protocol "rdp"
Jun  3 15:32:31 test-net guacd[16976]: guacd[16976]: INFO:#011Creating new 
client for protocol "rdp"
Jun  3 15:32:31 test-net guacd[16976]: guacd[16976]: INFO:#011Connection ID is 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5"
Jun  3 15:32:31 test-net guacd[16976]: Connection ID is 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5"
Jun  3 15:32:32 test-net guacd[5609]: No security mode specified. Defaulting to 
security mode negotiation with server.
Jun  3 15:32:32 test-net guacd[5609]: Resize method: none
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011No security mode 
specified. Defaulting to security mode negotiation with server.
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011Resize method: none
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" joined connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" (1 users now present)
Jun  3 15:32:32 test-net guacd[5609]: User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" joined connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" (1 users now present)
Jun  3 15:32:32 test-net guacd[5609]: Loading keymap "base"
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011Loading keymap 
"base"
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011Loading keymap 
"fr-fr-azerty"
Jun  3 15:32:32 test-net guacd[5609]: Loading keymap "fr-fr-azerty"
Jun  3 15:32:33 test-net guacd[5609]: Accepted format: 16-bit PCM with 2 
channels at 22050 Hz
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Accepted format: 
16-bit PCM with 2 channels at 22050 Hz
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Connected to RDPDR 
1.12 as client 0x0008
Jun  3 15:32:33 test-net guacd[5609]: Connected to RDPDR 1.12 as client 0x0008
Jun  3 15:32:33 test-net guacd[5609]: Connection closed.
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: ERROR:#011Connection closed.
Jun  3 15:32:33 test-net guacd[5609]: Internal RDP client disconnected
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Internal RDP 
client disconnected
Jun  3 15:32:33 test-net guacd[5609]: User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" disconnected (0 users remain)
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" disconnected (0 users remain)
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Last user of 
connection "$914479f2-91b2-44ce-b772-065dd9bbc3a5" disconnected
Jun  3 15:32:33 test-net guacd[5609]: Last user of connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" disconnected
Jun  3 15:32:33 test-net guacd[16976]: Connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" removed.
Jun  3 15:32:33 test-net guacd[16976]: guacd[16976]: INFO:#011Connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" removed.

{code}
*catalina.out*
{code:java}
15:32:31.720 [https-jsse-nio-127.0.0.1-8445-exec-1] INFO  
o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/etc/guacamole".
15:32:32.015 [https-jsse-nio-127.0.0.1-8445-exec-2] INFO  
o.a.g.tunnel.TunnelRequestService - User "test.test" connected to connection 
"2".
Exception in thread "Thread-4" java.lang.IllegalStateException: Message will 
not be sent because the WebSocket session has been closed
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:430)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:309)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:250)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:191)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
        at 
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
        at 
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
        at 
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
15:32:33.310 [https-jsse-nio-127.0.0.1-8445-exec-3] INFO  
o.a.g.tunnel.TunnelRequestService - User "test.test" disconnected from 
connection "2". Duration: 1289 milliseconds

{code}
*Guacamole website*
{code:java}
The remote desktop server is currently unavailable. If the problem persists, 
please notify your system administrator, or check your system logs.
{code}
 

 *[Edit]* I tried to downgrade again after rebuilding, and now I'm getting a 
double free corruption :
{code:java}
Jun  3 16:33:08 test-net guacd[1221]: Creating new client for protocol "rdp"
Jun  3 16:33:08 test-net guacd[1221]: Connection ID is 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6"
Jun  3 16:33:08 test-net guacd[1221]: guacd[1221]: INFO:#011Creating new client 
for protocol "rdp"
Jun  3 16:33:08 test-net guacd[1221]: guacd[1221]: INFO:#011Connection ID is 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6"
Jun  3 16:33:08 test-net guacd[3708]: No security mode specified. Defaulting to 
security mode negotiation with server.
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011No security mode 
specified. Defaulting to security mode negotiation with server.
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Resize method: none
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011User 
"@6f4f3ce9-38c7-4177-9e98-b40ea4c5934b" joined connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" (1 users now present)
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Loading keymap 
"base"
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Loading keymap 
"fr-fr-azerty"
Jun  3 16:33:08 test-net guacd[3708]: Resize method: none
Jun  3 16:33:08 test-net guacd[3708]: User 
"@6f4f3ce9-38c7-4177-9e98-b40ea4c5934b" joined connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" (1 users now present)
Jun  3 16:33:08 test-net guacd[3708]: Loading keymap "base"
Jun  3 16:33:08 test-net guacd[3708]: Loading keymap "fr-fr-azerty"
Jun  3 16:33:08 test-net guacd[3708]: Accepted format: 16-bit PCM with 2 
channels at 22050 Hz
Jun  3 16:33:08 test-net guacd[3708]: Connected to RDPDR 1.12 as client 0x0002
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Accepted format: 
16-bit PCM with 2 channels at 22050 Hz
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Connected to RDPDR 
1.12 as client 0x0002
Jun  3 16:33:08 test-net guacd[1221]: double free or corruption (out)
Jun  3 16:33:08 test-net guacd[1221]: Connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" removed.
Jun  3 16:33:08 test-net guacd[1221]: guacd[1221]: INFO:#011Connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" removed.

{code}
in guacd logs, and I cannot RDP again...

[*Edit 2*] I needed to rebuild again guacamole-server after the new downgrade 
to suppress this double free error.


was (Author: piail):
Oh, I did not think about rebuilding guacamole-server.

I tried, but it doesn't seem to change anything.

I'm not sure if I needed to clean uninstall it before, is there a way to do 
this or should I try on a clean install ?

Just for your information, here all the logs I could think of (same before and 
after rebuild):

*/var/log/syslog*
{code:java}
Jun  3 15:32:31 test-net guacd[16976]: Creating new client for protocol "rdp"
Jun  3 15:32:31 test-net guacd[16976]: guacd[16976]: INFO:#011Creating new 
client for protocol "rdp"
Jun  3 15:32:31 test-net guacd[16976]: guacd[16976]: INFO:#011Connection ID is 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5"
Jun  3 15:32:31 test-net guacd[16976]: Connection ID is 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5"
Jun  3 15:32:32 test-net guacd[5609]: No security mode specified. Defaulting to 
security mode negotiation with server.
Jun  3 15:32:32 test-net guacd[5609]: Resize method: none
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011No security mode 
specified. Defaulting to security mode negotiation with server.
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011Resize method: none
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" joined connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" (1 users now present)
Jun  3 15:32:32 test-net guacd[5609]: User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" joined connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" (1 users now present)
Jun  3 15:32:32 test-net guacd[5609]: Loading keymap "base"
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011Loading keymap 
"base"
Jun  3 15:32:32 test-net guacd[16976]: guacd[5609]: INFO:#011Loading keymap 
"fr-fr-azerty"
Jun  3 15:32:32 test-net guacd[5609]: Loading keymap "fr-fr-azerty"
Jun  3 15:32:33 test-net guacd[5609]: Accepted format: 16-bit PCM with 2 
channels at 22050 Hz
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Accepted format: 
16-bit PCM with 2 channels at 22050 Hz
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Connected to RDPDR 
1.12 as client 0x0008
Jun  3 15:32:33 test-net guacd[5609]: Connected to RDPDR 1.12 as client 0x0008
Jun  3 15:32:33 test-net guacd[5609]: Connection closed.
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: ERROR:#011Connection closed.
Jun  3 15:32:33 test-net guacd[5609]: Internal RDP client disconnected
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Internal RDP 
client disconnected
Jun  3 15:32:33 test-net guacd[5609]: User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" disconnected (0 users remain)
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011User 
"@d5fbf14e-8842-4a43-9a12-0d07dce820f3" disconnected (0 users remain)
Jun  3 15:32:33 test-net guacd[16976]: guacd[5609]: INFO:#011Last user of 
connection "$914479f2-91b2-44ce-b772-065dd9bbc3a5" disconnected
Jun  3 15:32:33 test-net guacd[5609]: Last user of connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" disconnected
Jun  3 15:32:33 test-net guacd[16976]: Connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" removed.
Jun  3 15:32:33 test-net guacd[16976]: guacd[16976]: INFO:#011Connection 
"$914479f2-91b2-44ce-b772-065dd9bbc3a5" removed.

{code}
*catalina.out*
{code:java}
15:32:31.720 [https-jsse-nio-127.0.0.1-8445-exec-1] INFO  
o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/etc/guacamole".
15:32:32.015 [https-jsse-nio-127.0.0.1-8445-exec-2] INFO  
o.a.g.tunnel.TunnelRequestService - User "test.test" connected to connection 
"2".
Exception in thread "Thread-4" java.lang.IllegalStateException: Message will 
not be sent because the WebSocket session has been closed
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:430)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:309)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:250)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:191)
        at 
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
        at 
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
        at 
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
        at 
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
15:32:33.310 [https-jsse-nio-127.0.0.1-8445-exec-3] INFO  
o.a.g.tunnel.TunnelRequestService - User "test.test" disconnected from 
connection "2". Duration: 1289 milliseconds

{code}
*Guacamole website*
{code:java}
The remote desktop server is currently unavailable. If the problem persists, 
please notify your system administrator, or check your system logs.
{code}
 

 *[Edit]* I tried to downgrade again after rebuilding, and now I'm getting a 
double free corruption :
{code:java}
Jun  3 16:33:08 test-net guacd[1221]: Creating new client for protocol "rdp"
Jun  3 16:33:08 test-net guacd[1221]: Connection ID is 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6"
Jun  3 16:33:08 test-net guacd[1221]: guacd[1221]: INFO:#011Creating new client 
for protocol "rdp"
Jun  3 16:33:08 test-net guacd[1221]: guacd[1221]: INFO:#011Connection ID is 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6"
Jun  3 16:33:08 test-net guacd[3708]: No security mode specified. Defaulting to 
security mode negotiation with server.
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011No security mode 
specified. Defaulting to security mode negotiation with server.
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Resize method: none
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011User 
"@6f4f3ce9-38c7-4177-9e98-b40ea4c5934b" joined connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" (1 users now present)
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Loading keymap 
"base"
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Loading keymap 
"fr-fr-azerty"
Jun  3 16:33:08 test-net guacd[3708]: Resize method: none
Jun  3 16:33:08 test-net guacd[3708]: User 
"@6f4f3ce9-38c7-4177-9e98-b40ea4c5934b" joined connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" (1 users now present)
Jun  3 16:33:08 test-net guacd[3708]: Loading keymap "base"
Jun  3 16:33:08 test-net guacd[3708]: Loading keymap "fr-fr-azerty"
Jun  3 16:33:08 test-net guacd[3708]: Accepted format: 16-bit PCM with 2 
channels at 22050 Hz
Jun  3 16:33:08 test-net guacd[3708]: Connected to RDPDR 1.12 as client 0x0002
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Accepted format: 
16-bit PCM with 2 channels at 22050 Hz
Jun  3 16:33:08 test-net guacd[1221]: guacd[3708]: INFO:#011Connected to RDPDR 
1.12 as client 0x0002
Jun  3 16:33:08 test-net guacd[1221]: double free or corruption (out)
Jun  3 16:33:08 test-net guacd[1221]: Connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" removed.
Jun  3 16:33:08 test-net guacd[1221]: guacd[1221]: INFO:#011Connection 
"$f56c6a9e-eb8b-45de-9343-085b29f42be6" removed.

{code}
in guacd logs, and I cannot RDP again...

[*Edit 2*] I needed to rebuild again guacamole-server after the new downgrade 
to suppress this double free error.

> Ubuntu 18.04 & last freerdp2-dev package update
> -----------------------------------------------
>
>                 Key: GUACAMOLE-1089
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1089
>             Project: Guacamole
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Pierre-Arnaud Laporte
>            Priority: Minor
>
> Hello,
>  
> A recent update to the freerdp2-dev (2.1.1) package on Ubuntu has broken the 
> Guacamole compatibilty.
> RDP connection is instantly closed without any error message.
> I had to downgrade to 2.0.0 to make it work again.
>  
> Not sure if this should be there, but, as you advice to install this package 
> in your doc, I think, you should be aware of it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to