Railsアプリの本番環境でメールが送られなくなっています。
その原因は、昨日本番環境で誤ってRedisを起動して落とすコマンドを実行したことによるものだと思っております。
slackに届いたエラーメッセージを確認したところ、
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
と出力されていました。
そこで、空き容量を調べましたがこちらには問題ありませんでした。
###環境
Rails 4.2.6
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
aws ec2
###ログ
./redis/6379.log
28625:M 12 Apr 04:14:07.964 * Increased maximum number of open files to 10032 (it was originally set to 1024).
28625:M 12 Apr 04:14:07.964 # Creating Server TCP listening socket 127.0.0.1:6379: bind: Address already in use
sidekiq.log
2019-04-12T03:53:50.614Z 28161 TID-grcdecg8x WARN: Redis::CommandError: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify
the data set are disabled. Please check Redis logs for details about the error.
###試したこと
メールを送信するリンクをクリックするとエラーが発生していました。
$ ls -l /proc/8443/cwd
lrwxrwxrwx 1 mycompany mycompany 0 4月 12 03:50 /proc/8443/cwd -> /var/lib
となっていたため、
redis-cliでconfig set dir /var/run/redisを叩くと、メールを送信するリンクをクリックしてもアプリ上は問題なく動作しているように見えました。
しかし実際にはメールは送られません。
###実現したいこと
メールが送られない原因を突き止めて、メール送信機能を復旧したいです。
なにかご教示いただけることがあれば、なにとぞよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。