SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.03k stars 1.23k forks source link

NZBGet 20211221-28 DSM 6.2.3-25426 package wont start after upgrade from previous version #5079

Open sojab0on opened 2 years ago

sojab0on commented 2 years ago

Is this a new Bug?

Package Name

NZBGet 20211221-28

Package Version

20211221-28

Device Model

DS3617xs

Device Architecture

x86_64

Firmware Version

DSM 6.2.3-25426

What happened?

After NZBGet stated there was an update i let it do it , after the upgrade the webinterface stayed down and the package would not start again.

Reproduction steps

1. Upgrade from any version before 20211221-28 to that version oon DSM 6.2.3-25426
2. try to start package after upgrade it fails 
3. remove package rebooted nas and reinstalled rebooted again still package wont start
...

Install Log

021/02/10 20:57:16     install nzbget 20200806-26 Begin preinst
2021/02/10 20:57:17     install nzbget 20200806-26 End preinst ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /volume1/@>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /volume1/@ap>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@t>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packa>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/package>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mkdir -p /var/pac>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mkdir -p /var/packa>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@t>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packa>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/package>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@t>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packa>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/package>
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@t>
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp

Service Log

Sat Jan 15 10:44:37 CET 2022
Starting nzbget command /volume1/@appstore/nzbget/bin/nzbget -c /volume1/@appst>
/var/packages/nzbget/scripts/start-stop-status: line 72: /volume1/@appstore/nzb>
nzbget is not running

Other Logs

2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /volume1/@appstore/nzbget
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /volume1/@appstore/nzbget ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/nzbget
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/nzbget ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packages/nzbget
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/packages/nzbget ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mkdir -p /var/packages/nzbget
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mkdir -p /var/packages/nzbget ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/nzbget/INFO
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/nzbget/INFO ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packages/nzbget/scripts
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/packages/nzbget/scripts ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/nzbget/scripts
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/nzbget/scripts ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packages/nzbget/WIZARD_UIFILES
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/packages/nzbget/WIZARD_UIFILES ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/nzbget/WIZARD_UIFILES
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/nzbget/WIZARD_UIFILES ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/rm -rf /var/packages/nzbget/conf
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/rm -rf /var/packages/nzbget/conf ret=[0]
2021/02/10 20:57:17     install nzbget 20200806-26 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/nzbget/conf
2021/02/10 20:57:17     install nzbget 20200806-26 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/nzbget/conf ret=[0]
2021/02/10 20:57:20     install nzbget 20200806-26 Begin postinst
2021/02/10 20:57:30     install nzbget 20200806-26 End postinst ret=[0]
2021/02/10 20:57:30     install nzbget 20200806-26 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2021/02/10 20:57:30     install nzbget 20200806-26 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2021/02/10 20:57:30     install nzbget 20200806-26 successfully
2021/02/10 20:57:30     install nzbget: begin to start version 20200806-26
2021/02/10 20:57:31     install nzbget 20200806-26 Begin pre-load apparmor
2021/02/10 20:57:31     install nzbget 20200806-26 End pre-load apparmor ret=[0]
2021/02/10 20:57:32     install nzbget 20200806-26 Begin start-stop-status start
2021/02/10 20:57:32     install nzbget 20200806-26 End start-stop-status start ret=[0]
2021/02/10 20:57:33     install nzbget: start version 20200806-26 successfully, result 0
synofan commented 2 years ago

Had the same problem, reinstalled en restored settings from backup, works.

sojab0on commented 2 years ago

Reinstalled NZBGet multiple times i am not reinstalling the full nas, that takes way to long to set every thing up again.

synofan commented 2 years ago

OhOh i think i see the miscommunication here, i made the upgrade to DSM 7 and afterwards NZBget refused to work after the upgrade, then i reinstalled NZBget and reloaded the backup settings of NZBget, then it worked for me. Running on a DS1621+. I guess we did not have the same problem. Sorry

Rolands71 commented 2 years ago

I have the same issue. I was ask to updade NZBget but the update failed. I tried it several times, and also deinstalled and reinstalled it again, but still the same issue.

I use DSM 6.2.4-25556 Update 3.

Please help.

hgy59 commented 2 years ago

It is not possible to help without an error log from nzbget.

synofan commented 2 years ago

Probably a dumb question, but why : 2021/02/10 20:57:30 install nzbget: begin to start version 20200806-26 Have you tried 20210607-27 manually?

sojab0on commented 2 years ago

Issue for me is that de NAS is running on an ESXI server the box same model i had physical but that had broken outside warenty and did not feel to shell out the money for a new one, so i gone with the virtual route so i could use the drive from the box and get to all the data on them.

I tried to check all the logs i had and pasted mine earlier in hte bug report

And yes i tried to find older versions, then the one i steated in the report, that was the last one that worked before it gone updating to the version for dsm7 Issue is that even the manual spk version will ask for witch version to download durinng install so my gues is its downloading the newest version during install

I also noticed that the SPK version all are vor 6.1 my box was on 6.2.4-25556 vm is running on 6.2.3-25426 mainly due to the bootloader needed for it to run doesn work with 6.2.4

Rolands71 commented 2 years ago

Hi I found a solution which was working on my side. So want to share it, maybe it will be helpful for someone else.

I found the logfile for nzbget under -> /var/log/packages -> nzbget.log (I used ssh access to my synology) I was not able to identify the root cause for the failed update. So I deinstalled nzbget via the package center. Then I selected nzbget in package manager and clicked on install -> select stable version -> make NO changed to the Volume and download directory (this is important, I change the patch later) then the installation was successful. afterwards I accessed nzbget webinterface , select settings and setup the download directory and news-server account. It is working fine now.

The issue on my side was, that the download directory I entered during the installation process was reported false, regardless what I typed in. The same settings made via Webinterface later worked just fine. -> this issue was logged as error in the nzbget.log file. -> is it was helpful to checkout the logfile.

Bye Roland

sojab0on commented 2 years ago

These where not my issues, it had run fine until itupgraded to version -28 i tried all older ones for X86-64 but all install fine and wont start.

sojab0on commented 2 years ago

checked logs again it constantly shows start nzbget: begin to start version 20211221-28 2022/01/23 20:24:53 start nzbget 20211221-28 Begin pre-load apparmor 2022/01/23 20:24:53 start nzbget 20211221-28 End pre-load apparmor ret=[0] 2022/01/23 20:24:53 start nzbget 20211221-28 Begin start-stop-status start

what dependencies are needed nzbget I have fixed other packages by reinstalling depenencies like webstation php and python or mono is there a specific package needed for nzbget to run properly

awayand commented 2 years ago

the binary file /volume1/@appstore/nzbget/bin/nzbget is missing. I downloaded the most current, and all older versions of NZBGet, and in all packages the bin/nzbget file is simply missing. It looks like the nzbget file is not included in the packages and therefore is not installed on the synology

sojab0on commented 2 years ago

Dsm is build on linux so if we find the binary and place it there maybe it works

awayand commented 2 years ago

This is very odd why would older packaged versions not contain the binary? Seems deceitful to me. Or I am not understanding something but take a look yourselves, the archive has the folder structure and helper binaries, just not the actual nzbget one...

On Sat Jan 29 (22), 4:30PM, sojab0on @.***> wrote:

Dsm is build on linux so if we find the binary and place it there maybe it works

— Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/5079#issuecomment-1024856501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKDQN5IHDBKN5CHDAPKDW3UYOJPVANCNFSM5MAZUNCA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

sojab0on commented 2 years ago

Maybe but newest version has starting issue as well so can be the binary is in none of the spks We need to find out witch linux its based on my gues is debian or arch with a current kernel.

But that is info someone other would have

hgy59 commented 2 years ago

the binary file /volume1/@appstore/nzbget/bin/nzbget is missing. I downloaded the most current, and all older versions of NZBGet, and in all packages the bin/nzbget file is simply missing. It looks like the nzbget file is not included in the packages and therefore is not installed on the synology

The nzbget binary is not contained in the synocommunity package (spk), it is downloaded at installation time. you can see the installation commands in service-setup.sh.

sojab0on commented 2 years ago

Wget cant download the run file due to certificate errors HSTS on the nzbget server maybe that is the issue it fails for the time beeing please add --no-check-certificate to the webget in the service-setup.sh so it can download the run file and finisch the install correctly

I managed to fix the package with running wget with that no check and installing it with the run file manually afterwards let in run as deamon package center will not detect it running but nzbget is again reachable on port 6789 of my nas