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

Chris B. commented on GUACAMOLE-2118:
-------------------------------------

Looking at processes with the hanging issues on our server: 

Bad Session:
{code:java}
2025-09-15T14:01:29.989591+02:00 rgw guacd[885]: Creating new client for 
protocol "rdp"
2025-09-15T14:01:29.989883+02:00 rgw guacd[885]: Connection ID is 
"$cbc28177-4399-4620-9499-0391c71cd822"
2025-09-15T14:01:30.032009+02:00 rgw guacd[1798077]: Security mode: Negotiate 
(ANY)
2025-09-15T14:01:30.032118+02:00 rgw guacd[1798077]: Resize method: none
2025-09-15T14:01:30.032154+02:00 rgw guacd[1798077]: No clipboard line-ending 
normalization specified. Defaulting to preserving the format of all line 
endings.
2025-09-15T14:01:30.032186+02:00 rgw guacd[1798077]: User 
"@973a00e3-920e-4af3-92ca-21e31c3e13d1" joined connection 
"$cbc28177-4399-4620-9499-0391c71cd822" (1 users now present)
2025-09-15T14:01:30.032420+02:00 rgw guacd[1798077]: Local system reports 8 
processor(s) are available.
2025-09-15T14:01:30.032500+02:00 rgw guacd[1798077]: Graphical updates will be 
encoded using 8 worker thread(s).
2025-09-15T14:01:30.036486+02:00 rgw guacd[1798077]: Loading keymap "base"
2025-09-15T14:01:30.036585+02:00 rgw guacd[1798077]: Loading keymap "base_altgr"
2025-09-15T14:01:30.036616+02:00 rgw guacd[1798077]: Loading keymap 
"de-de-qwertz"
2025-09-15T14:01:30.036645+02:00 rgw guacd[1798077]: Ignoring requested color 
depth of 24 bpp, as the RDP Graphics Pipeline requires 32 bpp. 
2025-09-15T14:01:33.885390+02:00 rgw guacd[1798077]: RDP server closed/refused 
connection: Manually logged off.

root@rgw:~# cat /var/log/syslog | grep "cbc28177-4399-4620-9499-0391c71cd822"
2025-09-15T14:01:29.989883+02:00 rgw guacd[885]: Connection ID is 
"$cbc28177-4399-4620-9499-0391c71cd822"
2025-09-15T14:01:30.032186+02:00 rgw guacd[1798077]: User 
"@973a00e3-920e-4af3-92ca-21e31c3e13d1" joined connection 
"$cbc28177-4399-4620-9499-0391c71cd822" (1 users now present){code}
885 should be the root process of guacd. What I would expect here is another 
line with my session id (in that case "$cbc28177-4399-4620-9499-0391c71cd822") 
like "<Timestamp> rgw guacd[885]: Connection 
"$cbc28177-4399-4620-9499-0391c71cd822" removed. I dont see that anywhere.

Looking at this process it is running for a long time, has no user left in 
there and also utilizing a lot of resources:

top - 16:05:32 up 13 days,  1:06,  2 users,  load average: 2,25, 2,30, 2,42
Tasks: 219 total,   1 running, 218 sleeping,   0 stopped,   0 zombie
%CPU(s):  0,0 us,  0,0 sy,  0,0 ni,100,0 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st 
MiB Spch:  15991,8 total,   7787,4 free,   5972,3 used,   2529,0 buff/cache     
MiB Swap:   2045,0 total,   2045,0 free,      0,0 used.  10019,4 avail Spch

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND  
                                                                                
                                                                                
                                          
1798077 root      20   0 4439464  78040  24760 S 100,0   0,5 123:57.49 guacd

 

