I am running Nextcloud through a docker/docker-compose.
388a069effd1 mariadb "docker-entrypoint.s…" 14 hours ago Up 35 minutes 3306/tcp, 0.0.0.0:3306->13306/tcp nextcloud_db_1
a2068d749aed nextcloud "/entrypoint.sh apac…" 8 days ago Up 48 minutes 80/tcp nextcloud_app_1
I am trying to make a systemd unit file. Running sudo systemctl status nextcloud-news-updater.service leads to this error message:
nextcloud-news-updater.service
Loaded: loaded (/etc/systemd/system/nextcloud-news-updater.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-03-28 13:35:43 AEDT; 15min ago
Process: 16904 ExecStart=/usr/bin/nextcloud-news-updater -c /etc/nextcloud/news/updater.ini (code=exited, status=1/FAILURE)
Main PID: 16904 (code=exited, status=1/FAILURE)
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: result = factory(self)
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: File "/usr/local/lib/python3.7/dist-packages/nextcloud_news_updater/dependencyinjection/container.py", line 18, in __call__
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: return self.factory(container)
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: File "/usr/local/lib/python3.7/dist-packages/nextcloud_news_updater/container.py", line 34, in _create_config
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: config = config_parser.parse_file(args.config)
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: File "/usr/local/lib/python3.7/dist-packages/nextcloud_news_updater/config.py", line 92, in parse_file
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: 'Error: could not find config file %s' % path)
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 nextcloud-news-updater[16904]: nextcloud_news_updater.config.InvalidConfigException: Error: could not find config file /etc/nextcloud/news/updater.ini
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 systemd[1]: nextcloud-news-updater.service: Main process exited, code=exited, status=1/FAILURE
Mar 28 13:35:43 ubuntu-s-1vcpu-2gb-sgp1-01 systemd[1]: nextcloud-news-updater.service: Failed with result 'exit-code'.
Think I have to change the execstart in the systemd file but I really don't know.
I am running Nextcloud through a docker/docker-compose.
I am trying to make a systemd unit file. Running sudo systemctl status nextcloud-news-updater.service leads to this error message:
Think I have to change the execstart in the systemd file but I really don't know.