nzbgetcom / nzbget

Efficient usenet downloader
https://nzbget.com
GNU General Public License v2.0
349 stars 16 forks source link

Failure during update to 24.2 from 24.1 #372

Open Mukrosz opened 2 months ago

Mukrosz commented 2 months ago

Is there already an issue for your problem?

NZBGet Version

v24.2-stable

Platform

Linux/Docker

Environment

Device: Virtual VM
OS version: Ubuntu 22.04.4 64bit
Includes libs or tool that apply: NA
Running in Docker: No

Current Behavior

In the GUI I am offered to update from 24.1 to 24.2. Attempting to do so results in:

Executing update-script /usr/bin/install-update.sh
bash: /usr/bin/install-update.sh: No such file or directory

I checked the server and see no such file (install-update.sh) anywhere. Any pointers?

Expected Behavior

Expectation of a smooth 24.1 to 24.2 update via GUI

Steps To Reproduce

In Webgui > Settings > System > Update NZBGet > Check for Updates > Install 24.2

Logs

No relevant logs in /var/log/syslog

Extra information

No response

luckedea commented 2 months ago

Just did some testing on Ubuntu - looks to be working fine. @dnzbk please review.

dnzbk commented 2 months ago

Did you install NZBGet using the installer or did you build and install it manually?

For now, you can get install-update.sh and put it into /usr/bin/ to fix the issue.

Mukrosz commented 2 months ago

Thank you for your time @luckedea @dnzbk. Initially I tried using https://nzbget.com/download/nzbget-latest-bin-linux.run but that did not work (cannot remember the details) so I had to pull the .deb package from github:

wget https://github.com/nzbgetcom/nzbget/releases/download/v24.1/nzbget-24.1-amd64.deb
dpkg -i nzbget-24.1-amd64.deb

I placed the install-update.sh in /usr/bin and now when trying to update in the WebGUI, I get:

Executing update-script /usr/bin/install-update.sh
File "installer.cfg" is missing in the installation directory. Please reinstall NZBGet.

The only nzbget relevant directories I see are:

/var/lib/nzbget/
/usr/share/nzbget/

Based on the contents of the .sh file, it failed to establish the INSTALLERCFG variable: INSTALLERCFG=`cat "$NZBOP_APPDIR/installer.cfg" 2>/dev/null` if test "$INSTALLERCFG" = ""; then echo "[ERROR] File \"installer.cfg\" is missing in the installation directory. Please reinstall NZBGet." exit 1 fi

dnzbk commented 2 months ago

I see. This needs to be fixed for sure. Thank you for the report.