LoginSignup
0
0

More than 1 year has passed since last update.

sudo systemctl status railsするとfailになる

Posted at

背景

pumaを自動起動設定にするために
https://mebee.info/2021/11/02/post-28224/ 
を参考にやったもののstatusがactiveにならない

結論

cd  /etc/systemd/system/var/log

でディレクトリ移動し、そこのmessageというファイルをみます(このmessagesファイルにはログが出ています。)

自分の場合、確認してみるとエラーの原因は

start request repeated too quickly

と書かれており、リクエストを高速で繰り返したために停止されているようです。
解決策としてはrails.serviceファイルの

Restart=always

Restart=no

にしました。

するとうまく動くようになりました。

0
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
0
0