I am trying to implement Sidekiq using Systemd
on Ubuntu 16.
I am logged in as deployer. I navigated to the /lib/systemd/system
directory and wanted there to create a file: nano sidekiq.service.
However, I received an error message because of missing permissions, so I created that file as sudo nano sidekiq.service. All created successfully.
Then, I wanted to activate it, but got this error message:
systemctl enable sidekiq => Failed to issue method call: Access denied
So, I tried using sudo
:
sudo systemctl enable sidekiq => Failed to issue method call: No such file or directory
How do I move from here? How to activate this new service?
Thank you
EDIT: logs from sudo journalctl -u sidekiq.service
-- Logs begin at Tue 2020-03-24 15:45:10 UTC, end at Wed 2020-03-25 10:18:41 U
Mar 25 10:15:31 ip-172-31-46-41 sidekiq[29413]: W, [2020-03-25T10:15:31.895985
Mar 25 10:15:31 ip-172-31-46-41 sidekiq[29413]: Association Tracking for Paper
Mar 25 10:15:31 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:15:31.913Z pid=2
Mar 25 10:15:35 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:15:34.999Z pid=2
Mar 25 10:15:35 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:15:35.008Z pid=2
Mar 25 10:15:35 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:15:35.008Z pid=2
Mar 25 10:15:35 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:15:35.008Z pid=2
Mar 25 10:16:55 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:16:55.393Z pid=2
Mar 25 10:16:55 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:16:55.394Z pid=2
Mar 25 10:16:55 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:16:55.394Z pid=2
Mar 25 10:16:55 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:16:55.895Z pid=2
Mar 25 10:16:57 ip-172-31-46-41 sidekiq[29413]: 2020-03-25T10:16:57.898Z pid=2
Mar 25 10:17:05 ip-172-31-46-41 sidekiq[29581]: W, [2020-03-25T10:17:05.050918
Mar 25 10:17:05 ip-172-31-46-41 sidekiq[29581]: Association Tracking for Paper
Mar 25 10:17:05 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:17:05.072Z pid=2
Mar 25 10:17:07 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:17:07.903Z pid=2
Mar 25 10:17:07 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:17:07.904Z pid=2
Mar 25 10:17:07 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:17:07.904Z pid=2
Mar 25 10:17:07 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:17:07.904Z pid=2
Mar 25 10:18:28 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:18:28.944Z pid=2
Mar 25 10:18:28 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:18:28.944Z pid=2
Mar 25 10:18:28 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:18:28.945Z pid=2
Mar 25 10:18:29 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:18:29.446Z pid=2
Mar 25 10:18:31 ip-172-31-46-41 sidekiq[29581]: 2020-03-25T10:18:31.449Z pid=2
Mar 25 10:18:38 ip-172-31-46-41 sidekiq[29614]: W, [2020-03-25T10:18:38.659569
Mar 25 10:18:38 ip-172-31-46-41 sidekiq[29614]: Association Tracking for Paper
Mar 25 10:18:38 ip-172-31-46-41 sidekiq[29614]: 2020-03-25T10:18:38.669Z pid=2