#2883 Install exists with error "CalledProcessError: Command '/bin/systemctl restart httpd.service' returned non-zero exit status 1"
Closed: fixed 5 years ago Opened 11 years ago by shanks.

Version: freeipa-server-2.99.0-0.20120628T1453Zgita6ff85f.fc17.x86_64

2012-06-29T03:29:15Z DEBUG args=/bin/systemctl restart httpd.service
2012-06-29T03:29:15Z DEBUG stdout=
2012-06-29T03:29:15Z DEBUG stderr=Job failed. See system journal and 'systemctl status' for details.

2012-06-29T03:29:15Z INFO   File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 696, in run_script
    return_value = main_function()

  File "/sbin/ipa-server-install", line 1017, in main
    http.create_instance(realm_name, host_name, domain_name, dm_password, autoconfig=True, self_signed_ca=options.selfsign, subject_base=options.subject, auto_redirect=options.ui_redirect)

  File "/usr/lib/python2.7/site-packages/ipaserver/install/httpinstance.py", line 93, in create_instance
    self.start_creation("Configuring the web interface", 60)

  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 259, in start_creation
    method()

  File "/usr/lib/python2.7/site-packages/ipaserver/install/httpinstance.py", line 97, in __start
    self.restart()

  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 205, in restart
    self.service.restart(instance_name, capture_output=capture_output)

  File "/usr/lib/python2.7/site-packages/ipapython/platform/systemd.py", line 85, in restart
    ipautil.run(["/bin/systemctl", "restart", self.service_instance(instance_name)], capture_output=capture_output)

  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 307, in run
    raise CalledProcessError(p.returncode, args)

2012-06-29T03:29:15Z INFO The ipa-server-install command failed, exception: CalledProcessError: Command '/bin/systemctl restart httpd.service' returned non-zero exit status 1
(END)

There were lots of semaphore arrays owned by apache.

for semId in $(ipcs -s | grep apache | cut -f 2 -d ' '); do ipcrm -s $semId; done

solved the issue.

Metadata Update from @shanks:
- Issue assigned to someone
- Issue set to the milestone: Ticket Backlog

7 years ago

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata