Mastodon: Failed to enable unit: Unit file mastodon-\x2a.service does not exist.

Created on 18 Nov 2018  路  1Comment  路  Source: tootsuite/mastodon

Hi, I've just installed mastodon on a clean ubuntu 18.04 server following the guide here: https://docs.joinmastodon.org/administration/installation/

'systemctl start mastodon-web mastodon-sidekiq mastodon-streaming' successfully starts everything, but:
'systemctl enable mastodon-*' fails with "Failed to enable unit: Unit file mastodon-x2a.service does not exist."

Which isn't a huge problem, just if I reboot the server for any reason (eg kernel patches) I have to remember to manually restart with systemctl start mastodon-web etc.

Any ideas why the enable command failed and what I could do to fix it?

troubleshooting

Most helpful comment

To fix it you could just do something like:

systemctl enable mastodon-web mastodon-sidekiq mastodon-streaming

(just replace the start with enable) or if you want to write it out:

systemctl enable mastodon-web
systemctl enable mastodon-sidekiq
systemctl enable mastodon-streaming

Notes (also for the docs):
Not all shells accept auto-completion for systemctl and are just trying to start a service named mastodon-* (where the \x2a is the escaped ascii code from *)

>All comments

To fix it you could just do something like:

systemctl enable mastodon-web mastodon-sidekiq mastodon-streaming

(just replace the start with enable) or if you want to write it out:

systemctl enable mastodon-web
systemctl enable mastodon-sidekiq
systemctl enable mastodon-streaming

Notes (also for the docs):
Not all shells accept auto-completion for systemctl and are just trying to start a service named mastodon-* (where the \x2a is the escaped ascii code from *)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flukejones picture flukejones  路  3Comments

lauramichet picture lauramichet  路  3Comments

marrus-sh picture marrus-sh  路  3Comments

Lewiscowles1986 picture Lewiscowles1986  路  3Comments

phryk picture phryk  路  3Comments