5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

systemctlでエラーになったときの詳細確認方法

Posted at

systemctlで以下のようなエラーがでることがある。例はsidkiq。


Job for sidekiq.service failed because the control process exited with error code. See "systemctl status sidekiq.service" and "journalctl -xe" for details.


でも statusを見てもjournalctlをしてもさっぱり原因がわからない..

そんなときは以下の流れで詳細が確認できる。

  1. "systemctl cat サービス名" コマンドを実行してUnitファイルを見る。
  • [Service]以下の「WorkingDirectory」と「ExecStart」を取得。
  • WorkingDirectoryに移動してExecStartの中身を実行。ここで実行時のエラー内容が直接確認できる!!

[参考]
https://kazuminkun.hatenablog.com/entry/2016/08/30/234458

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?