mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1000] systemctl script won't start server #700
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#700
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bakerken on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1000
🐞 Describe the bug
"systemctl start ntfy" fails, but "/usr/bin/ntfy serve --no-log-dates" works
The installed systemctl script fails to start the server. The error message from journalctl is:
starting the server with
works. The web page is up, and I can send notifications to my phone client.The cert is supplied by certbot, and exists. I've tried pointing the config file at the softlink (see below) or the hard files. Both fail.
💻 Components impacted
ntfy server
💡 Screenshots and/or logs
useful part of my server.yml
🔮 Additional context
@wunter8 commented on GitHub (Jan 11, 2024):
The systemd service (by default) runs ntfy as the
ntfyuser andntfygroup. I'm guessing the ntfy user doesn't have permissions to access the key/cert file. You can test withsudo -u ntfy ls /etc/letsencrypt/live/ntfy.redacted.co.uk/privkey.pem@bakerken commented on GitHub (Jan 11, 2024):
<D'oh!> <slaps forehead> Of course, thanks wunter8. 😀