Bug 4297 - tl-setup crashes if "ps" is not available
Summary: tl-setup crashes if "ps" is not available
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: 3.2.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.11.0
Assignee: Samuel Mannehed
URL:
Keywords: prosaic
Depends on:
Blocks:
 
Reported: 2012-05-16 11:16 CEST by Peter Åstrand
Modified: 2019-09-18 15:20 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2012-05-16 11:16:28 CEST
012-05-16 11:15:22,392: Something is responding on port 443. Assuming it is a web server
2012-05-16 11:15:22,392: Looking for Apache's configuration directory...
2012-05-16 11:15:22,392: Apache's configuration directory is '/etc/httpd/conf.d'
2012-05-16 11:15:22,416: Traceback (most recent call last):
2012-05-16 11:15:22,417:   File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 436, in <module>
2012-05-16 11:15:22,417:     IIIIiiII111 ( )
2012-05-16 11:15:22,417:   File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 393, in IIIIiiII111
2012-05-16 11:15:22,417:     ok = wzd . run ( )
2012-05-16 11:15:22,417:   File "/opt/thinlinc/modules/thinlinc/wizard.py", line 91, in run
2012-05-16 11:15:22,417:     return self . _run_text ( )
2012-05-16 11:15:22,417:   File "/opt/thinlinc/modules/thinlinc/wizard.py", line 109, in _run_text
2012-05-16 11:15:22,417:     handler ( )
2012-05-16 11:15:22,418:   File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 192, in oo0OooOOo0
2012-05-16 11:15:22,418:     iii11I111 ( )
2012-05-16 11:15:22,418:   File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 171, in iii11I111
2012-05-16 11:15:22,418:     check ( )
2012-05-16 11:15:22,418:   File "/opt/thinlinc/modules/thinlinc/tlsetup/httpd.py", line 353, in I1IiiIIIi
2012-05-16 11:15:22,418:     OOOOoOoo0O0O0 ( )
2012-05-16 11:15:22,418:   File "/opt/thinlinc/modules/thinlinc/tlsetup/httpd.py", line 305, in OOOOoOoo0O0O0
2012-05-16 11:15:22,418:     close_fds = 1 )
2012-05-16 11:15:22,418:   File "/opt/thinlinc/modules/subprocess.py", line 593, in __init__
2012-05-16 11:15:22,418:     errread, errwrite)
2012-05-16 11:15:22,418:   File "/opt/thinlinc/modules/subprocess.py", line 1079, in _execute_child
2012-05-16 11:15:22,419:     raise child_exception
2012-05-16 11:15:22,419: OSError: [Errno 2] No such file or directory

After doing 

rpm -e procps --nodeps
Comment 1 Karl Mikaelsson cendio 2017-03-27 09:36:45 CEST
I don't think this is a problem any longer. r29352 removes the offending code.
Comment 2 Samuel Mannehed cendio 2019-09-18 15:19:46 CEST
Verified on RHEL7 that this isn't an issue anymore. The code in tl-setup doesn't use 'ps' anymore. Instead of crashing, tl-setup will now-a-days warn properly that packages are missing.

Looking at the code this turns out to have been fixed since back in 2014 as part of ThinLinc 4.3.0.

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