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

Sonarr lost its config and database and the service won't start anymore (DSM 7) #4895

Closed
NMe84 opened this issue Oct 4, 2021 · 15 comments
Closed

Comments

@NMe84
Copy link

NMe84 commented Oct 4, 2021

Setup

Package Name: Sonarr
Package Version: 20210717-19

NAS Model: DS1819+
NAS Architecture: Atom C3538 (Denverton)
DSM version: 7.0-41890

Expected behavior

Sonarr should run and maintain its config.

Actual behavior

Sonarr lost its entire config folder (and probably more that I can't really tell).

Steps to reproduce

I have no idea, it just happened. I'll include the relevant logging I could find below but none of it seems very helpful.

Package log

2021/09/28 17:51:04     upgrade nzbdrone 20210717-19 Begin postinst
2021/09/28 17:51:04     ===> Step postinst. USER=sc-nzbdrone GROUP=sc-download SHARE_PATH=
2021/09/28 17:51:04     Begin service_postinst
2021/09/28 17:51:04     Notice: set_unix_permissions() is no longer required on DSM7.
2021/09/28 17:51:04     End service_postinst
2021/09/28 17:51:04     upgrade nzbdrone 20210717-19 End postinst ret=[0]
2021/09/28 17:51:04     upgrade nzbdrone 20210717-19 Begin postupgrade
2021/09/28 17:51:04     ===> Step postupgrade. USER=sc-nzbdrone GROUP=sc-download SHARE_PATH=
2021/09/28 17:51:04     Begin service_postupgrade
2021/09/28 17:51:04     Restoring Sonarr version from before upgrade
2021/09/28 17:51:04     Notice: set_unix_permissions() is no longer required on DSM7.
2021/09/28 17:51:04     Notice: set_unix_permissions() is no longer required on DSM7.
2021/09/28 17:51:04     End service_postupgrade
2021/09/28 17:51:04     upgrade nzbdrone 20210717-19 End postupgrade ret=[0]
2021/09/28 17:51:05     upgrade nzbdrone 20210717-19 Begin start-stop-status start
2021/09/28 17:51:10     upgrade nzbdrone 20210717-19 End start-stop-status start ret=[0]
2021/10/04 03:10:27     start nzbdrone 20210717-19 Begin start-stop-status stop
2021/10/04 03:10:27     start nzbdrone 20210717-19 End start-stop-status stop ret=[0]
2021/10/04 03:10:29     start nzbdrone 20210717-19 Begin start-stop-status start
2021/10/04 03:10:33     start nzbdrone 20210717-19 End start-stop-status start ret=[0]
2021/10/04 03:10:43     start nzbdrone 20210717-19 Begin start-stop-status stop
2021/10/04 03:10:43     start nzbdrone 20210717-19 End start-stop-status stop ret=[0]

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

2021/10/04 03:10:27 start nzbdrone: begin to stop due to abnormal status
2021/10/04 03:10:27 start nzbdrone: begin to stop version 20210717-19
2021/10/04 03:10:27 start nzbdrone 20210717-19 Begin start-stop-status stop
2021/10/04 03:10:27 start nzbdrone 20210717-19 End start-stop-status stop ret=[0]
2021/10/04 03:10:27 Release port-config for nzbdrone when 0x0008 (ready)
2021/10/04 03:10:27 Release port-config for nzbdrone when 0x0008 (done)
2021/10/04 03:10:29 start nzbdrone: stop version 20210717-19 successfully, result 0
2021/10/04 03:10:29 start nzbdrone: begin to start version 20210717-19
2021/10/04 03:10:29 Acquire port-config for nzbdrone when 0x0008 (ready)
2021/10/04 03:10:29 Acquire port-config for nzbdrone when 0x0008 (done)
2021/10/04 03:10:29 start nzbdrone 20210717-19 Begin start-stop-status start
2021/10/04 03:10:33 start nzbdrone 20210717-19 End start-stop-status start ret=[0]
2021/10/04 03:10:35 start nzbdrone: start version 20210717-19 successfully, result 0
2021/10/04 03:10:43 start nzbdrone: begin to stop due to abnormal status
2021/10/04 03:10:43 start nzbdrone: begin to stop version 20210717-19
2021/10/04 03:10:43 start nzbdrone 20210717-19 Begin start-stop-status stop
2021/10/04 03:10:43 start nzbdrone 20210717-19 End start-stop-status stop ret=[0]
2021/10/04 03:10:43 Release port-config for nzbdrone when 0x0008 (ready)
2021/10/04 03:10:43 Release port-config for nzbdrone when 0x0008 (done)
2021/10/04 03:10:45 start nzbdrone: stop version 20210717-19 successfully, result 0
2021/10/04 03:10:45 start nzbdrone: begin to start version 20210717-19
2021/10/04 03:10:45 Acquire port-config for nzbdrone when 0x0008 (ready)
2021/10/04 03:10:45 Acquire port-config for nzbdrone when 0x0008 (done)
2021/10/04 03:10:45 start nzbdrone 20210717-19 Begin start-stop-status start
2021/10/04 03:10:49 start nzbdrone 20210717-19 End start-stop-status start ret=[0]
2021/10/04 03:10:51 start nzbdrone: start version 20210717-19 successfully, result 0
2021-10-04T03:18:38+02:00 Tyrion synopkg[26804]: pkgtool.cpp:2362 Package nzbdrone stops but service pkgctl-nzbdrone.service start, ret=[3]

What happened

I upgraded to DSM7 earlier this week and upgraded my SynoCommunity packages as well. SABnzbd and Radarr immediately lost their config and needed to be set up from scratch but thankfully Sonarr and Transmission worked fine, until just now. Sonarr suddenly crashed about 20 minutes ago and want start again when I tried to run it, neither from the package center nor from the command line using sudo synopkg start nzbdrone. With the latter I get the following message and then nothing else happens:

{"action":"prepare","error":{"code":0},"stage":"prepare","success":true}

I attempted to look up what was happening in the package's own log file which should be located in /volume1/@appstore/nzbdrone/.config/Sonarr but I was shocked to find that the entire /volume1/@appstore/nzbdrone/.config/ folder is gone. /volume1/@appstore/nzbdrone/ does exist, but it seems to be lacking a lot of data. I'll put a listing of the entire folder structure below so maybe you can determine what went missing. As far as I can tell my entire config is gone, as well as my entire database of series and episodes. I'm not sure if anything else is missing.

I was not actively using the NAS or Sonarr itself as this was happening. The NAS didn't reboot either, nor do I have anything scheduled around this time that would explain the package shutting down. Additionally the software had been running without issue for 5-6 days around the time it stopped functioning.

At this point I think I'm pretty much screwed when it comes to recovering my data but I would like for whatever caused this to not happen again after I set everything up again, so hopefully this helps you track down what happened.

# ls -Ral /volume1/@appstore/nzbdrone
/volume1/@appstore/nzbdrone:
total 0
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  28 Sep 28 17:51 .
drwxr-xr-x 1 root        root        672 Sep 30 02:35 ..
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  46 Jul 17 02:19 app
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  70 Jul 17 02:19 bin
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 528 Jul 17 02:19 lib
drwxr-xr-x 1 sc-nzbdrone nzbdrone     12 Apr 13  2020 share

/volume1/@appstore/nzbdrone/app:
total 8
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  46 Jul 17 02:19 .
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  28 Sep 28 17:51 ..
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 602 Jul 17 02:33 config
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 212 Jul 17 02:19 images
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone  80 Jul 17 02:33 nzbdrone.sc

/volume1/@appstore/nzbdrone/app/images:
total 40
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  212 Jul 17 02:19 .
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone   46 Jul 17 02:19 ..
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone  946 Jul 17 02:19 nzbdrone-16.png
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 1463 Jul 17 02:19 nzbdrone-24.png
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 7996 Jul 17 02:19 nzbdrone-256.png
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 2146 Jul 17 02:19 nzbdrone-32.png
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 3889 Jul 17 02:19 nzbdrone-48.png
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 6034 Jul 17 02:19 nzbdrone-64.png
-rw-r--r-- 1 sc-nzbdrone sc-nzbdrone 7142 Jul 17 02:19 nzbdrone-72.png

/volume1/@appstore/nzbdrone/bin:
total 2592
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone      70 Jul 17 02:19 .
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone      28 Sep 28 17:51 ..
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone    6213 Jul 17 02:16 c_rehash
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  170936 Jul 17 02:19 curl
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone   88824 Jul 17 02:19 mediainfo
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  739920 Jul 17 02:19 openssl
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 1642208 Jul 17 02:19 sqlite3

/volume1/@appstore/nzbdrone/lib:
total 14236
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone     528 Jul 17 02:19 .
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone      28 Sep 28 17:51 ..
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone      50 Jul 17 02:19 engines-1.1
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      16 Jul 17 02:16 libcrypto.so -> libcrypto.so.1.1
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 3383264 Jul 17 02:19 libcrypto.so.1.1
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      16 Jul 17 02:17 libcurl.so -> libcurl.so.4.7.0
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      16 Jul 17 02:17 libcurl.so.4 -> libcurl.so.4.7.0
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  524376 Jul 17 02:19 libcurl.so.4.7.0
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      21 Jul 17 02:19 libmediainfo.so -> libmediainfo.so.0.0.0
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      21 Jul 17 02:19 libmediainfo.so.0 -> libmediainfo.so.0.0.0
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 8047528 Jul 17 02:19 libmediainfo.so.0.0.0
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      19 Jul 17 02:19 libsqlite3.so -> libsqlite3.so.0.8.6
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      19 Jul 17 02:19 libsqlite3.so.0 -> libsqlite3.so.0.8.6
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 1417944 Jul 17 02:19 libsqlite3.so.0.8.6
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      13 Jul 17 02:16 libssl.so -> libssl.so.1.1
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  720288 Jul 17 02:19 libssl.so.1.1
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      15 Jul 17 02:17 libzen.so -> libzen.so.0.0.0
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      15 Jul 17 02:17 libzen.so.0 -> libzen.so.0.0.0
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  300048 Jul 17 02:19 libzen.so.0.0.0
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      14 Jul 17 02:16 libz.so -> libz.so.1.2.11
lrwxrwxrwx 1 sc-nzbdrone sc-nzbdrone      14 Jul 17 02:16 libz.so.1 -> libz.so.1.2.11
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  121160 Jul 17 02:19 libz.so.1.2.11

/volume1/@appstore/nzbdrone/lib/engines-1.1:
total 52
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone    50 Jul 17 02:19 .
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone   528 Jul 17 02:19 ..
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 19232 Jul 17 02:19 afalg.so
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone  5904 Jul 17 02:19 capi.so
-rwxr-xr-x 1 sc-nzbdrone sc-nzbdrone 22776 Jul 17 02:19 padlock.so

/volume1/@appstore/nzbdrone/share:
total 0
drwxr-xr-x 1 sc-nzbdrone nzbdrone      12 Apr 13  2020 .
drwxr-xr-x 1 sc-nzbdrone sc-nzbdrone   28 Sep 28 17:51 ..
drwxr-xr-x 1 sc-nzbdrone nzbdrone    8772 Oct  3 23:58 Sonarr

/volume1/@appstore/nzbdrone/share/Sonarr:
total 19676
drwxr-xr-x 1 sc-nzbdrone nzbdrone    8772 Oct  3 23:58 .
drwxr-xr-x 1 sc-nzbdrone nzbdrone      12 Apr 13  2020 ..
-rw-r--r-- 1 sc-nzbdrone nzbdrone  729088 Jun  6  2020 0Harmony.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   23040 Mar 31  2020 antlr.runtime.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone 2903600 Jan 14  2021 BouncyCastle.Crypto.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  122880 Mar 31  2020 CookComputing.XmlRpcV2.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  108544 Mar 31  2020 FluentMigrator.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  258048 Mar 31  2020 FluentMigrator.Runner.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  323584 Mar 31  2020 FluentValidation.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   19968 Mar 31  2020 Ical.Net.Collections.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  174080 Mar 31  2020 Ical.Net.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  198656 Mar 31  2020 ICSharpCode.SharpZipLib.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   14336 Aug 31 05:23 LogentriesCore.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    3676 Aug 31 05:23 LogentriesCore.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   31232 Aug 31 05:23 LogentriesNLog.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   12486 Aug 31 05:23 LogentriesNLog.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone  828416 Jan 14  2021 MailKit.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  107008 Aug 31 05:23 Marr.Data.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   56322 Aug 31 05:23 Marr.Data.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone  354032 Mar 31  2020 Microsoft.AspNet.SignalR.Core.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   23280 Mar 31  2020 Microsoft.AspNet.SignalR.SystemWeb.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  158904 Mar 31  2020 Microsoft.Owin.Diagnostics.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  101560 Mar 31  2020 Microsoft.Owin.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   88248 Mar 31  2020 Microsoft.Owin.Host.HttpListener.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   64696 Mar 31  2020 Microsoft.Owin.Hosting.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  138936 Mar 31  2020 Microsoft.Owin.Host.SystemWeb.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   53944 Mar 31  2020 Microsoft.Owin.Security.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21216 Mar 31  2020 Microsoft.Win32.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone 1013760 Jan 14  2021 MimeKit.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   49664 Aug 31 05:23 MonoTorrent.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   27841 Aug 31 05:23 MonoTorrent.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone    8704 Mar 31  2020 Nancy.Authentication.Basic.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   13824 Mar 31  2020 Nancy.Authentication.Forms.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  922624 Mar 31  2020 Nancy.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    5120 Mar 31  2020 Nancy.Owin.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   98616 Mar 31  2020 netstandard.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  675752 Mar 31  2020 Newtonsoft.Json.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  817152 Mar 31  2020 NLog.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  413696 Mar 31  2020 NodaTime.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   24064 Mar 31  2020 OAuth.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   28672 Mar 31  2020 Org.Mentalis.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    4608 Mar 31  2020 Owin.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone      55 Oct  3 23:57 release_info
-rw-r--r-- 1 sc-nzbdrone nzbdrone  179712 Mar 31  2020 RestSharp.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   81920 Mar 31  2020 Sentry.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   15360 Mar 31  2020 Sentry.PlatformAbstractions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   50688 Mar 31  2020 Sentry.Protocol.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   35328 Mar 31  2020 SixLabors.Core.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   83968 Mar 31  2020 SixLabors.Fonts.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  912896 Mar 31  2020 SixLabors.ImageSharp.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   57856 Mar 31  2020 SixLabors.ImageSharp.Drawing.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  101888 Mar 31  2020 SixLabors.Shapes.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   10752 Mar 31  2020 SocksWebProxy.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  190976 Oct  3 23:57 Sonarr.Api.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   72593 Oct  3 23:57 Sonarr.Api.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone  256000 Oct  3 23:57 Sonarr.Api.V3.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  100300 Oct  3 23:57 Sonarr.Api.V3.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone  267264 Oct  3 23:57 Sonarr.Common.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  120281 Oct  3 23:57 Sonarr.Common.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone 1886720 Oct  3 23:57 Sonarr.Core.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone     374 Mar 31  2020 Sonarr.Core.dll.config
-rw-r--r-- 1 sc-nzbdrone nzbdrone  811182 Oct  3 23:57 Sonarr.Core.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   55296 Oct  3 23:57 Sonarr.exe
-rw-r--r-- 1 sc-nzbdrone nzbdrone   19931 Aug 31 05:23 Sonarr.exe.config
-rw-r--r-- 1 sc-nzbdrone nzbdrone     891 Oct  3 23:57 Sonarr.exe.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   37376 Oct  3 23:57 Sonarr.Host.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   11471 Oct  3 23:57 Sonarr.Host.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   85504 Oct  3 23:57 Sonarr.Http.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   32653 Oct  3 23:57 Sonarr.Http.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   26112 Oct  3 23:57 Sonarr.Mono.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    9633 Oct  3 23:57 Sonarr.Mono.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   13312 Oct  3 23:57 Sonarr.RuntimePatches.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    3942 Oct  3 23:57 Sonarr.RuntimePatches.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   13312 Oct  3 23:57 Sonarr.SignalR.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    4088 Oct  3 23:57 Sonarr.SignalR.dll.mdb
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21176 Mar 31  2020 System.AppContext.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   20856 Jan 14  2021 System.Buffers.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.Collections.Concurrent.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21696 Mar 31  2020 System.Collections.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  302216 Mar 31  2020 System.Collections.Immutable.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.Collections.NonGeneric.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.Collections.Specialized.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   41712 Mar 31  2020 System.ComponentModel.Annotations.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21192 Mar 31  2020 System.ComponentModel.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21768 Mar 31  2020 System.ComponentModel.EventBasedAsync.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21752 Mar 31  2020 System.ComponentModel.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22784 Mar 31  2020 System.ComponentModel.TypeConverter.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21160 Mar 31  2020 System.Console.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  154448 Mar 31  2020 System.Data.Common.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  273920 Mar 31  2020 System.Data.SQLite.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21736 Mar 31  2020 System.Diagnostics.Contracts.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21208 Mar 31  2020 System.Diagnostics.Debug.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21248 Mar 31  2020 System.Diagnostics.FileVersionInfo.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21728 Mar 31  2020 System.Diagnostics.Process.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   23936 Mar 31  2020 System.Diagnostics.StackTrace.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21280 Mar 31  2020 System.Diagnostics.TextWriterTraceListener.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21208 Mar 31  2020 System.Diagnostics.Tools.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21744 Mar 31  2020 System.Diagnostics.TraceSource.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   31608 Mar 31  2020 System.Diagnostics.Tracing.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21208 Mar 31  2020 System.Drawing.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22224 Mar 31  2020 System.Dynamic.Runtime.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21744 Mar 31  2020 System.Globalization.Calendars.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21192 Mar 31  2020 System.Globalization.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    6144 Mar 31  2020 System.Globalization.Extensions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.IO.Compression.ZipFile.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21144 Mar 31  2020 System.IO.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21192 Mar 31  2020 System.IO.FileSystem.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.IO.FileSystem.DriveInfo.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.IO.FileSystem.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.IO.FileSystem.Watcher.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21208 Mar 31  2020 System.IO.IsolatedStorage.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21216 Mar 31  2020 System.IO.MemoryMappedFiles.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21168 Mar 31  2020 System.IO.Pipes.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.IO.UnmanagedMemoryStream.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21152 Mar 31  2020 System.Linq.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22224 Mar 31  2020 System.Linq.Expressions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21192 Mar 31  2020 System.Linq.Parallel.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21192 Mar 31  2020 System.Linq.Queryable.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  148624 Mar 31  2020 System.Memory.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21208 Mar 31  2020 System.Net.NameResolution.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22248 Mar 31  2020 System.Net.NetworkInformation.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21168 Mar 31  2020 System.Net.Ping.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22216 Mar 31  2020 System.Net.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21184 Mar 31  2020 System.Net.Requests.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21696 Mar 31  2020 System.Net.Security.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   30544 Mar 31  2020 System.Net.Sockets.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.Net.WebHeaderCollection.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.Net.WebSockets.Client.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21192 Mar 31  2020 System.Net.WebSockets.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone  163464 Mar 31  2020 System.Numerics.Vectors.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21696 Mar 31  2020 System.ObjectModel.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22200 Mar 31  2020 System.Reflection.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21224 Mar 31  2020 System.Reflection.Extensions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21736 Mar 31  2020 System.Reflection.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Resources.Reader.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.Resources.ResourceManager.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Resources.Writer.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22184 Mar 31  2020 System.Runtime.CompilerServices.Unsafe.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21784 Mar 31  2020 System.Runtime.CompilerServices.VisualC.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   29360 Mar 31  2020 System.Runtime.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21720 Mar 31  2020 System.Runtime.Extensions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Runtime.Handles.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   24296 Mar 31  2020 System.Runtime.InteropServices.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    7168 Mar 31  2020 System.Runtime.InteropServices.RuntimeInformation.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Runtime.Numerics.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21264 Mar 31  2020 System.Runtime.Serialization.Formatters.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21240 Mar 31  2020 System.Runtime.Serialization.Json.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   27048 Mar 31  2020 System.Runtime.Serialization.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   24816 Mar 31  2020 System.Runtime.Serialization.Xml.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Security.Claims.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   47016 Mar 31  2020 System.Security.Cryptography.Algorithms.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21240 Mar 31  2020 System.Security.Cryptography.Csp.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21256 Mar 31  2020 System.Security.Cryptography.Encoding.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21784 Mar 31  2020 System.Security.Cryptography.Primitives.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22832 Mar 31  2020 System.Security.Cryptography.X509Certificates.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21208 Mar 31  2020 System.Security.Principal.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22392 Mar 31  2020 System.Security.SecureString.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21696 Mar 31  2020 System.Text.Encoding.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.Text.Encoding.Extensions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.Text.RegularExpressions.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22192 Mar 31  2020 System.Threading.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone    4608 Mar 31  2020 System.Threading.Overlapped.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22224 Mar 31  2020 System.Threading.Tasks.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21232 Mar 31  2020 System.Threading.Tasks.Parallel.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Threading.Thread.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21216 Mar 31  2020 System.Threading.ThreadPool.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21200 Mar 31  2020 System.Threading.Timer.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   78992 Mar 31  2020 System.ValueTuple.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21712 Mar 31  2020 System.Xml.ReaderWriter.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21696 Mar 31  2020 System.Xml.XDocument.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21712 Mar 31  2020 System.Xml.XmlDocument.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21712 Mar 31  2020 System.Xml.XmlSerializer.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   21176 Mar 31  2020 System.Xml.XPath.dll
-rw-r--r-- 1 sc-nzbdrone nzbdrone   22904 Mar 31  2020 System.Xml.XPath.XDocument.dll
drwxr-xr-x 1 sc-nzbdrone nzbdrone     206 Oct  3 23:58 UI

/volume1/@appstore/nzbdrone/share/Sonarr/UI:
total 12004
drwxr-xr-x 1 sc-nzbdrone nzbdrone     206 Oct  3 23:58 .
drwxr-xr-x 1 sc-nzbdrone nzbdrone    8772 Oct  3 23:58 ..
drwxr-xr-x 1 sc-nzbdrone nzbdrone      90 Oct  1 00:02 Content
-rw-r--r-- 1 sc-nzbdrone nzbdrone    1699 May 11 10:08 index.html
-rw-r--r-- 1 sc-nzbdrone nzbdrone 1102324 Oct  3 23:57 index.js
-rw-r--r-- 1 sc-nzbdrone nzbdrone 3410002 Oct  3 23:57 index.js.map
-rw-r--r-- 1 sc-nzbdrone nzbdrone    7525 May 27 22:18 login.html
-rw-r--r-- 1 sc-nzbdrone nzbdrone     306 Mar 31  2020 oauth.html
-rw-r--r-- 1 sc-nzbdrone nzbdrone 1363961 Oct  3 23:57 vendors.js
-rw-r--r-- 1 sc-nzbdrone nzbdrone    3570 Apr 25 09:58 vendors.js.LICENSE.txt
-rw-r--r-- 1 sc-nzbdrone nzbdrone 6387594 Oct  3 23:57 vendors.js.map

/volume1/@appstore/nzbdrone/share/Sonarr/UI/Content:
total 376
drwxr-xr-x 1 sc-nzbdrone nzbdrone     90 Oct  1 00:02 .
drwxr-xr-x 1 sc-nzbdrone nzbdrone    206 Oct  3 23:58 ..
drwxr-xr-x 1 sc-nzbdrone nzbdrone    458 Apr 13  2020 Fonts
drwxr-xr-x 1 sc-nzbdrone nzbdrone     88 May 27 22:19 Images
-rw-r--r-- 1 sc-nzbdrone nzbdrone     26 Jan  4  2021 robots.txt
-rw-r--r-- 1 sc-nzbdrone nzbdrone 149898 Oct  1 00:01 styles.css
-rw-r--r-- 1 sc-nzbdrone nzbdrone 228722 Oct  1 00:01 styles.css.map

/volume1/@appstore/nzbdrone/share/Sonarr/UI/Content/Fonts:
total 904
drwxr-xr-x 1 sc-nzbdrone nzbdrone    458 Apr 13  2020 .
drwxr-xr-x 1 sc-nzbdrone nzbdrone     90 Oct  1 00:02 ..
-rw-r--r-- 1 sc-nzbdrone nzbdrone   1308 Mar 31  2020 fonts.css
-rw-r--r-- 1 sc-nzbdrone nzbdrone 162420 Mar 31  2020 Roboto-Light.ttf
-rw-r--r-- 1 sc-nzbdrone nzbdrone  89300 Mar 31  2020 Roboto-Light.woff
-rw-r--r-- 1 sc-nzbdrone nzbdrone  62832 Mar 31  2020 Roboto-Light.woff2
-rw-r--r-- 1 sc-nzbdrone nzbdrone 162876 Mar 31  2020 Roboto-Regular.ttf
-rw-r--r-- 1 sc-nzbdrone nzbdrone  89732 Mar 31  2020 Roboto-Regular.woff
-rw-r--r-- 1 sc-nzbdrone nzbdrone  63412 Mar 31  2020 Roboto-Regular.woff2
-rw-r--r-- 1 sc-nzbdrone nzbdrone  12392 Mar 31  2020 text-security-disc.ttf
-rw-r--r-- 1 sc-nzbdrone nzbdrone   2988 Mar 31  2020 text-security-disc.woff
-rw-r--r-- 1 sc-nzbdrone nzbdrone  23691 Mar 31  2020 UbuntuMono-Regular.eot
-rw-r--r-- 1 sc-nzbdrone nzbdrone 205748 Mar 31  2020 UbuntuMono-Regular.ttf
-rw-r--r-- 1 sc-nzbdrone nzbdrone  27392 Mar 31  2020 UbuntuMono-Regular.woff

/volume1/@appstore/nzbdrone/share/Sonarr/UI/Content/Images:
total 272
drwxr-xr-x 1 sc-nzbdrone nzbdrone     88 May 27 22:19 .
drwxr-xr-x 1 sc-nzbdrone nzbdrone     90 Oct  1 00:02 ..
-rw-r--r-- 1 sc-nzbdrone nzbdrone 103643 Mar 31  2020 404.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone 163647 Mar 31  2020 error.png
drwxr-xr-x 1 sc-nzbdrone nzbdrone    638 Apr 13  2020 Icons
-rw-r--r-- 1 sc-nzbdrone nzbdrone   2364 Mar 31  2020 logo.svg
-rw-r--r-- 1 sc-nzbdrone nzbdrone   2553 Mar 31  2020 poster-dark.png

/volume1/@appstore/nzbdrone/share/Sonarr/UI/Content/Images/Icons:
total 108
drwxr-xr-x 1 sc-nzbdrone nzbdrone   638 Apr 13  2020 .
drwxr-xr-x 1 sc-nzbdrone nzbdrone    88 May 27 22:19 ..
-rw-r--r-- 1 sc-nzbdrone nzbdrone  4629 Mar 31  2020 android-chrome-192x192.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone 11319 Mar 31  2020 android-chrome-512x512.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  3817 Mar 31  2020 apple-touch-icon.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone   276 Mar 31  2020 browserconfig.xml
-rw-r--r-- 1 sc-nzbdrone nzbdrone   723 Mar 31  2020 favicon-16x16.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  1389 Mar 31  2020 favicon-32x32.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone   715 Mar 31  2020 favicon-debug-16x16.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  1385 Mar 31  2020 favicon-debug-32x32.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone 15086 Mar 31  2020 favicon-debug.ico
-rw-r--r-- 1 sc-nzbdrone nzbdrone 15086 Mar 31  2020 favicon.ico
-rw-r--r-- 1 sc-nzbdrone nzbdrone   462 Mar 31  2020 manifest.json
-rw-r--r-- 1 sc-nzbdrone nzbdrone  3592 Mar 31  2020 mstile-144x144.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  3584 Mar 31  2020 mstile-150x150.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  3734 Mar 31  2020 mstile-310x150.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  6632 Mar 31  2020 mstile-310x310.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  2439 Mar 31  2020 mstile-70x70.png
-rw-r--r-- 1 sc-nzbdrone nzbdrone  2354 Mar 31  2020 safari-pinned-tab.svg
@BenjV
Copy link

BenjV commented Oct 4, 2021

You're looking in the wrong place.
As of DSM 7 this data is to be found below the @appdata folder
So you should look in /volume1/appstore/nzbdrone for the config and database.
You should also look if sc-nzbdrone owns that folder.

During the upgrade from DSM 6 to DSM 7 for all installed packages those @appdata folders are created but with root as owner.
The moment you upgrade to a DSM 7 version of Sonar that ownership should change to sc-nzbdrone, but we get reports that sometime this does not happen and that folder stays owned by root.
We suspect that clicking the repair button is the cause of this but we don't know for sure and I cannot reproduce the problem.

If that folder is not owned by sc-nzbdrone, you should change the ownership of that folder to sc-nzbdrone with this command:

sudo chown -R sc-nzbdrone:sc-nzbdrone /volume1/@appstore/nzbdrone

And of course after you start Sonarr, restore form within Sonarr the config and database from the backup you made before upgrading to DSM 7 if is needed.

@NMe84
Copy link
Author

NMe84 commented Oct 4, 2021

Ah, you're completely right. My settings are indeed in the @appdata folder now. Is this a per-package thing? Radarr is still running and reports it's still using the @appstore folder, and because Sonarr's Wiki also points to @appstore that's where I looked. I just updated their Wiki to point DSM 7 users in the right direction though.

As for my problem, it looks like Sonarr may have updated itself and that caused the crash. My permissions on that folder seem fine, I was just haunting ghosts by looking into the wrong folder.

EPIC FAIL! System.InvalidCastException: Specified cast is not valid.
  at System.Data.SQLite.SQLiteDataReader.VerifyType (System.Int32 i, System.Data.DbType typ) [0x000cd] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  at System.Data.SQLite.SQLiteDataReader.GetString (System.Int32 i) [0x0002b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  at NzbDrone.Core.Datastore.Migration.release_profile_to_array.ChangeRequiredIgnoredTypes (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x0002d] in <a48503f349f74adcba429d8f078638a2>:0
  at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000a2] in <a48503f349f74adcba429d8f078638a2>:0
  at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in <a48503f349f74adcba429d8f078638a2>:0
  at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in <a48503f349f74adcba429d8f078638a2>:0
  at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00010] in <a48503f349f74adcba429d8f078638a2>:0
  at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00006] in <a48503f349f74adcba429d8f078638a2>:0
  at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in <5626b67281b34aa6a0a04eb4e3c51301>:0
  at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in <5626b67281b34aa6a0a04eb4e3c51301>:0
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x00047] in <5626b67281b34aa6a0a04eb4e3c51301>:0
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in <5626b67281b34aa6a0a04eb4e3c51301>:0
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00036] in <01cc34ea0aff475a9e56fc3d1baaee32>:0
Press enter to exit...

