[ https://issues.apache.org/jira/browse/GUACAMOLE-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897884#comment-17897884 ]
Maik Tralles commented on GUACAMOLE-1998: ----------------------------------------- [~mjumper] I see the connection being closed by the client. The server is still accessible outside of Guacamole. This behavior occurs with multiple connections to a server *and* with multiple different servers. Every time after ca. 60 cumulative connections. sshd-Logs from server: {code:java} Nov 13 11:43:27 server sshd[171967]: Connection closed by 192.168.... port 60770 [preauth] Nov 13 11:43:42 server sshd[171987]: Connection closed by 192.168.... port 60764 [preauth] Nov 13 11:43:43 server sshd[171989]: Connection closed by 192.168.... port 60790 [preauth] {code} corresponding guacd-Logs: {code:java} guacd_compose | guacd[1]: INFO: Creating new client for protocol "ssh" guacd_compose | guacd[1]: INFO: Connection ID is "$bca671b0-b1d4-4eee-bad0-7379ac931691" guacd_compose | guacd[1581]: INFO: User "@844ee84f-92f0-42bb-b90b-3f4fbfe88c9f" joined connection "$bca671b0-b1d4-4eee-bad0-7379ac931691" (1 users now present) guacd_compose | guacd[1581]: ERROR: SSH handshake failed. guacd_compose | guacd[1581]: INFO: User "@844ee84f-92f0-42bb-b90b-3f4fbfe88c9f" disconnected (0 users remain) guacd_compose | guacd[1581]: INFO: Last user of connection "$bca671b0-b1d4-4eee-bad0-7379ac931691" disconnected guacd_compose | guacd[1]: INFO: Connection "$bca671b0-b1d4-4eee-bad0-7379ac931691" removed. guacd_compose | guacd[1]: INFO: Creating new client for protocol "ssh" guacd_compose | guacd[1]: INFO: Connection ID is "$5422b924-6066-4f56-b2d6-eaeafd2b53ef" guacd_compose | guacd[1598]: INFO: User "@2dd6c613-7ad8-4ac9-95e0-94bcd39bc4ff" joined connection "$5422b924-6066-4f56-b2d6-eaeafd2b53ef" (1 users now present) guacd_compose | guacd[1598]: ERROR: SSH handshake failed. guacd_compose | guacd[1598]: INFO: User "@2dd6c613-7ad8-4ac9-95e0-94bcd39bc4ff" disconnected (0 users remain) guacd_compose | guacd[1598]: INFO: Last user of connection "$5422b924-6066-4f56-b2d6-eaeafd2b53ef" disconnected guacd_compose | guacd[1]: INFO: Connection "$5422b924-6066-4f56-b2d6-eaeafd2b53ef" removed. guacd_compose | guacd[1]: INFO: Creating new client for protocol "ssh" guacd_compose | guacd[1]: INFO: Connection ID is "$f58acc19-0c3e-43f8-9ee2-06264aac687a" guacd_compose | guacd[1615]: INFO: User "@a3951456-1f89-4677-9fd2-b66147149f2b" joined connection "$f58acc19-0c3e-43f8-9ee2-06264aac687a" (1 users now present) guacd_compose | guacd[1615]: ERROR: SSH handshake failed. guacd_compose | guacd[1615]: INFO: User "@a3951456-1f89-4677-9fd2-b66147149f2b" disconnected (0 users remain) guacd_compose | guacd[1615]: INFO: Last user of connection "$f58acc19-0c3e-43f8-9ee2-06264aac687a" disconnected guacd_compose | guacd[1]: INFO: Connection "$f58acc19-0c3e-43f8-9ee2-06264aac687a" removed. {code} > Cumulative number of connections are limited to about 60. > --------------------------------------------------------- > > Key: GUACAMOLE-1998 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-1998 > Project: Guacamole > Issue Type: Bug > Components: guacd > Affects Versions: 1.5.5 > Environment: Version: 1.5.5 & latest from the official Dockerhub image > Reporter: Maik Tralles > Priority: Major > > When the cumulative number of connections reach about 60 user connections, > new ones can't be created. > Version: 1.5.5 > {code:java} > guacd_compose | guacd[1645]: INFO: User > "@9d098496-4861-4953-8d7f-0a6818f9943c" joined connection > "$90ce76b4-1dcf-4f1e-9653-0d77d1b25318" (1 users now present) > guacd_compose | guacd[1645]: ERROR: SSH handshake failed. > guacd_compose | guacd[1645]: INFO: User > "@9d098496-4861-4953-8d7f-0a6818f9943c" disconnected (0 users remain) > guacd_compose | guacd[1645]: INFO: Last user of connection > "$90ce76b4-1dcf-4f1e-9653-0d77d1b25318" disconnected{code} > After about 60 connections, new ones can't be created. > > Latest (2024-11-04 12:00:00 UTC): > {code:java} > guacd_compose | guacd[1312]: INFO: User > "@4267e072-2b24-4cf8-800a-63fd91ac36d8" joined connection > "$223f505b-f6ca-4dc6-b346-53d6a4233833" (1 users now present) > guacd_compose | GLib (gthread-posix.c): Unexpected error from C library > during 'pthread_key_create': Resource temporarily unavailable. Aborting. > guacd_compose | guacd[1]: INFO: Connection > "$223f505b-f6ca-4dc6-b346-53d6a4233833" removed > ... > guacd_compose | guacd[1584]: INFO: User > "@e963456d-3bac-4f97-ab1b-89e4845a5470" joined connection > "$d4e67432-840c-42ba-82f1-68d5c0544d84" (1 users now present) > guacd_compose | guacd[1584]: ERROR: SSH handshake failed. > guacd_compose | guacd[1584]: INFO: User > "@e963456d-3bac-4f97-ab1b-89e4845a5470" disconnected (0 users remain) > guacd_compose | guacd[1584]: INFO: Last user of connection > "$d4e67432-840c-42ba-82f1-68d5c0544d84" disconnected {code} > After about 60 connections, the oldest connection will be closed to open the > new connection. > In the logs, we can see a similar issue mentioned in [GUACAMOLE-1920] When > the cumulative number of user connections reaches a certain amount, guacd > will report an error. "RDP server closed/refused connection: Security > negotiation failed (wrong security type?)” - ASF JIRA > > Version 1.5.3 seems to work fine with >100 cumulative connections tested on > the same environment. > > Affecting SSH + RDP. -- This message was sent by Atlassian Jira (v8.20.10#820010)