My mastodon server cannot send new user confirmation email

When a user registers, the webpage will show ‘’Confirmation email sent’, but when I check my email (including spam emails), there is no confirmation email in it.
The strange thing is that in the interactive wizard for installing mastodon, the smtp information I filled in can run successfully and send out a test email. I use zoho’s smtp service. There is also only the initial test email in the outbox of this email, and all the user registration confirmation emails are not sent.
How can I troubleshoot and solve this problem?

My smtp information:

SMTP_SERVER=smtp.zoho.com
SMTP_PORT=587
SMTP_LOGIN=godmeng@xxxxxx.one
SMTP_PASSWORD=xxxxxxx
SMTP_AUTH_METHOD=plain
SMTP_OPENSSL_VERIFY_MODE=none
SMTP_FROM_ADDRESS=godmeng@xxxxx.one

It works except sending confirmation email

Can you post a whole exception from the sidekiq log - it apparently crashes … Also please post as text (use ```` to display the log as-is without any formatting).

1 Like

Sorry, because I cannot provide a complete log. Its content is too long, and there are many repetitions. However, I can provide a log when I clicked “Send Confirmation Email”, I hope it will be helpful to you. Thanks again.

root@root:~# journalctl -u mastodon-sidekiq -n 100
-- Logs begin at Mon 2021-03-01 02:53:58 EST, end at Mon 2021-03-01 06:39:40 EST. --
Mar 01 06:39:16 root bundle[32147]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:39:16 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:39:16 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:39:16 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:39:17 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:39:17 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:39:17 root systemd[1]: Started mastodon-sidekiq.
Mar 01 06:39:21 root bundle[32165]: 2021-03-01T11:39:21.439Z pid=32165 tid=qrx INFO: Booting Sidekiq 6.1.2 with redis options {:url=>"redis://localhost:6379/0"}
Mar 01 06:39:24 root bundle[32165]: 2021-03-01T11:39:24.621Z pid=32165 tid=qrx INFO: Booted Rails 5.2.4.4 application in production environment
Mar 01 06:39:24 root bundle[32165]: 2021-03-01T11:39:24.622Z pid=32165 tid=qrx INFO: Running in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Mar 01 06:39:24 root bundle[32165]: 2021-03-01T11:39:24.622Z pid=32165 tid=qrx INFO: See LICENSE and the LGPL-3.0 for licensing details.
Mar 01 06:39:24 root bundle[32165]: 2021-03-01T11:39:24.622Z pid=32165 tid=qrx INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
Mar 01 06:39:24 root bundle[32165]: 2021-03-01T11:39:24.624Z pid=32165 tid=qrx WARN: RuntimeError: You are connecting to Redis v3.0.6, Sidekiq requires Redis v4.0.0 o
Mar 01 06:39:24 root bundle[32165]: 2021-03-01T11:39:24.625Z pid=32165 tid=qrx WARN: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/lib/sidekiq/cli.r
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/bin/sidekiq:31:in `<top (required)>'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `load'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `load'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `kernel_load'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:28:in `run'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:494:in `exec'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `ru
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:30:in `dispatch'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `star
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:24:in `start'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:49:in `block in <top (required)>'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/friendly_errors.rb:130:in `with_friendly_
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:37:in `<top (required)>'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
Mar 01 06:39:24 root bundle[32165]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:39:24 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:39:24 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:39:24 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:39:24 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:39:24 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:39:24 root systemd[1]: Started mastodon-sidekiq.
Mar 01 06:39:29 root bundle[32183]: 2021-03-01T11:39:29.109Z pid=32183 tid=qsf INFO: Booting Sidekiq 6.1.2 with redis options {:url=>"redis://localhost:6379/0"}
Mar 01 06:39:32 root bundle[32183]: 2021-03-01T11:39:32.507Z pid=32183 tid=qsf INFO: Booted Rails 5.2.4.4 application in production environment
Mar 01 06:39:32 root bundle[32183]: 2021-03-01T11:39:32.508Z pid=32183 tid=qsf INFO: Running in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Mar 01 06:39:32 root bundle[32183]: 2021-03-01T11:39:32.508Z pid=32183 tid=qsf INFO: See LICENSE and the LGPL-3.0 for licensing details.
Mar 01 06:39:32 root bundle[32183]: 2021-03-01T11:39:32.508Z pid=32183 tid=qsf INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
Mar 01 06:39:32 root bundle[32183]: 2021-03-01T11:39:32.510Z pid=32183 tid=qsf WARN: RuntimeError: You are connecting to Redis v3.0.6, Sidekiq requires Redis v4.0.0 o
Mar 01 06:39:32 root bundle[32183]: 2021-03-01T11:39:32.510Z pid=32183 tid=qsf WARN: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/lib/sidekiq/cli.r
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/bin/sidekiq:31:in `<top (required)>'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `load'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `load'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `kernel_load'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:28:in `run'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:494:in `exec'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `ru
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:30:in `dispatch'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `star
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:24:in `start'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:49:in `block in <top (required)>'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/friendly_errors.rb:130:in `with_friendly_
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:37:in `<top (required)>'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
Mar 01 06:39:32 root bundle[32183]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:39:32 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:39:32 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:39:32 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:39:32 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:39:32 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:39:32 root systemd[1]: Started mastodon-sidekiq.
Mar 01 06:39:37 root bundle[32202]: 2021-03-01T11:39:37.197Z pid=32202 tid=qua INFO: Booting Sidekiq 6.1.2 with redis options {:url=>"redis://localhost:6379/0"}
Mar 01 06:39:40 root bundle[32202]: 2021-03-01T11:39:40.445Z pid=32202 tid=qua INFO: Booted Rails 5.2.4.4 application in production environment
Mar 01 06:39:40 root bundle[32202]: 2021-03-01T11:39:40.446Z pid=32202 tid=qua INFO: Running in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Mar 01 06:39:40 root bundle[32202]: 2021-03-01T11:39:40.446Z pid=32202 tid=qua INFO: See LICENSE and the LGPL-3.0 for licensing details.
Mar 01 06:39:40 root bundle[32202]: 2021-03-01T11:39:40.446Z pid=32202 tid=qua INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
Mar 01 06:39:40 root bundle[32202]: 2021-03-01T11:39:40.448Z pid=32202 tid=qua WARN: RuntimeError: You are connecting to Redis v3.0.6, Sidekiq requires Redis v4.0.0 o
Mar 01 06:39:40 root bundle[32202]: 2021-03-01T11:39:40.448Z pid=32202 tid=qua WARN: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/lib/sidekiq/cli.r
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/bin/sidekiq:31:in `<top (required)>'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `load'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `load'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `kernel_load'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:28:in `run'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:494:in `exec'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `ru
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:30:in `dispatch'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `star
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:24:in `start'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:49:in `block in <top (required)>'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/friendly_errors.rb:130:in `with_friendly_
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:37:in `<top (required)>'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
Mar 01 06:39:40 root bundle[32202]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:39:40 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:39:40 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:39:40 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:39:40 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:39:40 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:39:40 root systemd[1]: Started mastodon-sidekiq.
-- Logs begin at Mon 2021-03-01 03:23:47 EST, end at Mon 2021-03-01 06:43:26 EST. --
Mar 01 06:42:58 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:42:58 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:42:58 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:42:58 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:42:58 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:42:58 root systemd[1]: Started mastodon-sidekiq.
Mar 01 06:43:02 root bundle[32699]: 2021-03-01T11:43:02.861Z pid=32699 tid=qdv INFO: Booting Sidekiq 6.1.2 with redis options {:url=>"redis://localhost:6379/0"}
Mar 01 06:43:06 root bundle[32699]: 2021-03-01T11:43:06.163Z pid=32699 tid=qdv INFO: Booted Rails 5.2.4.4 application in production environment
Mar 01 06:43:06 root bundle[32699]: 2021-03-01T11:43:06.164Z pid=32699 tid=qdv INFO: Running in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Mar 01 06:43:06 root bundle[32699]: 2021-03-01T11:43:06.164Z pid=32699 tid=qdv INFO: See LICENSE and the LGPL-3.0 for licensing details.
Mar 01 06:43:06 root bundle[32699]: 2021-03-01T11:43:06.164Z pid=32699 tid=qdv INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
Mar 01 06:43:06 root bundle[32699]: 2021-03-01T11:43:06.166Z pid=32699 tid=qdv WARN: RuntimeError: You are connecting to Redis v3.0.6, Sidekiq requires Redis v4.0.0 o
Mar 01 06:43:06 root bundle[32699]: 2021-03-01T11:43:06.166Z pid=32699 tid=qdv WARN: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/lib/sidekiq/cli.r
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/bin/sidekiq:31:in `<top (required)>'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `load'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `load'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `kernel_load'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:28:in `run'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:494:in `exec'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `ru
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:30:in `dispatch'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `star
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:24:in `start'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:49:in `block in <top (required)>'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/friendly_errors.rb:130:in `with_friendly_
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:37:in `<top (required)>'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
Mar 01 06:43:06 root bundle[32699]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:43:06 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:43:06 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:43:06 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:43:06 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:43:06 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:43:06 root systemd[1]: Started mastodon-sidekiq.
Mar 01 06:43:11 root bundle[32717]: 2021-03-01T11:43:11.074Z pid=32717 tid=qg5 INFO: Booting Sidekiq 6.1.2 with redis options {:url=>"redis://localhost:6379/0"}
Mar 01 06:43:14 root bundle[32717]: 2021-03-01T11:43:14.463Z pid=32717 tid=qg5 INFO: Booted Rails 5.2.4.4 application in production environment
Mar 01 06:43:14 root bundle[32717]: 2021-03-01T11:43:14.465Z pid=32717 tid=qg5 INFO: Running in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Mar 01 06:43:14 root bundle[32717]: 2021-03-01T11:43:14.465Z pid=32717 tid=qg5 INFO: See LICENSE and the LGPL-3.0 for licensing details.
Mar 01 06:43:14 root bundle[32717]: 2021-03-01T11:43:14.465Z pid=32717 tid=qg5 INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
Mar 01 06:43:14 root bundle[32717]: 2021-03-01T11:43:14.467Z pid=32717 tid=qg5 WARN: RuntimeError: You are connecting to Redis v3.0.6, Sidekiq requires Redis v4.0.0 o
Mar 01 06:43:14 root bundle[32717]: 2021-03-01T11:43:14.468Z pid=32717 tid=qg5 WARN: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/lib/sidekiq/cli.r
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/bin/sidekiq:31:in `<top (required)>'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `load'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `load'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `kernel_load'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:28:in `run'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:494:in `exec'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `ru
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:30:in `dispatch'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `star
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:24:in `start'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:49:in `block in <top (required)>'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/friendly_errors.rb:130:in `with_friendly_
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:37:in `<top (required)>'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
Mar 01 06:43:14 root bundle[32717]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:43:14 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:43:14 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:43:14 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Mar 01 06:43:14 root systemd[1]: mastodon-sidekiq.service: Service hold-off time over, scheduling restart.
Mar 01 06:43:14 root systemd[1]: Stopped mastodon-sidekiq.
Mar 01 06:43:14 root systemd[1]: Started mastodon-sidekiq.
Mar 01 06:43:19 root bundle[32735]: 2021-03-01T11:43:19.108Z pid=32735 tid=qgn INFO: Booting Sidekiq 6.1.2 with redis options {:url=>"redis://localhost:6379/0"}
Mar 01 06:43:22 root bundle[32735]: 2021-03-01T11:43:22.281Z pid=32735 tid=qgn INFO: Booted Rails 5.2.4.4 application in production environment
Mar 01 06:43:22 root bundle[32735]: 2021-03-01T11:43:22.282Z pid=32735 tid=qgn INFO: Running in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Mar 01 06:43:22 root bundle[32735]: 2021-03-01T11:43:22.282Z pid=32735 tid=qgn INFO: See LICENSE and the LGPL-3.0 for licensing details.
Mar 01 06:43:22 root bundle[32735]: 2021-03-01T11:43:22.282Z pid=32735 tid=qgn INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
Mar 01 06:43:22 root bundle[32735]: 2021-03-01T11:43:22.284Z pid=32735 tid=qgn WARN: RuntimeError: You are connecting to Redis v3.0.6, Sidekiq requires Redis v4.0.0 o
Mar 01 06:43:22 root bundle[32735]: 2021-03-01T11:43:22.285Z pid=32735 tid=qgn WARN: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/lib/sidekiq/cli.r
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.1.2/bin/sidekiq:31:in `<top (required)>'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `load'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/live/vendor/bundle/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `load'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:63:in `kernel_load'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli/exec.rb:28:in `run'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:494:in `exec'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `ru
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:30:in `dispatch'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `star
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/cli.rb:24:in `start'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:49:in `block in <top (required)>'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/lib/bundler/friendly_errors.rb:130:in `with_friendly_
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.11/exe/bundle:37:in `<top (required)>'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
Mar 01 06:43:22 root bundle[32735]: /home/mastodon/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Mar 01 06:43:22 root systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 06:43:22 root systemd[1]: mastodon-sidekiq.service: Unit entered failed state.
Mar 01 06:43:22 root systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.

This seems to be the problem - can you check which version of Redis is really running?

Blockquote
root@root:~# redis-server --version
Redis server v=3.0.6 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=7785291a3d2152db

So, here it is, you need redis 4.0 to run Sidekiq and Mastodon.

1 Like

Thank you so much! I updated redis and successfully solved this problem

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.