Closed iomari closed 9 months ago
In yaml, lines starting with "#" are comments. So you don't really have TLS configured at all.
In Tamil, lines starting with "#" are comments. So you don't really have TLS configured at all.
Maybe you didn't read my post carefully. The current config works because the 3 https lines are commented out. If I uncomment them I get errors.
Troubleshooting is best done on discord or matrix. Feel free to join.
If you get errors, it is a really really really good idea to include screenshots or copied text of the errors. Otherwise we cannot help.
You've done the equivalent of your mom telling you "my computer is broken" without giving any more details 😊
sudo systemctl restart ntfy ; sleep 2 ; sudo systemctl status ntfy
× ntfy.service - ntfy server
Loaded: loaded (/lib/systemd/system/ntfy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-11-22 19:08:49 WAT; 401ms ago
Process: 1446959 ExecStart=/usr/bin/ntfy serve --no-log-dates (code=exited, status=1/FAILURE)
Main PID: 1446959 (code=exited, status=1/FAILURE)
CPU: 148ms
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 5.
Nov 22 19:08:49 egwfw systemd[1]: Stopped ntfy server.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Start request repeated too quickly.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
Nov 22 19:08:49 egwfw systemd[1]: Failed to start ntfy server.
The output of: sudo journalctl -xeu ntfy.service
â–‘â–‘ A start job for unit ntfy.service has finished with a failure.
â–‘â–‘
â–‘â–‘ The job identifier is 39865 and the job result is failed.
Nov 22 19:08:48 egwfw systemd[1]: Started ntfy server.
â–‘â–‘ Subject: A start job for unit ntfy.service has finished successfully
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A start job for unit ntfy.service has finished successfully.
â–‘â–‘
â–‘â–‘ The job identifier is 40173.
Nov 22 19:08:48 egwfw ntfy[1446862]: INFO Listening on :80[http] :443[https], ntfy 2.7.0, log level is INFO (tag=startup)
Nov 22 19:08:48 egwfw ntfy[1446862]: FATAL listen tcp :80: bind: address already in use (exit_code=1)
Nov 22 19:08:48 egwfw ntfy[1446862]: listen tcp :80: bind: address already in use
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Main process exited, code=exited, status=1/FAILURE
â–‘â–‘ Subject: Unit process exited
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ An ExecStart= process belonging to unit ntfy.service has exited.
â–‘â–‘
â–‘â–‘ The process' exit code is 'exited' and its exit status is 1.
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ The unit ntfy.service has entered the 'failed' state with result 'exit-code'.
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 1.
â–‘â–‘ Subject: Automatic restarting of a unit has been scheduled
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ Automatic restarting of the unit ntfy.service has been scheduled, as the result for
â–‘â–‘ the configured Restart= setting for the unit.
Nov 22 19:08:48 egwfw systemd[1]: Stopped ntfy server.
â–‘â–‘ Subject: A stop job for unit ntfy.service has finished
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A stop job for unit ntfy.service has finished.
â–‘â–‘
â–‘â–‘ The job identifier is 40273 and the job result is done.
Nov 22 19:08:48 egwfw systemd[1]: Started ntfy server.
â–‘â–‘ Subject: A start job for unit ntfy.service has finished successfully
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A start job for unit ntfy.service has finished successfully.
â–‘â–‘
â–‘â–‘ The job identifier is 40273.
Nov 22 19:08:48 egwfw ntfy[1446891]: INFO Listening on :80[http] :443[https], ntfy 2.7.0, log level is INFO (tag=startup)
Nov 22 19:08:48 egwfw ntfy[1446891]: FATAL listen tcp :80: bind: address already in use (exit_code=1)
Nov 22 19:08:48 egwfw ntfy[1446891]: listen tcp :80: bind: address already in use
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Main process exited, code=exited, status=1/FAILURE
â–‘â–‘ Subject: Unit process exited
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ An ExecStart= process belonging to unit ntfy.service has exited.
â–‘â–‘
â–‘â–‘ The process' exit code is 'exited' and its exit status is 1.
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ The unit ntfy.service has entered the 'failed' state with result 'exit-code'.
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 2.
â–‘â–‘ Subject: Automatic restarting of a unit has been scheduled
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ Automatic restarting of the unit ntfy.service has been scheduled, as the result for
â–‘â–‘ the configured Restart= setting for the unit.
Nov 22 19:08:48 egwfw systemd[1]: Stopped ntfy server.
â–‘â–‘ Subject: A stop job for unit ntfy.service has finished
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A stop job for unit ntfy.service has finished.
â–‘â–‘
â–‘â–‘ The job identifier is 40373 and the job result is done.
Nov 22 19:08:48 egwfw systemd[1]: Started ntfy server.
â–‘â–‘ Subject: A start job for unit ntfy.service has finished successfully
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A start job for unit ntfy.service has finished successfully.
â–‘â–‘
â–‘â–‘ The job identifier is 40373.
Nov 22 19:08:48 egwfw ntfy[1446911]: INFO Listening on :80[http] :443[https], ntfy 2.7.0, log level is INFO (tag=startup)
Nov 22 19:08:48 egwfw ntfy[1446911]: FATAL listen tcp :80: bind: address already in use (exit_code=1)
Nov 22 19:08:48 egwfw ntfy[1446911]: listen tcp :80: bind: address already in use
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Main process exited, code=exited, status=1/FAILURE
â–‘â–‘ Subject: Unit process exited
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ An ExecStart= process belonging to unit ntfy.service has exited.
â–‘â–‘
â–‘â–‘ The process' exit code is 'exited' and its exit status is 1.
Nov 22 19:08:48 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ The unit ntfy.service has entered the 'failed' state with result 'exit-code'.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 3.
â–‘â–‘ Subject: Automatic restarting of a unit has been scheduled
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ Automatic restarting of the unit ntfy.service has been scheduled, as the result for
â–‘â–‘ the configured Restart= setting for the unit.
Nov 22 19:08:49 egwfw systemd[1]: Stopped ntfy server.
â–‘â–‘ Subject: A stop job for unit ntfy.service has finished
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A stop job for unit ntfy.service has finished.
â–‘â–‘
â–‘â–‘ The job identifier is 40473 and the job result is done.
Nov 22 19:08:49 egwfw systemd[1]: Started ntfy server.
â–‘â–‘ Subject: A start job for unit ntfy.service has finished successfully
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A start job for unit ntfy.service has finished successfully.
â–‘â–‘
â–‘â–‘ The job identifier is 40473.
Nov 22 19:08:49 egwfw ntfy[1446932]: INFO Listening on :80[http] :443[https], ntfy 2.7.0, log level is INFO (tag=startup)
Nov 22 19:08:49 egwfw ntfy[1446932]: FATAL listen tcp :80: bind: address already in use (exit_code=1)
Nov 22 19:08:49 egwfw ntfy[1446932]: listen tcp :80: bind: address already in use
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Main process exited, code=exited, status=1/FAILURE
â–‘â–‘ Subject: Unit process exited
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ An ExecStart= process belonging to unit ntfy.service has exited.
â–‘â–‘
â–‘â–‘ The process' exit code is 'exited' and its exit status is 1.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ The unit ntfy.service has entered the 'failed' state with result 'exit-code'.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 4.
â–‘â–‘ Subject: Automatic restarting of a unit has been scheduled
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ Automatic restarting of the unit ntfy.service has been scheduled, as the result for
â–‘â–‘ the configured Restart= setting for the unit.
Nov 22 19:08:49 egwfw systemd[1]: Stopped ntfy server.
â–‘â–‘ Subject: A stop job for unit ntfy.service has finished
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A stop job for unit ntfy.service has finished.
â–‘â–‘
â–‘â–‘ The job identifier is 40573 and the job result is done.
Nov 22 19:08:49 egwfw systemd[1]: Started ntfy server.
â–‘â–‘ Subject: A start job for unit ntfy.service has finished successfully
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A start job for unit ntfy.service has finished successfully.
â–‘â–‘
â–‘â–‘ The job identifier is 40573.
Nov 22 19:08:49 egwfw ntfy[1446959]: INFO Listening on :80[http] :443[https], ntfy 2.7.0, log level is INFO (tag=startup)
Nov 22 19:08:49 egwfw ntfy[1446959]: FATAL listen tcp :80: bind: address already in use (exit_code=1)
Nov 22 19:08:49 egwfw ntfy[1446959]: listen tcp :80: bind: address already in use
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Main process exited, code=exited, status=1/FAILURE
â–‘â–‘ Subject: Unit process exited
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ An ExecStart= process belonging to unit ntfy.service has exited.
â–‘â–‘
â–‘â–‘ The process' exit code is 'exited' and its exit status is 1.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ The unit ntfy.service has entered the 'failed' state with result 'exit-code'.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Scheduled restart job, restart counter is at 5.
â–‘â–‘ Subject: Automatic restarting of a unit has been scheduled
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ Automatic restarting of the unit ntfy.service has been scheduled, as the result for
â–‘â–‘ the configured Restart= setting for the unit.
Nov 22 19:08:49 egwfw systemd[1]: Stopped ntfy server.
â–‘â–‘ Subject: A stop job for unit ntfy.service has finished
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A stop job for unit ntfy.service has finished.
â–‘â–‘
â–‘â–‘ The job identifier is 40673 and the job result is done.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Start request repeated too quickly.
Nov 22 19:08:49 egwfw systemd[1]: ntfy.service: Failed with result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ The unit ntfy.service has entered the 'failed' state with result 'exit-code'.
Nov 22 19:08:49 egwfw systemd[1]: Failed to start ntfy server.
â–‘â–‘ Subject: A start job for unit ntfy.service has failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: http://www.ubuntu.com/support
â–‘â–‘
â–‘â–‘ A start job for unit ntfy.service has finished with a failure.
â–‘â–‘
â–‘â–‘ The job identifier is 40673 and the job result is failed.
I'm a very patient person, but I ask you to learn to do some work yourself. Read the error message, or ask ChatGPT to interpret what's wrong. It's quite obvious.
I'll close this ticket, as it is clearly not a ntfy bug. Happy Thanksgiving :turkey:
Greetings, I can't seem to get https working. Http works fine though. Below is my server.yml file. I have key.pem and cert.pm configured. I running kubuntu 23.10 and I'm using systemd to control the service. The config below works just fine with http. But if i comment the listen-http line and uncomment the next 3 lines, I get errors when I restart the service.