[GH-ISSUE #1418] Lost settings after update debian package. #998

Closed
opened 2026-05-07 00:29:27 +02:00 by BreizhHardware · 1 comment

Originally created by @matiasdelellis on GitHub (Aug 5, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1418

🐞 Describe the bug
When I updated to the latest package, it overwrote my existing configuration. I would have expected it to at least generate a backup of the file like other packages.

Perhaps since they're completely commented out, you could leave out these configuration files... Perhaps you can add them to /usr/share/ntfy os /usr/share/doc/ntfy as documentation/example?

Another option is to support files inside the /etc/ntfy/server.d/ folder like many services.

The same would happen with the client file. 🤔

💻 Components impacted
ntfy server

💡 Screenshots and/or logs

ecap@ecap:~$ sudo apt install ./ntfy_2.14.0_linux_amd64.deb 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Nota, seleccionando «ntfy» en lugar de «./ntfy_2.14.0_linux_amd64.deb»
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
  fonts-dejavu fonts-dejavu-extra fping galera-4 libcgi-fast-perl libcgi-pm-perl libclone-perl libconfig-inifiles-perl libdbi-perl libencode-locale-perl libevent-extra-2.1-7 libfcgi-bin
  libfcgi-perl libfcgi0ldbl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl liblzo2-2
  libopenipmi0 libregexp-ipv6-perl libsnmp-base libsnmp40 libssh-4 libtimedate-perl liburi-perl liburing2 libxslt1.1 musl pv rsync snmpd socat
Utilice «sudo apt autoremove» para eliminarlos.
Se actualizarán los siguientes paquetes:
  ntfy
1 actualizados, 0 nuevos se instalarán, 0 para eliminar y 14 no actualizados.
Se necesita descargar 0 B/27,8 MB de archivos.
Se utilizarán 1.008 kB de espacio de disco adicional después de esta operación.
Des:1 /home/ecap/ntfy_2.14.0_linux_amd64.deb ntfy amd64 2.14.0 [27,8 MB]
Leyendo lista de cambios... Hecho.
(Leyendo la base de datos ... 66216 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../ntfy_2.14.0_linux_amd64.deb ...
Desempaquetando ntfy (2.14.0) sobre (2.13.0) ...
Configurando ntfy (2.14.0) ...
Instalando una nueva versión del fichero de configuración /etc/ntfy/server.yml ...
....

🔮 Additional context

Nothing, I'm testing self-hosting... it works great... Thank you very much!

Originally created by @matiasdelellis on GitHub (Aug 5, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1418 :lady_beetle: **Describe the bug** When I updated to the latest package, it overwrote my existing configuration. I would have expected it to at least generate a backup of the file like other packages. Perhaps since they're completely commented out, you could leave out these configuration files... Perhaps you can add them to /usr/share/ntfy os /usr/share/doc/ntfy as documentation/example? Another option is to support files inside the /etc/ntfy/server.d/ folder like many services. The same would happen with the client file. 🤔 :computer: **Components impacted** ntfy server :bulb: **Screenshots and/or logs** ``` ecap@ecap:~$ sudo apt install ./ntfy_2.14.0_linux_amd64.deb Leyendo lista de paquetes... Hecho Creando árbol de dependencias... Hecho Leyendo la información de estado... Hecho Nota, seleccionando «ntfy» en lugar de «./ntfy_2.14.0_linux_amd64.deb» Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios. fonts-dejavu fonts-dejavu-extra fping galera-4 libcgi-fast-perl libcgi-pm-perl libclone-perl libconfig-inifiles-perl libdbi-perl libencode-locale-perl libevent-extra-2.1-7 libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl liblzo2-2 libopenipmi0 libregexp-ipv6-perl libsnmp-base libsnmp40 libssh-4 libtimedate-perl liburi-perl liburing2 libxslt1.1 musl pv rsync snmpd socat Utilice «sudo apt autoremove» para eliminarlos. Se actualizarán los siguientes paquetes: ntfy 1 actualizados, 0 nuevos se instalarán, 0 para eliminar y 14 no actualizados. Se necesita descargar 0 B/27,8 MB de archivos. Se utilizarán 1.008 kB de espacio de disco adicional después de esta operación. Des:1 /home/ecap/ntfy_2.14.0_linux_amd64.deb ntfy amd64 2.14.0 [27,8 MB] Leyendo lista de cambios... Hecho. (Leyendo la base de datos ... 66216 ficheros o directorios instalados actualmente.) Preparando para desempaquetar .../ntfy_2.14.0_linux_amd64.deb ... Desempaquetando ntfy (2.14.0) sobre (2.13.0) ... Configurando ntfy (2.14.0) ... Instalando una nueva versión del fichero de configuración /etc/ntfy/server.yml ... .... ``` :crystal_ball: **Additional context** Nothing, I'm testing self-hosting... it works great... Thank you very much!
BreizhHardware 2026-05-07 00:29:27 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@matiasdelellis commented on GitHub (Aug 5, 2025):

Sorry for the spam 😥 , the service was installed on another server 🙈, and when updating it requested intervention as expected. 😅

Get:1 /home/matias/ntfy_2.14.0_linux_amd64.deb ntfy amd64 2.14.0 [27.8 MB]
Reading changelogs... Done
(Reading database ... 55240 files and directories currently installed.)
Preparing to unpack .../ntfy_2.14.0_linux_amd64.deb ...
Unpacking ntfy (2.14.0) over (2.13.0) ...
Setting up ntfy (2.14.0) ...

Configuration file '/etc/ntfy/server.yml'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** server.yml (Y/I/N/O/D/Z) [default=N] ? D

Configuration file '/etc/ntfy/server.yml'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** server.yml (Y/I/N/O/D/Z) [default=N] ? N
Restarting ntfy.service ...
matias@services:~$ mcedit /etc/ntfy/server.yml
server.yml            server.yml.dpkg-dist  

Thanks again! 😬

<!-- gh-comment-id:3156818677 --> @matiasdelellis commented on GitHub (Aug 5, 2025): Sorry for the spam 😥 , the service was installed on another server 🙈, and when updating it requested intervention as expected. 😅 ``` Get:1 /home/matias/ntfy_2.14.0_linux_amd64.deb ntfy amd64 2.14.0 [27.8 MB] Reading changelogs... Done (Reading database ... 55240 files and directories currently installed.) Preparing to unpack .../ntfy_2.14.0_linux_amd64.deb ... Unpacking ntfy (2.14.0) over (2.13.0) ... Setting up ntfy (2.14.0) ... Configuration file '/etc/ntfy/server.yml' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** server.yml (Y/I/N/O/D/Z) [default=N] ? D Configuration file '/etc/ntfy/server.yml' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** server.yml (Y/I/N/O/D/Z) [default=N] ? N Restarting ntfy.service ... matias@services:~$ mcedit /etc/ntfy/server.yml server.yml server.yml.dpkg-dist ``` Thanks again! 😬
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#998
No description provided.