Import failure every time

Sonarr version (exact version): 3.0.9.1549-ls154 by linuxserver.io
Mono version (if Sonarr is not running on Windows): 6.12.0.182
OS: Docker on Ubuntu 18.04
Debug logs: Google Drive link to logs: https://drive.google.com/file/d/1HSupwZuWM3K3fbMGZAhkc08USaOupdsl/view?usp=sharing

Description of issue:

I cannot import root folders. It processes all of the directories, then after I click ‘Import’ it stalls for about 1-2 minutes and then I receive the following error:

TypeError: Cannot read properties of undefined (reading 'map')
at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:495979) at M (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1181758) at div at DocumentTitle at o (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1199903) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:152296) at nI (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:230771) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:500733) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:503382) at M (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1181758) at t (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1197562) at t (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1198188) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:231576) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:505304) at t (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1197562) at t (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1198188) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:231576) at a6 (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:1100600) at div at div at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:223572) at r (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:226981) at M (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1181758) at n (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1198725) at t (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1194824) at n (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:202839) at o (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:204519) at M (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1181758) at c (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1179840) at DocumentTitle at o (https://sonarr.mydomain.com/vendors.js?h=lca5ghhPDXhgOwhzvxCi5w:2:1199903) at e (https://sonarr.mydomain.com/index.js?h=gWiyd50E7kEL/vcxpXo5eA:1:1102716)

I have tried deleting all application data and starting from scratch but sonarr throws the same error. I have 3x root folders that I need to add. Any help would be greatly received.

Logs cannot be accessed as they’re protected…hence why other sites are mentioned over google drive

Should be working now…

That looks like a UI-only error, if you open up your browser’s dev tools and then reproduce the issue it should give more information in the error.

Thanks for the tip. Here is the list of errors that the browser is throwing:

sonarr.mydomain.com/:1 
        
       Access to fetch at 'https://sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7:1 
        
       Failed to load resource: net::ERR_FAILED
/add/import:1 
        
       Access to fetch at 'https://sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7:1 
            
        
       Failed to load resource: net::ERR_FAILED
/add/import:1 
        
       Access to fetch at 'https://sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7:1 
                
       Failed to load resource: net::ERR_FAILED
1:1 
        
       Access to fetch at 'https://sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7:1 
        
       Failed to load resource: net::ERR_FAILED
1:1 
        
       Access to fetch at 'https://sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7:1 
        
       Failed to load resource: net::ERR_FAILED
/api/v3/series/import:1 
                
       Failed to load resource: the server responded with a status of 400 ()
/api/v3/series/import:1 
          
       Failed to load resource: the server responded with a status of 400 ()
/api/v3/series/import:1 
        
       Failed to load resource: the server responded with a status of 524 ()
1:1 
   
       Access to fetch at 'https://sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/envelope/?sentry_key=Xxx&sentry_version=7:1 
        
       Failed to load resource: net::ERR_FAILED
1:1
       Access to fetch at 'https://sentry.sonarr.tv/api/13/store/?sentry_key=Xxx&sentry_version=7' from origin 'https://sonarr.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
sentry.sonarr.tv/api/13/store/?sentry_key=Xxx&sentry_version=7:1 
        
      Failed to load resource: net::ERR_FAILED

I’ll be trying some of these when I get home from work:
https://medium.com/@dtkatz/3-ways-to-fix-the-cors-error-and-how-access-control-allow-origin-works-d97d55946d9
Will update…

Those errors look unrelated to the issue you were having. Sentry won’t cause that issue and CORS is already dealt with.

Hmmm… fair enough. Is there anywhere else to hunt for errors/clues?
Could this be a resource issue? It seems unlikely as RAM is underused when going through the import process…

You need to look at the error that Sonarr shows with the dev tools open (which should also show up in the console).

  1. Open Sonarr
  2. Open dev tools
  3. Reproduce issue
  4. Expand error

This should give a lot more information about the same issue, including line numbers where the error occurred.

I’m not having any luck finding new information in the dev tools console sadly. It’s just mirroring what the error says in the browser.
Are there other ways that sonarr can scan directories into its database? I’ve tried Wanted > Missing > Automatic Import, but that didn’t do anything.

No, there is not.