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?
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 *
)
Most helpful comment
To fix it you could just do something like:
(just replace the
start
withenable
) or if you want to write it out:Notes (also for the docs):
Not all shells accept auto-completion for
systemctl
and are just trying to start a service namedmastodon-*
(where the\x2a
is the escaped ascii code from*
)