question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix issue with systemd "failed" state

See original GitHub issue

Summary

Right now, Ghost-CLI only has 2 options when it comes to determining the status of a Ghost instance: “running” and “not running”. This has become problematic in the past, because systemd (which is used by default in production on Ubuntu) has the concept of a third state: “failed”. This state occurs whenever the Ghost instance failed to start for a certain reason (e.g. a bad configuration file). Because of this, we currently throw an error when systemd is in state: “failed”.

What I think we should do in the short term is fix the systemd process manager to output a more helpful error message (maybe auto-run journalctl to determine why it’s in a failed state?) and maybe in the future refactor that particular part of the process manager to be able to handle that 3rd state more cleanly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
acburdinecommented, Jul 27, 2018

@kirrg001 that sounds like a perfect solution - I’ll work on testing that out this weekend

0reactions
github-actions[bot]commented, May 3, 2021

Our bot has automatically marked this issue as stale because there has not been any activity here in some time. The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR. We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auditing systemd: solving failed units with systemctl - Linux Audit
Units in systemd might fail during boot or afterwards. In this article we try solving failed units which showed up in the systemctl...
Read more >
Error about "systemd: XXX.service Start request repeated too ...
Services are failing to startup. Verifying possible causes in "/var/log/messages" and/or "systemctl status XXX.service", it was found the following type ...
Read more >
Systemd service isn't restarted, no explanation of failure
It is only when it fails that systemd schedules the restart and then stops the service without successfully restarting it. I cannot find...
Read more >
systemd-logind cannot start org.freedesktop.systemd1 after ...
I would Need help in both the possible root cause which caused systemd to get into FAILURE state as well as a solution...
Read more >
Systemd systemctl list all failed units/services on Linux - nixCraft
sudo systemctl list-units --state failed ... nixcraft-wks01 vboxwebsrv[1675]: You will not be able to start VMs until this problem is fixed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found