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 error: /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: self.tbrSave.insert_space(3) /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 ? main() File "/usr/local/sbin/system-config-services", line 667, in main Gui() File "/usr/local/sbin/system-config-services", line 254, in __init__ self.populateList() File "/usr/local/sbin/system-config-services", line 324, in populateList self.clstServices.append_row((servicename, ""), int(self.dict_services[servicename][0][int(self.editing_runlevel)])) IndexError: list index out of range Version-Release number of selected component (if applicable): system-config-services-0.8.16-1 How reproducible: Always Steps to Reproduce: 1. open a root terminal 2. run system-config-services 3. Actual Results: The GUI starts to display and then crashes and disappears. Expected Results: The GUI should start and allow editing of servives. Additional info:
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 Rawhide?
If you can reproduce it, please run (one line) strace -Ff -s 160 -o /tmp/system-config-services.out /usr/sbin/system-config-services 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 -> /usr/local/sitescape/avfbackground.sh 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.
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.
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.