Can we get Sonarr packaged?

Status
Not open for further replies.
Joined
Sep 23, 2013
Messages
24
Updating the Sonarr through the GUI seems to reset everything. I get the "You must be new around here, You should add some series." I suspect it has something to do with this from the Update logs :
15-3-25 01:58:42.0|Info|AppFolderInfo|Data directory is being overridden to [/var/db/sonarr]

whereas normally a plugin's data would be in /usr/pbi/[plugin-arch] correct?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Updating the Sonarr through the GUI seems to reset everything. I get the "You must be new around here, You should add some series." I suspect it has something to do with this from the Update logs :
15-3-25 01:58:42.0|Info|AppFolderInfo|Data directory is being overridden to [/var/db/sonarr]

whereas normally a plugin's data would be in /usr/pbi/[plugin-arch] correct?
The plugin source files are in /usr/pbi/plugin-arch, but the data-directory/meta-data is usually in /var/db/plugin

This looks like a Sonarr specific problem. I tested updates before that didn't overwrite that directory. NOt sure why it overwrote it for you?
 
Joined
Sep 23, 2013
Messages
24
Yeah i'm not sure either. Did it twice now though. I'll see if I can figure it out, although trying to restore the backup config.xml and nzbdrone.db to /var/db/sonarr made no difference. I noticed that there is another set in /var/db/sonarr/NzbDrone.

Code:
root@sonarr_1:/var/db/sonarr # diff config.xml NzbDrone/config.xml
8,10c8,10
<   <ApiKey>6f5e4dc7b90c419eab14e8710315ca01</ApiKey>
<   <LogLevel>Debug</LogLevel>
<   <AuthenticationEnabled>False</AuthenticationEnabled>
---
>   <ApiKey>a804782656f64dec899aaa99611a51ef</ApiKey>
>   <AuthenticationMethod>None</AuthenticationMethod>
>   <LogLevel>Info</LogLevel>
13,16d12
<   <Username>
<   </Username>
<   <Password>
<   </Password>


Since the UI says I'm back at Info level of debug I'm guessing that it's now using the files in the NzbDrone directory. Although replacing those with the backups seems to have completely broken the setup. i.e. stopped sonarr from freeness gui; replaced config.xml and nzbdrone.db inside /var/db/sonarr/NzbDrone directory; now entire plugin won't start. Last /var/log/messages says:

Mar 25 11:28:12 sonarr_1 totally: /usr/sbin/service: WARNING: $svnserve_enable is not set properly - see rc.conf(5).
Mar 25 11:28:12 sonarr_1 totally: /usr/sbin/service: WARNING: $pbid_enable is not set properly - see rc.conf(5).

i'm going to blow it away and start from scratch, maybe take closer notes :)
 

Triumph

Dabbler
Joined
May 14, 2014
Messages
12
I realize this is an old thread, but I restored the configs to /var/db/sonarr and did a chmod on the .db file, and then did a shutdown of sonarr. Started backup from within FreeNas on the plugin page, and it's working fine, just in-case anyone else runs into this issue. Would be nice if they just made an import backup feature in sonarr though.
 

naq90

Dabbler
Joined
Jun 7, 2015
Messages
24
What permissions did you set for the .db file? 755? I'm having the same issue.


Sent from my iPhone using Tapatalk
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
What permissions did you set for the .db file? 755? I'm having the same issue.


Sent from my iPhone using Tapatalk
I don't use sonarr but my suggestion is not to chmod the files. just leave them as is and chown them to the 'media' user.
 

Radalict

Cadet
Joined
Aug 22, 2014
Messages
8
I don't use sonarr but my suggestion is not to chmod the files. just leave them as is and chown them to the 'media' user.
Excuse my ignorance, but how do I do that? I'm not very good with all this technical stuff. But I'm having issues with Sonarr, and I have to try and reboot my FreeNAS, restart the jail and restart Sonarr multiple times to try and access it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Excuse my ignorance, but how do I do that? I'm not very good with all this technical stuff. But I'm having issues with Sonarr, and I have to try and reboot my FreeNAS, restart the jail and restart Sonarr multiple times to try and access it.
Unless permissions are an issue, changing the ownership of the files won't fix instability.

Is sonarr starting or not? If not, what do you get when you run "service sonarr onestart" in the jail. If so I suggest you debug this on the sonarr forum, read and post your logs in /var/db/sonarr.
 

Radalict

Cadet
Joined
Aug 22, 2014
Messages
8
Unless permissions are an issue, changing the ownership of the files won't fix instability.

Is sonarr starting or not? If not, what do you get when you run "service sonarr onestart" in the jail. If so I suggest you debug this on the sonarr forum, read and post your logs in /var/db/sonarr.
It starts, and runs for a while but seems to always end up crashing again after a period of time. I asked for help on the Sonarr forums a while back and they said it's an issue with mono. But that just confused me more :(
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
It starts, and runs for a while but seems to always end up crashing again after a period of time. I asked for help on the Sonarr forums a while back and they said it's an issue with mono. But that just confused me more :(
I suggest you stop sonarr, delete your log files, start sonarr and wait/force it to crash. then post your log files so I can read the error.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think this is the correct one.
When did it crash, maybe we can track down what sonarr was doing? Also maybe there's a mono log which would be more helpful (but I'm not sure).

Finally can you you link where the sonarr guys said it was an issue with mono? And did they have a proposed solution?
 

Radalict

Cadet
Joined
Aug 22, 2014
Messages
8
When did it crash, maybe we can track down what sonarr was doing? Also maybe there's a mono log which would be more helpful (but I'm not sure).

Finally can you you link where the sonarr guys said it was an issue with mono? And did they have a proposed solution?
https://forums.sonarr.tv/t/sonarr-crashing-turning-off-when-handling-too-many-downloads-at-once/7358

As I said - not very good at this. So I appreciate your help. Also props on the awesome plugins!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
https://forums.sonarr.tv/t/sonarr-crashing-turning-off-when-handling-too-many-downloads-at-once/7358

As I said - not very good at this. So I appreciate your help. Also props on the awesome plugins!
as I asked earlier, when did sonarr crash? I said earlier to clear the log, since you didn't there's alot to work through.

From that thread they want you to produce the mono log. I think you could do that by editing the "command_args" line in /usr/local/etc/rc.d/sonarr. We need to remove the "-f" argument, and redirect the output to a file. Something like this would probably work.
Code:
command_args="${procname} /usr/pbi/sonarr-amd64/share/sonarr/NzbDrone/NzbDrone.exe --data=${sonarr_data_dir} --nobrowser > /var/db/sonarr/mono.log"
 

iDragon

Cadet
Joined
Dec 10, 2015
Messages
6
Is there any easy way to manually update version of mono being used by the sonarr plugin? From my research it seems it's using an old release that's known to be buggy with sonarr, and needs updating to a 4.x release ideally to help stability.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Is there any easy way to manually update version of mono being used by the sonarr plugin? From my research it seems it's using an old release that's known to be buggy with sonarr, and needs updating to a 4.x release ideally to help stability.
you could 'pkg install mono' and edit /usr/local/etc/rc.d/sonarr to point to the new path.

when I have a chance I can update the mono being shipped.
 

iDragon

Cadet
Joined
Dec 10, 2015
Messages
6
you could 'pkg install mono' and edit /usr/local/etc/rc.d/sonarr to point to the new path.

when I have a chance I can update the mono being shipped.

Ah, thanks, I'd already managed to install mono on the base jail, but wasn't sure how to get sonarr running on it, that seems to have done the trick, hopefully stability will improve now!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ah, thanks, I'd already managed to install mono on the base jail, but wasn't sure how to get sonarr running on it, that seems to have done the trick, hopefully stability will improve now!
great, tell me if this does fix it and I can try updating the plugin.
 
Status
Not open for further replies.
Top