Good session with the Connection removed i would expect:
{code:java}
2025-09-15T16:09:02.660324+02:00 rgw guacd[885]: Creating new client for 
protocol "rdp"
2025-09-15T16:09:02.663016+02:00 rgw guacd[885]: Connection ID is 
"$40a993d3-83c1-4de2-bf55-422ce67fc6f4"
2025-09-15T16:09:02.693917+02:00 rgw guacd[1803128]: Security mode: NLA
2025-09-15T16:09:02.694016+02:00 rgw guacd[1803128]: Resize method: 
display-update
2025-09-15T16:09:02.694043+02:00 rgw guacd[1803128]: No clipboard line-ending 
normalization specified. Defaulting to preserving the format of all line 
endings.
2025-09-15T16:09:02.694071+02:00 rgw guacd[1803128]: User 
"@7aff5bc4-352a-446b-88eb-bdb42c833117" joined connection 
"$40a993d3-83c1-4de2-bf55-422ce67fc6f4" (1 users now present)
2025-09-15T16:09:02.694137+02:00 rgw guacd[1803128]: Local system reports 8 
processor(s) are available.
2025-09-15T16:09:02.694216+02:00 rgw guacd[1803128]: Graphical updates will be 
encoded using 8 worker thread(s).
2025-09-15T16:09:02.697314+02:00 rgw guacd[1803128]: Loading keymap "base"
2025-09-15T16:09:02.697390+02:00 rgw guacd[1803128]: Loading keymap "base_altgr"
2025-09-15T16:09:02.697416+02:00 rgw guacd[1803128]: Loading keymap 
"de-de-qwertz"
2025-09-15T16:09:09.418635+02:00 rgw guacd[1803128]: User 
"@7aff5bc4-352a-446b-88eb-bdb42c833117" disconnected (0 users remain)
2025-09-15T16:09:09.418901+02:00 rgw guacd[1803128]: Last user of connection 
"$40a993d3-83c1-4de2-bf55-422ce67fc6f4" disconnected
2025-09-15T16:09:09.593911+02:00 rgw guacd[1803128]: Internal RDP client 
disconnected
2025-09-15T16:09:09.602755+02:00 rgw guacd[885]: Connection 
"$40a993d3-83c1-4de2-bf55-422ce67fc6f4" removed. {code}

> unable to upgrade 1.5.5 to 1.6.0 due to sporadic hanging issue
> --------------------------------------------------------------
>
>                 Key: GUACAMOLE-2118
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-2118
>             Project: Guacamole
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Jason Keltz
>            Priority: Major
>         Attachments: guacamole-logs.txt, guacd-178388-gdb.txt, 
> guacd-178388-lsof.txt, guacd-240326-gdb.txt, guacd-240326-lsof.txt, 
> image-2025-09-08-15-11-59-435.png
>
>
> I've been running Guacamole since around 2020, upgrading reasonably quickly 
> each and every time there's been an update.  I update my Tomcat to the latest 
> 9.X release from time to time (currently 9.0.102) , and my JDK to the latest 
> 8.X release from time to time (currently  jdk8u452-b09).  
> Recently, after attempting an upgrade from Guacamole 1.5.5 to 1.6.0, I ran 
> into a problem.  Initially, everything seemed to work just fine.  I can 
> connect to any of the systems I have available.  However, at some point 
> later, I notice in the tomcat logs a lot of "connects" and "disconnects" to 
> hosts.  Users start complaining that "Guacamole isn't working".  What I 
> noticed at this point was that when they would try to return to a connection, 
>  it would connect, and their existing connecting would start to redraw, but 
> it would hang in the middle.  If I restart guacd at this point, it starts to 
> work again, but the problem comes back. Some users would see it.  Other users 
> were fine.  
> I feel like there's a bug hiding, and it may require a lot of user activity 
> to get to it.  I ended up creating a devel system for testing, and I'm 
> running guac 1.6.0 there, and I've enabled full debugging, but I can't seem 
> to make it happen here yet.  Is there any easy way I can force a bunch of 
> connections?  The devel system is running labtest Rocky 8.10 (RHEL8.10) with 
> latest kernel and patches and this matches the production system.  They are 
> both installed with the same kickstart configuration.    
> I'm opening this "bug" even though I don't have concrete information yet.  If 
> I really have to do it, I may have to re-install on the production system to 
> get the debugging information that I need, but I'd rather not do it if not 
> necessary since it causes user inconvenience, and Guacamole is an important 
> part of our educational environment.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to