queue-consumer.service failed with status=1/failure. the script runs fine by hand!

Solvedlinuxservicessystemd3 replies 路 237 views 路 started

Accepted solution

by Tariq B.Jump to the reply

hmmm get the full story from teh journal:

sudo journalctl -u myapp.service -b --no-pager -n 100
sudo systemctl status myapp.service -l

the journal often has teh actual error line that status truncates.

  1. hmmmm ok our queue-consumer.service keeps flapping. It starts, crashes, restarts, and finally systemd stops trying:

    i see status=1/FAILURE in the status 馃槶 The app logs to its own file, which stays empty, so it dies before it even gets going.

    Id like to understand teh failure, not just add a longer restart delay and hope. How do i see what the process prints before it dies?? i feel like sysetmd is swallowing the one error message i actually need. what am i doing wrong??

    6
  2. Accepted solution

    hmmm get the full story from teh journal:

    sudo journalctl -u myapp.service -b --no-pager -n 100
    sudo systemctl status myapp.service -l
    

    the journal often has teh actual error line that status truncates.

    0 12 helpful

Reply to this topic

Sign in or create an account to reply.