Mastodon-web.service: Failed

help me please
first i did not host any domain I want to run the server directly on the public IP of my vps
and I set my public IP when I run code ```
RAILS_ENV=production bundle exec rake mastodon:setup



i install Nginx and copied the mastodon server files etc  and edit the server name with my public address 






-- Reboot --
Oct 16 12:08:15 ip-172-31-6-1 systemd[1]: Started mastodon-sidekiq.
Oct 16 12:08:15 ip-172-31-6-1 systemd[1]: Started mastodon-streaming.
Oct 16 12:08:15 ip-172-31-6-1 systemd[1]: Started mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[443]: mastodon-streaming.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[443]: mastodon-streaming.service: Failed at step USER spawning /usr/bin/node: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[444]: mastodon-web.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[444]: mastodon-web.service: Failed at step USER spawning /home/mastodon/.rbenv/shims/bundle: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Scheduled restart job, restart counter is at 1.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Scheduled restart job, restart counter is at 1.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Scheduled restart job, restart counter is at 1.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[488]: mastodon-sidekiq.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[488]: mastodon-sidekiq.service: Failed at step USER spawning /home/mastodon/.rbenv/shims/bundle: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[489]: mastodon-streaming.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[489]: mastodon-streaming.service: Failed at step USER spawning /usr/bin/node: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Scheduled restart job, restart counter is at 2.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Scheduled restart job, restart counter is at 2.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Scheduled restart job, restart counter is at 2.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[512]: mastodon-streaming.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[512]: mastodon-streaming.service: Failed at step USER spawning /usr/bin/node: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[513]: mastodon-web.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[513]: mastodon-web.service: Failed at step USER spawning /home/mastodon/.rbenv/shims/bundle: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Scheduled restart job, restart counter is at 3.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Scheduled restart job, restart counter is at 3.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Scheduled restart job, restart counter is at 3.
Oct 16 12:08:16 ip-172-31-6-1 systemd[529]: mastodon-sidekiq.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[529]: mastodon-sidekiq.service: Failed at step USER spawning /home/mastodon/.rbenv/shims/bundle: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[536]: mastodon-web.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[536]: mastodon-web.service: Failed at step USER spawning /home/mastodon/.rbenv/shims/bundle: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Scheduled restart job, restart counter is at 4.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Scheduled restart job, restart counter is at 4.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Scheduled restart job, restart counter is at 4.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Started mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[555]: mastodon-streaming.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[555]: mastodon-streaming.service: Failed at step USER spawning /usr/bin/node: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[556]: mastodon-web.service: Failed to determine user credentials: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[556]: mastodon-web.service: Failed at step USER spawning /home/mastodon/.rbenv/shims/bundle: No such process
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Scheduled restart job, restart counter is at 5.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Start request repeated too quickly.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Failed to start mastodon-sidekiq.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Scheduled restart job, restart counter is at 5.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Scheduled restart job, restart counter is at 5.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Start request repeated too quickly.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Failed to start mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-web.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Start request repeated too quickly.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Failed to start mastodon-web.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++




ubuntu@ip-172-31-6-1:~$ systemctl status mastodon-streaming.service
● mastodon-streaming.service - mastodon-streaming
     Loaded: loaded (/etc/systemd/system/mastodon-streaming.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2021-10-16 12:08:16 UTC; 8min ago
    Process: 555 ExecStart=/usr/bin/node ./streaming (code=exited, status=217/USER)
   Main PID: 555 (code=exited, status=217/USER)

Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Main process exited, code=exited, status=217/USER
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Scheduled restart job, restart counter is at 5.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Stopped mastodon-streaming.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Start request repeated too quickly.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: mastodon-streaming.service: Failed with result 'exit-code'.
Oct 16 12:08:16 ip-172-31-6-1 systemd[1]: Failed to start mastodon-streaming.
ubuntu@ip-172-31-6-1:~$

There is nothing in your logs specific to the Mastodon setup here. A quick google search for “Failed to determine user credentials: No such process” brings the following systemd issue: postgresql.service: Failed to determine user credentials: No such process · Issue #9814 · systemd/systemd · GitHub
Try systemctl daemon-reexec. If that does not work, could you:

  • check the User= line in /etc/systemd/system/mastodon-web.service, /etc/systemd/system/mastodon-sidekiq.service, and /etc/systemd/system/mastodon-streaming.service
  • you are indeed setting up Mastodon under a user of that name

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