Bug 7185 - traceback if webaccess is terminated during initial request handling
Summary: traceback if webaccess is terminated during initial request handling
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: 1.3.1
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Samuel Mannehed
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 12:59 CEST by Pierre Ossman
Modified: 2020-09-16 10:36 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2018-05-23 12:59:22 CEST
Seen in log:

> Caught SIGTERM, Exiting...
> ----------------------------------------
> Exception happened during processing of request from ('::ffff:1.2.3.4', 44624, 0, 0)
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/SocketServer.py", line 295, in _handle_request_noblock
>     self.process_request(request, client_address)
>   File "/usr/lib64/python2.7/SocketServer.py", line 555, in process_request
>     self.collect_children()
>   File "/usr/lib64/python2.7/SocketServer.py", line 523, in collect_children
>     pid, status = os.waitpid(0, 0)
>   File "/opt/thinlinc/sbin/tlwebaccess", line 618, in iIi1Ii1i1iI
>     sys . exit ( 0 )
> SystemExit: 0
> ----------------------------------------
Comment 1 Pierre Ossman cendio 2020-09-16 10:36:02 CEST
Saw this on an Ubuntu 18.04 system where web access was preventing the system from rebooting in a timely manner.

Got this in the service log:

> Sep 16 08:21:20 ubuntu1804 systemd[1]: Stopping ThinLinc Web Access...
> Sep 16 08:22:50 ubuntu1804 systemd[1]: tlwebaccess.service: State 'stop-sigterm' timed out. Killing.
> Sep 16 08:22:50 ubuntu1804 systemd[1]: tlwebaccess.service: Killing process 17880 (python-thinlinc) with signal SIGKILL.
> Sep 16 08:22:50 ubuntu1804 systemd[1]: tlwebaccess.service: Main process exited, code=killed, status=9/KILL
> Sep 16 08:22:50 ubuntu1804 systemd[1]: tlwebaccess.service: Failed with result 'timeout'.
> Sep 16 08:22:50 ubuntu1804 systemd[1]: Stopped ThinLinc Web Access.

And this in our log:

> 2020-09-16 08:21:20 INFO tlwebaccess[17880]: Caught SIGTERM, Exiting...
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]: ----------------------------------------
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]: Exception happened during processing of request from ('::ffff:10.47.1.240', 58758, 0, 0)
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]: Traceback (most recent call last):
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]:   File "/usr/lib/python2.7/SocketServer.py", line 293, in _handle_request_noblock
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]:     self.process_request(request, client_address)
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]:   File "/opt/thinlinc/modules/thinlinc/forkingserver.py", line 31, in process_request
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]:     IIii11I1 = os . fork ( )
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]:   File "/opt/thinlinc/sbin/tlwebaccess", line 571, in iI1
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]:     sys . exit ( 0 )
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]: SystemExit: 0
> 2020-09-16 08:21:20 ERROR tlwebaccess[17880]: ----------------------------------------
> 2020-09-16 08:21:20 ERROR tlwebaccess[4675]: [::ffff:10.47.1.240] gnutls_handshake: Error in the push function.

Note You need to log in before you can comment on or make changes to this bug.