[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
servrpro
New here
Posts: 7
Joined: Mon Oct 29, 2012 9:22 pm

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

Post by servrpro » Fri May 22, 2015 9:24 pm

That was quick! Thanks, QNAP_Stephane.
servrpro
QNAP TS-412, TS-651 and TS-1277

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

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

Post by QNAP_Stephane » Fri May 22, 2015 9:43 pm

You are welcome,

you can simply call me Stéphane ;)
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

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 » Tue May 26, 2015 12:31 am

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: 3796
Joined: Wed Mar 27, 2013 1:00 am

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

Post by QNAP_Stephane » Tue May 26, 2015 12:50 am

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

let me know, if you fee it ok
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

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 » Tue May 26, 2015 3:32 am

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!

ziptbm
Starting out
Posts: 30
Joined: Mon Mar 09, 2015 12:41 pm

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

Post by ziptbm » Tue May 26, 2015 1:23 pm

killer8 wrote:I never got SSL working through mono/sonarr but it works fine when using a reverse proxy through qnap apache. My sonarr runs fine over https for some months now.


Any tips for setting it up this way? I can't get SSL to work either...not as familiar with Linux, so I'm still learning.

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

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

Post by QNAP_Stephane » Wed May 27, 2015 12:15 am

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

;)
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

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 » Wed May 27, 2015 12:22 am

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: 3796
Joined: Wed Mar 27, 2013 1:00 am

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

Post by QNAP_Stephane » Wed May 27, 2015 12:34 am

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
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

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 » Wed May 27, 2015 5:39 am

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: 3796
Joined: Wed Mar 27, 2013 1:00 am

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

Post by QNAP_Stephane » Thu May 28, 2015 12:58 am

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 ;)
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

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 » Thu May 28, 2015 10:19 pm

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: 3796
Joined: Wed Mar 27, 2013 1:00 am

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

Post by QNAP_Stephane » Thu May 28, 2015 10:26 pm

yes i reported it in a thread on Sonarr Forum, not sure if there is others thread relating this issue
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

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

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

Post by Afrosheen » Sat May 30, 2015 12:36 pm

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: 3796
Joined: Wed Mar 27, 2013 1:00 am

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

Post by QNAP_Stephane » Sat May 30, 2015 2:39 pm

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

;)
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

Post Reply

Return to “Community Apps”