Bug 142983

Summary: system-config-services fails to start
Product: [Fedora] Fedora Reporter: Paul Hart <hart>
Component: system-config-servicesAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-11 17:20:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
results of ls -l /etc/init.d/
results of ls -l /etc/rc?.d/
results of strace -Ff -s 160 -o /tmp/system-config-services.out /usr/sbin/system-config-services none

Description Paul Hart 2004-12-15 16:18:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
running system-config-services from a terminal crashes and gives this

/usr/local/sbin/system-config-services:197: DeprecationWarning:
  self.btnStart = self.tbrSave.append_item(_("Start"), _("Start"),
None, icon, self.on_btnStart_clicked, None)
/usr/local/sbin/system-config-services:201: DeprecationWarning:
  self.btnStop = self.tbrSave.append_item(_("Stop"), _("Stop"), None,
icon, self.on_btnStop_clicked, None)
/usr/local/sbin/system-config-services:205: DeprecationWarning:
  self.btnRestart = self.tbrSave.append_item(_("Restart"),
_("Restart"), None, icon, self.on_btnRestart_clicked, None)
/usr/local/sbin/system-config-services:207: DeprecationWarning:
/usr/local/sbin/system-config-services:211: DeprecationWarning:
  self.btnSave = self.tbrSave.append_item(_("_Save"), _("Save"), None,
icon, self.on_mnuSave_clicked, None)
/usr/local/sbin/system-config-services:216: DeprecationWarning:
  self.btnRevert = self.tbrSave.append_item(_("_Revert"), _("Revert"),
None, icon, self.on_mnuRevert_clicked, None)
/etc/init.d/f [Errno 2] No such file or directory: '/etc/init.d/f'
Traceback (most recent call last):
  File "/usr/local/sbin/system-config-services", line 683, in ?
  File "/usr/local/sbin/system-config-services", line 667, in main
  File "/usr/local/sbin/system-config-services", line 254, in __init__
  File "/usr/local/sbin/system-config-services", line 324, in populateList
    self.clstServices.append_row((servicename, ""),
IndexError: list index out of range

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. open a root terminal
2. run system-config-services

Actual Results:  The GUI starts to display and then crashes and

Expected Results:  The GUI should start and allow editing of servives.

Additional info:

Comment 1 Nils Philippsen 2004-12-17 10:30:38 UTC
What do the following commands give?

ls -l /etc/init.d/
ls -l /etc/rc?.d/

Comment 2 Paul Hart 2004-12-17 13:56:49 UTC
Created attachment 108791 [details]
results of ls -l /etc/init.d/

Comment 3 Paul Hart 2004-12-17 13:57:47 UTC
Created attachment 108792 [details]
results of ls -l /etc/rc?.d/

Comment 4 Paul Hart 2004-12-17 13:58:59 UTC
The results have been added as attachments.

Comment 5 Nils Philippsen 2004-12-30 16:08:07 UTC
Hmm, system-config-services-0.8.16-1 is in Rawhide and not expected to work on
FC3 -- can you reproduce the problem with either 0.8.15-1 on FC3 or 0.8.16-1 on

Comment 6 Nils Philippsen 2004-12-30 16:10:21 UTC
If you can reproduce it, please run (one line)

strace -Ff -s 160 -o /tmp/system-config-services.out

as root and attach the resulting file "/tmp/system-config-services.out".

Comment 7 Paul Hart 2004-12-30 17:13:43 UTC
Created attachment 109193 [details]
results of strace -Ff -s 160 -o /tmp/system-config-services.out /usr/sbin/system-config-services

I removed 0.8.16-1 and installed 0.8.15-1. The results are for FC3 with
the 0.8.15-1. I had gone to 0.8.16-1 in hopes it would fix the problem.
This is reproduceable and has been since day one.

Comment 8 Nils Philippsen 2005-01-04 13:52:47 UTC
I think I'm getting somewhere, the problem you have (and I don't ;-) seems to be
related to this file in /etc/init.d:

lrwxrwxrwx  1 root root    37 Oct 21 12:43 avfbackground ->

This is a dangling symbolic link (i.e. the target doesn't exist), chkconfig
gives an error message and system-config-services throws the traceback above.
Don't remove the file right now -- I want you to test it when I've come up with
a fix.

Comment 9 Nils Philippsen 2005-01-04 17:06:38 UTC
Fixed in CVS. The quick fix is throwing away stderr when running subcommands in
getstatusoutput(), stderr doesn't seem to be needed anywhere else.

Later/ideally the code grepping through chkconfig output should do at least
cursory checking whether the output is in the expected format and give warnings
if not.

Comment 10 Nils Philippsen 2005-01-11 13:41:16 UTC
Should be fixed in system-config-services-0.8.17-0.fc3.1, pleasy verify.

Comment 11 Paul Hart 2005-01-11 15:29:06 UTC
The bug has been fixed. Close this one and thanks.

Comment 12 Nils Philippsen 2005-01-11 17:20:23 UTC
You can remove the dangling symlink now. Thanks for your report.