@NMe84 NMe84 closed this as completed Oct 4, 2021
@BenjV
Copy link

BenjV commented Oct 4, 2021

@NMe84
DSM 7 separated the package data from the package binaries, source and libraries.

So the latter stays on @appstore/nzbdrone and whate Sonars calls the "home" folder is located at @appdata/nzbdrone.
And as far as I know the database and configs are stored on that "home" folder.

@NMe84
Copy link
Author

NMe84 commented Oct 4, 2021

@BenjV Oh, I understood that part. My confusion comes from the fact that Radarr still reports the old the old folder as being its appdata folder even in the DSM 7 package. But perhaps that's down to them rather than the package.

Thanks for your help! And sorry for making a ticket for something that wasn't a package issue.

@BenjV
Copy link

BenjV commented Oct 4, 2021

The package does not report anything it just sets the home location on the startup commandline to @appdata/nzbdrone
No problem, hope my info was helpfull.

@NMe84
Copy link
Author

NMe84 commented Oct 4, 2021

Oh definitely. I solved my issue after I dreaded having to rebuild my database with over 800 shows. I can't begin to express how happy I am that you helped me avoid having to do that. 😛

And just to be sure that you understand what I mean: Sonarr and Radarr both report where the app thinks its appdata folder is on their respective "System" pages in the menu.

Sonarr says this:

image

Radarr says this:

image

Note how Sonarr refers to @appdata for its config and @appstore for its startup folder while Radar reports @appstore for both.

@BenjV
Copy link

BenjV commented Oct 4, 2021

I looked in the Radarr package and that one is not changed to DSM 7 standaards and the home folder still points to @appstore/radarr

So I understand your confusion.

@th0ma7 , @publicarray
Maybe this should be corrected?

@th0ma7
Copy link
Contributor

th0ma7 commented Oct 5, 2021

@BenjV reading the thread I first thought this refereed to$HOME used to be prior to DSM7 under .../<app>/target which now sits under .../<app>/home which is a symlink to /volume1/@apphome/<app>.

Note how Sonarr refers to @appdata for its config and @appstore for its startup folder while Radar reports @appstore for both.

That is odd... @BenjV are you saying that DSM7 packages of radarr ain't pointing at the proper location? Perhaps was it released in the early DSM7 spksrc changes and would require a rebuild with the updated framework?

@BenjV
Copy link

BenjV commented Oct 5, 2021

@th0ma7
I downloaded the packages from "SynoCommunity packages" website and found this in the Radarr package:

HOME_DIR="${SYNOPKG_PKGDEST}/var"
CONFIG_DIR="${SYNOPKG_PKGDEST}/var/.config"

The Sonarr package(nzbdrone) has this:

HOME_DIR="${SYNOPKG_PKGVAR}"
CONFIG_DIR="${SYNOPKG_PKGVAR}/.config"

So I think you're right and that Radar package should be rebuild.

@publicarray
Copy link
Member

publicarray commented Oct 5, 2021 via email

@th0ma7
Copy link
Contributor

th0ma7 commented Oct 5, 2021

This is a really interesting point that @BenjV noticed, there are indeed a lot of ${SYNOPKG_PKGDEST}/var still in existence under spk/*/src/service-setup.sh that needs to be adjusted.

I gave it a shot at bulk-changing that accordingly under my var PR #4797 commit 1af6daf

@publicarray while SYNOPKG_SPKVAR variable is available for service-setup.sh, is it available as well using src/installer.sh? Because there's mostly ${INSTALL_DIR}/var and a single ${SYNOPKG_PKGDEST}/var that all needs fixing as well.

@publicarray
Copy link
Member

Can I be a pain and ask to have a seperate PR for those?

FYI: While this would fix the paths it doesn't guarantee that the packages are now DSM7 compatible.

@publicarray
Copy link
Member

publicarray commented Oct 12, 2021

As for why there are still so many. It's because mostly @hgy59 and a little myself have updated them to DSM7 one by one. All (except one) have not been ported to DSM7 yet.

@hgy59
Copy link
Contributor

hgy59 commented Oct 12, 2021

@th0ma7 I downloaded the packages from "SynoCommunity packages" website and found this in the Radarr package:

HOME_DIR="${SYNOPKG_PKGDEST}/var"
CONFIG_DIR="${SYNOPKG_PKGDEST}/var/.config"

The Sonarr package(nzbdrone) has this:

HOME_DIR="${SYNOPKG_PKGVAR}"
CONFIG_DIR="${SYNOPKG_PKGVAR}/.config"

So I think you're right and that Radar package should be rebuild.

radar was already updated in #4757 that was still pending, but now I have merged.

@th0ma7
Copy link
Contributor

th0ma7 commented Oct 12, 2021

@hgy59 but radar isn't the only one, there are many others as per #4797 (that I'll rebase against master to match your PR merge)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants