Red Hat Bugzilla – Bug 142983
system-config-services fails to start
Last modified: 2007-11-30 17:10:56 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
running system-config-services from a terminal crashes and gives this
self.btnStart = self.tbrSave.append_item(_("Start"), _("Start"),
None, icon, self.on_btnStart_clicked, None)
self.btnStop = self.tbrSave.append_item(_("Stop"), _("Stop"), None,
icon, self.on_btnStop_clicked, None)
self.btnRestart = self.tbrSave.append_item(_("Restart"),
_("Restart"), None, icon, self.on_btnRestart_clicked, None)
self.btnSave = self.tbrSave.append_item(_("_Save"), _("Save"), None,
icon, self.on_mnuSave_clicked, None)
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
IndexError: list index out of range
Version-Release number of selected component (if applicable):
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.
What do the following commands give?
ls -l /etc/init.d/
ls -l /etc/rc?.d/
Created attachment 108791 [details]
results of ls -l /etc/init.d/
Created attachment 108792 [details]
results of ls -l /etc/rc?.d/
The results have been added as attachments.
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
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".
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.
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
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
Should be fixed in system-config-services-0.8.17-0.fc3.1, pleasy verify.
The bug has been fixed. Close this one and thanks.
You can remove the dangling symlink now. Thanks for your report.