Created
October 23, 2018 15:14
-
-
Save odyssey4me/b8f6a13ffc48b99cc837761cf4e4b064 to your computer and use it in GitHub Desktop.
Fun with SystemD service statuses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With the unit file having 'Type=forking' | |
root@aio1-glance-container-c7e2fe9a:~# systemctl daemon-reload; systemctl restart glance-api; echo $? | |
Job for glance-api.service failed because the control process exited with error code. See "systemctl status glance-api.service" and "journalctl -xe" for details. | |
1 | |
Oct 23 15:11:31 aio1-glance-container-c7e2fe9a uwsgi[4559]: /openstack/venvs/glance-19.0.0.0b1/bin/uwsgi: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory | |
Oct 23 15:11:31 aio1-glance-container-c7e2fe9a systemd[1]: glance-api.service: Control process exited, code=exited status=127 | |
Oct 23 15:11:31 aio1-glance-container-c7e2fe9a systemd[1]: Failed to start glance-api service. | |
-- Subject: Unit glance-api.service has failed | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit glance-api.service has failed. | |
-- | |
-- The result is failed. | |
Oct 23 15:11:31 aio1-glance-container-c7e2fe9a systemd[1]: glance-api.service: Unit entered failed state. | |
Oct 23 15:11:31 aio1-glance-container-c7e2fe9a systemd[1]: glance-api.service: Failed with result 'exit-code'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With the unit file having 'Type=simple' | |
root@aio1-glance-container-c7e2fe9a:~# systemctl daemon-reload; systemctl restart glance-api; echo $? | |
0 | |
root@aio1-glance-container-c7e2fe9a:~# journalctl -xe | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: Failed to reset devices.list on /glance.slice: Operation not permitted | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: Started glance-api service. | |
-- Subject: Unit glance-api.service has finished start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit glance-api.service has finished starting up. | |
-- | |
-- The start-up result is done. | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: Failed to reset devices.list on /init.scope: Operation not permitted | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a uwsgi[4643]: /openstack/venvs/glance-19.0.0.0b1/bin/uwsgi: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: Failed to reset devices.list on /user.slice: Operation not permitted | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: glance-api.service: Main process exited, code=exited, status=127/n/a | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: glance-api.service: Unit entered failed state. | |
Oct 23 15:13:16 aio1-glance-container-c7e2fe9a systemd[1]: glance-api.service: Failed with result 'exit-code'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment