[GH-ISSUE #845] Configuration of server.yml #597

Closed
opened 2026-05-07 00:25:42 +02:00 by BreizhHardware · 3 comments

Originally created by @msanaullahsahar on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/845

I have inserted the following in server.yml using sudo nano /etc/ntfy/server.yml

base-url: "http://ntfy.mooo.com"
listen-http: ":80"
listen-https: ":443"
key-file: "/etc/letsencrypt/live/ntfy.mooo.com/privkey.pem"
cert-file: "/etc/letsencrypt/live/ntfy.mooo.com/fullchain.pem"
cache-file: "/var/cache/ntfy/cache.db"
attachment-cache-dir: "/var/cache/ntfy/attachments"

After that my ntfy.service is not working and ntfy is not accessible either via http or https. Here is the output of sudo systemctl restart ntfy.service

● ntfy.service - ntfy server
     Loaded: loaded (/lib/systemd/system/ntfy.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-08-21 05:42:00 UTC; 9s ago
    Process: 3923 ExecStart=/usr/bin/ntfy serve --no-log-dates (code=exited, status=1/FAILURE)
   Main PID: 3923 (code=exited, status=1/FAILURE)

Aug 21 05:42:00 ntfy.mooo.com systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 5.
Aug 21 05:42:00 ntfy.mooo.com systemd[1]: Stopped ntfy server.
Aug 21 05:42:00 ntfy.mooo.com systemd[1]: ntfy.service: Start request repeated too quickly.
Aug 21 05:42:00 ntfy.mooo.com systemd[1]: ntfy.service: Failed with result 'exit-code'.
Aug 21 05:42:00 ntfy.mooo.com systemd[1]: Failed to start ntfy server.

My all certificates are ending at pem. User has full permission to /etc/letsencrypt/live/ntfy.mooo.com. Any idea where am i doing wrong? How can i make this correct.

Originally created by @msanaullahsahar on GitHub (Aug 21, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/845 I have inserted the following in server.yml using **sudo nano /etc/ntfy/server.yml** ``` base-url: "http://ntfy.mooo.com" listen-http: ":80" listen-https: ":443" key-file: "/etc/letsencrypt/live/ntfy.mooo.com/privkey.pem" cert-file: "/etc/letsencrypt/live/ntfy.mooo.com/fullchain.pem" cache-file: "/var/cache/ntfy/cache.db" attachment-cache-dir: "/var/cache/ntfy/attachments" ``` After that my **ntfy.service** is not working and **ntfy** is not accessible either via http or https. Here is the output of **sudo systemctl restart ntfy.service** ``` ● ntfy.service - ntfy server Loaded: loaded (/lib/systemd/system/ntfy.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2023-08-21 05:42:00 UTC; 9s ago Process: 3923 ExecStart=/usr/bin/ntfy serve --no-log-dates (code=exited, status=1/FAILURE) Main PID: 3923 (code=exited, status=1/FAILURE) Aug 21 05:42:00 ntfy.mooo.com systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 5. Aug 21 05:42:00 ntfy.mooo.com systemd[1]: Stopped ntfy server. Aug 21 05:42:00 ntfy.mooo.com systemd[1]: ntfy.service: Start request repeated too quickly. Aug 21 05:42:00 ntfy.mooo.com systemd[1]: ntfy.service: Failed with result 'exit-code'. Aug 21 05:42:00 ntfy.mooo.com systemd[1]: Failed to start ntfy server. ``` My all certificates are ending at **pem**. User has full permission to **/etc/letsencrypt/live/ntfy.mooo.com**. Any idea where am i doing wrong? How can i make this correct.
Author
Owner

@binwiederhier commented on GitHub (Aug 21, 2023):

journalctl -u ntfy

That's going to have more info of what's wrong. systemctl status only rpints the last few lines.

<!-- gh-comment-id:1685696916 --> @binwiederhier commented on GitHub (Aug 21, 2023): journalctl -u ntfy That's going to have more info of what's wrong. systemctl status only rpints the last few lines.
Author
Owner

@binwiederhier commented on GitHub (Aug 21, 2023):

Setup issues like this are best solved in Discord or Matrix.

<!-- gh-comment-id:1685697349 --> @binwiederhier commented on GitHub (Aug 21, 2023): Setup issues like this are best solved in Discord or Matrix.
Author
Owner

@msanaullahsahar commented on GitHub (Aug 21, 2023):

sudo journalctl -u ntfy

-- Logs begin at Sun 2023-08-20 19:03:46 UTC, end at Mon 2023-08-21 06:44:34 UTC. --
Aug 20 19:09:44 ntfy.mooo.com systemd[1]: Started ntfy server.
Aug 20 19:09:44 ntfy.mooo.com ntfy[2884]: INFO Listening on :80[http], ntfy 2.7.0, log level is INFO (tag=startup)
Aug 20 19:10:44 ntfy.mooo.com ntfy[2884]: INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0)
Aug 20 19:10:56 ntfy.mooo.com systemd[1]: Stopping ntfy server...
Aug 20 19:10:56 ntfy.mooo.com systemd[1]: ntfy.service: Succeeded.
Aug 20 19:10:56 ntfy.mooo.com systemd[1]: Stopped ntfy server.
-- Reboot --
Aug 20 19:12:28 ntfy.mooo.com systemd[1]: Started ntfy server.
Aug 20 19:12:30 ntfy.mooo.com ntfy[643]: INFO Listening on :80[http], ntfy 2.7.0, log level is INFO (tag=startup)
Aug 20 19:13:30 ntfy.mooo.com ntfy[643]: INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0)
<!-- gh-comment-id:1685744750 --> @msanaullahsahar commented on GitHub (Aug 21, 2023): sudo journalctl -u ntfy ``` -- Logs begin at Sun 2023-08-20 19:03:46 UTC, end at Mon 2023-08-21 06:44:34 UTC. -- Aug 20 19:09:44 ntfy.mooo.com systemd[1]: Started ntfy server. Aug 20 19:09:44 ntfy.mooo.com ntfy[2884]: INFO Listening on :80[http], ntfy 2.7.0, log level is INFO (tag=startup) Aug 20 19:10:44 ntfy.mooo.com ntfy[2884]: INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0) Aug 20 19:10:56 ntfy.mooo.com systemd[1]: Stopping ntfy server... Aug 20 19:10:56 ntfy.mooo.com systemd[1]: ntfy.service: Succeeded. Aug 20 19:10:56 ntfy.mooo.com systemd[1]: Stopped ntfy server. -- Reboot -- Aug 20 19:12:28 ntfy.mooo.com systemd[1]: Started ntfy server. Aug 20 19:12:30 ntfy.mooo.com ntfy[643]: INFO Listening on :80[http], ntfy 2.7.0, log level is INFO (tag=startup) Aug 20 19:13:30 ntfy.mooo.com ntfy[643]: INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#597
No description provided.