Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure during update to 24.2 from 24.1 #372

Closed
1 task done
Mukrosz opened this issue Aug 30, 2024 · 6 comments
Closed
1 task done

Failure during update to 24.2 from 24.1 #372

Mukrosz opened this issue Aug 30, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Mukrosz
Copy link

Mukrosz commented Aug 30, 2024

Is there already an issue for your problem?

  • I have checked older issues, open and closed

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

@Mukrosz Mukrosz added the bug Something isn't working label Aug 30, 2024
@luckedea
Copy link
Member

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

@dnzbk
Copy link
Collaborator

dnzbk commented Aug 30, 2024

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
Copy link
Author

Mukrosz commented Aug 30, 2024

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
Copy link
Collaborator

dnzbk commented Aug 31, 2024

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

@dnzbk dnzbk self-assigned this Aug 31, 2024
@colemar
Copy link

colemar commented Apr 4, 2025

Same problem updating from 24.5 to 24.8 on Ubuntu 24.04.2 LTS, altough I can't remember where I began with NZBGet.
So I decided to install the DEB repository as explained in https://nzbgetcom.github.io/
But I see even the deb package lacks the file /usr/bin/install-update.sh:

# apt info nzbget
Package: nzbget
Version: 24.8
Priority: optional
Section: net
Maintainer: nzbget.com <[email protected]>
Installed-Size: unknown
Depends: adduser, init-system-helpers, systemd
Recommends: python3, 7zip, unrar
Homepage: https://nzbget.com
Download-Size: 6,880 kB
APT-Sources: https://nzbgetcom.github.io/deb stable/main all Packages
Description: Command-line based binary newsgrabber for nzb files, written in C++
 NZBGet is a command-line based binary newsgrabber for nzb files,
 written in C++.
 It supports client/server mode, automatic par-check/-repair,
 unpack and web-interface. NZBGet requires low system resources.

# apt-file list nzbget
nzbget: /usr/bin/nzbget
nzbget: /usr/share/doc/nzbget/COPYING.gz
nzbget: /usr/share/doc/nzbget/README.Debian
nzbget: /usr/share/doc/nzbget/README.gz
nzbget: /usr/share/doc/nzbget/changelog.Debian.gz
nzbget: /usr/share/doc/nzbget/copyright
nzbget: /usr/share/doc/nzbget/examples/nzbget.conf
nzbget: /usr/share/doc/nzbget/examples/nzbget.systemd
nzbget: /usr/share/man/man1/nzbget.1.gz
nzbget: /usr/share/nzbget/nzbget.conf
nzbget: /usr/share/nzbget/scripts/EMail.py
nzbget: /usr/share/nzbget/scripts/Logger.py
nzbget: /usr/share/nzbget/webui/config.js
nzbget: /usr/share/nzbget/webui/downloads.js
nzbget: /usr/share/nzbget/webui/edit.js
nzbget: /usr/share/nzbget/webui/fasttable.js
nzbget: /usr/share/nzbget/webui/feed.js
nzbget: /usr/share/nzbget/webui/history.js
nzbget: /usr/share/nzbget/webui/img/download-anim-green-2x.png
nzbget: /usr/share/nzbget/webui/img/download-anim-orange-2x.png
nzbget: /usr/share/nzbget/webui/img/favicon-256x256-opaque.png
nzbget: /usr/share/nzbget/webui/img/favicon-256x256.png
nzbget: /usr/share/nzbget/webui/img/favicon.ico
nzbget: /usr/share/nzbget/webui/img/icons-2x.png
nzbget: /usr/share/nzbget/webui/img/icons.png
nzbget: /usr/share/nzbget/webui/img/transmit-file.gif
nzbget: /usr/share/nzbget/webui/img/transmit-reload-2x.gif
nzbget: /usr/share/nzbget/webui/img/transmit.gif
nzbget: /usr/share/nzbget/webui/index.html
nzbget: /usr/share/nzbget/webui/index.js
nzbget: /usr/share/nzbget/webui/lib/bootstrap.css
nzbget: /usr/share/nzbget/webui/lib/bootstrap.js
nzbget: /usr/share/nzbget/webui/lib/bootstrap.min.js
nzbget: /usr/share/nzbget/webui/lib/elycharts.js
nzbget: /usr/share/nzbget/webui/lib/elycharts.min.js
nzbget: /usr/share/nzbget/webui/lib/jquery.js
nzbget: /usr/share/nzbget/webui/lib/jquery.min.js
nzbget: /usr/share/nzbget/webui/lib/raphael.min.js
nzbget: /usr/share/nzbget/webui/messages.js
nzbget: /usr/share/nzbget/webui/status.js
nzbget: /usr/share/nzbget/webui/style.css
nzbget: /usr/share/nzbget/webui/upload.js
nzbget: /usr/share/nzbget/webui/util.js

Therefore I assume the next internal update will fail as well.

@phnzb
Copy link
Collaborator

phnzb commented Apr 9, 2025

Internal updater can only be used for NZBGet setups using official NZBGet installer on Linux / Android / FreeBSD and Windows (this includes Synology (SynoCommunity) and ASUSTOR packages).
For other installation methods the internal updater is not available, but other update methods work:

Docker: when using latest or testing tags - docker pull / docker compose pull and restart container.
Linux packages: for release versions installed from the nzbgetcom repository - update via package manager (apt / yum / dnf).

Other platforms and installation methods - only manual download and installation of new version (including testing versions of rpm/deb packages)

Closing the issue as resolved.

@phnzb phnzb closed this as completed Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants