-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd service fails to start #1310
Comments
Can you post the complete logs under |
Could this be related to this? NixOS/nixpkgs#197443 |
As requested, here is the output from In order to investigate this further, I have added When running listmonk with @resources allowed, I noticed the following lines in the resulting log file: With @resources disallowed, I see similar lines, but more of them. It looks like the culprit is system call 160 (setrlimit). This is the same system call as in the other case found by @rhnvrm. I believe that upgrading to Go 1.19 was the reason that this system call gets used by v2.4.0. |
Indeed, to run Listmonk as systemd service was not so easy, it failed many times until I removed a few lines from .service (see below). OK, my Ubuntu is not the latest one, but still, it should be supported. Here the software versions:
I managed to run Listmonk by removing a few things from the .service file
By the way, when troubleshooting systemd issues - always specify the systemd version! |
This is still broken, why was it closed? |
Providing the proper reference for the fix, #1309 |
Version: v2.4.0
OS: Ubuntu 22.04
Description of the bug
The systemd service created with the [email protected] file fails to start.
Steps to reproduce
/usr/bin/listmonk
and that the config file is at/etc/listmonk/mailer.toml
cd /etc/systemd/system
wget https://raw.githubusercontent.com/knadh/listmonk/c10c03178ba6da1e2f8cb61f624b4e691c85af27/listmonk%40.service
systemctl daemon-reload
systemctl start listmonk@mailer
Expected result
Listmonk should start. It should start sending emails and the dashboard should become available.
This is the result you get when using Listmonk v2.3.0.
Actual result
The dashboard and listmonk itself don't start. You get the following error:
Job for [email protected] failed because a fatal signal was delivered causing the control process to dump core. See "systemctl status [email protected]" and "journalctl -xeu [email protected]" for details.
Proposed fix
#1309
The text was updated successfully, but these errors were encountered: