[QSonarr] [2.0.0.5338] Smart PVR for newsgroup and bittorrent users

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

You are welcome,

you can simply call me Stéphane ;)
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
usuario945898754
Know my way around
Posts: 138
Joined: Fri Aug 16, 2013 6:58 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by usuario945898754 »

Hi Stephane, sorry about posting on the wrong thread. Okay, I think I found why it's not updating and maybe you could add this to your qpkg, basically if you try to install the updated qpkg that you made, it will fail to update because there is a folder named NzbDrone.Update inside the .qpkg/QSonarr/NzbDrone folder. Deleting the NzbDrone.Update folder allowed Sonarr to update properly, so could you add on the script a function to check if the NzbDrone.Update folder is there and if yes, you will delete it. This is just during the installation of the qpkg. It doesn't matter if you uninstall because the folders with settings still stay on the NAS.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

okay i can do that on appliaction Start from QTS, if you want

let me know, if you fee it ok
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
usuario945898754
Know my way around
Posts: 138
Joined: Fri Aug 16, 2013 6:58 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by usuario945898754 »

I tested it here just now and after I deleted the folder the problem was gone. I think you could do start from qts as well, it would avoid problems in the future as well! Thanks Stephane!
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

usuario945898754 wrote:Hi Stephane, sorry about posting on the wrong thread. Okay, I think I found why it's not updating and maybe you could add this to your qpkg, basically if you try to install the updated qpkg that you made, it will fail to update because there is a folder named NzbDrone.Update inside the .qpkg/QSonarr/NzbDrone folder. Deleting the NzbDrone.Update folder allowed Sonarr to update properly, so could you add on the script a function to check if the NzbDrone.Update folder is there and if yes, you will delete it. This is just during the installation of the qpkg. It doesn't matter if you uninstall because the folders with settings still stay on the NAS.
http://www.positiv-it.fr/QNAP/APP/QSona ... 6.qpkg.zip should fix this issue

directory is removed each time you start NAS or Application

;)
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
usuario945898754
Know my way around
Posts: 138
Joined: Fri Aug 16, 2013 6:58 am

Re: [ QSonarr ] [ 1.150526 ] Smart PVR for newsgroup and bit

Post by usuario945898754 »

Hi again and thanks for making the change.

For some reason the workaround is not working anymore.

15-5-26 17:20:04.1|Info|UpdateApp|Starting Sonarr Update Client
15-5-26 17:20:04.1|Info|UpdateApp|Updating Sonarr to version 2.0.0.3176
15-5-26 17:20:04.2|Debug|UpdateApp|NzbDrone process ID: 9208
15-5-26 17:20:04.2|Debug|UpdateApp|Arguments:
15-5-26 17:20:04.2|Debug|UpdateApp| 9208
15-5-26 17:20:04.2|Debug|UpdateApp| /tmp/nzbdrone_update
15-5-26 17:20:04.2|Debug|UpdateApp| /share/CE_CACHEDEV1_DATA/.qpkg/QSonarr/NzbDrone/NzbDrone.exe
15-5-26 17:20:04.2|Debug|UpdateApp|Using executing application: /share/CE_CACHEDEV1_DATA/.qpkg/QSonarr/NzbDrone/NzbDrone.exe
15-5-26 17:20:04.2|Debug|UpdateApp|Executable location: /share/CE_CACHEDEV1_DATA/.qpkg/QSonarr/NzbDrone/NzbDrone.exe
15-5-26 17:20:04.2|Info|UpdateApp|Starting update process. Target Path:/share/CE_CACHEDEV1_DATA/.qpkg/QSonarr/NzbDrone
15-5-26 17:20:04.2|Info|InstallUpdateService|Verifying requirements before update...
15-5-26 17:20:04.2|Debug|ProcessProvider|Finding process with Id:9208
15-5-26 17:20:04.2|Warn|ProcessProvider|Unable to find process with ID 9208
15-5-26 17:20:04.2|Fatal|UpdateApp|An error has occurred while applying update package.

System.ArgumentException: Process with ID doesn't exist 9208
at NzbDrone.Update.UpdateEngine.InstallUpdateService.Verify (System.String targetFolder, Int32 processId) [0x000c3] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\InstallUpdateService.cs:72
at NzbDrone.Update.UpdateEngine.InstallUpdateService.Start (System.String installationFolder, Int32 processId) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\InstallUpdateService.cs:76
at NzbDrone.Update.UpdateApp.Start (System.String[] args) [0x00020] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:59
at NzbDrone.Update.UpdateApp.Main (System.String[] args) [0x00042] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:43


App finds the PID but when it goes to update it says that it cannot find it anymore even though the app is still running. Very weird. I don't understand why it works sometimes.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150526 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

That very strange

just experience it also with develop branch

see also some logs

15-5-26 18:30:35.5|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
15-5-26 18:30:35.5|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone

not sure what is internal mechanism used to stop process... if you have any clue
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
usuario945898754
Know my way around
Posts: 138
Joined: Fri Aug 16, 2013 6:58 am

Re: [ QSonarr ] [ 1.150526 ] Smart PVR for newsgroup and bit

Post by usuario945898754 »

I'd let you know definitely if I knew but I don't :( I don't know anything about linux, I just know how to use terminal to ssh and do basic commands. Could you perhaps go to the sonarr forums and collaborate with the devs directly? They are very helpful and experienced, I'm sure that they could help us and because you maintain the package you'd be able to explain how you did the qpkg.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150526 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

usuario945898754 wrote:I'd let you know definitely if I knew but I don't :( I don't know anything about linux, I just know how to use terminal to ssh and do basic commands. Could you perhaps go to the sonarr forums and collaborate with the devs directly? They are very helpful and experienced, I'm sure that they could help us and because you maintain the package you'd be able to explain how you did the qpkg.
found the bug, Sonarr is not 100% fully compatible with Mono 4.0.1, may be too recent

using Qmono 3.10 make sucessfully updated to 3182 ;)
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
usuario945898754
Know my way around
Posts: 138
Joined: Fri Aug 16, 2013 6:58 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by usuario945898754 »

Oh that's great that you found the problem. Did you log a bug report on the sonarr forums for their devs to update the app? If so I don't need to duplicate it. Thanks Stephane.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

yes i reported it in a thread on Sonarr Forum, not sure if there is others thread relating this issue
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
Afrosheen
Getting the hang of things
Posts: 90
Joined: Tue Dec 23, 2014 3:51 pm

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by Afrosheen »

Hi Stephane,

Thank you for making a QNAP package! This looks very nice! I'm wondering though if you could update to one of the latest nightly builds with rtorrent support? Here's the thread on it: https://forums.sonarr.tv/t/rtorrent-support/3644/7

Thanks!
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by QNAP_Stephane »

I think in your update parameter, you just have to add "develop" branch, to scan last dev release from Git and allow Qsonarr to see it and update it via it internal process

;)
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
Afrosheen
Getting the hang of things
Posts: 90
Joined: Tue Dec 23, 2014 3:51 pm

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by Afrosheen »

I've done that but it doesn't actually update. At the end of the update, Qsonarr says waiting for restart, but it never happens. I tried manually turning it off and back on again, but it remains at version 2.0.0.3154. Is there a step that I am missing?
usuario945898754
Know my way around
Posts: 138
Joined: Fri Aug 16, 2013 6:58 am

Re: [ QSonarr ] [ 1.150521 ] Smart PVR for newsgroup and bit

Post by usuario945898754 »

You have the same problem that I do.
Post Reply

Return to “Community Apps”