Sonarr not finishing import in docker

Sonarr version (exact version): 4.0.5.1710
Mono version (if Sonarr is not running on Windows):
OS: docker (unraid)
Debug logs:
Description of issue:
Logs: 0bin - encrypted pastebin

I was having an issue getting imports done. The shows would download in Sabnzbd, but would never get processed. I fixed the issue yesterday setting the remote path, and everything worked for about 25 episodes, and then it broke again. I made no changes between when it was working and when it stopped other than to delete some of the files that were in process (to clean up my folder structure, I thought sonarr was done with them).
The test episode is this one: 2024-06-14 05:50:50.9|Trace|TrackedDownloadAlreadyImported|Last event for episode: S14E12 [492] is: Grabbed
2024-06-14 05:50:50.9|Trace|TrackedDownloadAlreadyImported|All episodes for ‘bobs.burgers.s14e12.multi.1080p.web.h264-higgsboson[EZTVx.to].mkv-[N-Z-B]-xpost’ have been imported: False
2024-06-14 05:50:50.9|Debug|CompletedDownloadService|Not all episodes have been imported for the release ‘bobs.burgers.s14e12.multi.1080p.web.h264-higgsboson[EZTVx.to].mkv-[N-Z-B]-xpost’
2024-06-14 05:50:50.9|Debug|DownloadedEpisodesImportService|Processing path: /tv/bobs.burgers.s14e13.final.multi.1080p.web.h264-higgsboson[EZTVx.to].mkv-[N-Z-B]-xpost
2024-06-14 05:50:50.9|Error|DownloadedEpisodesImportService|Import failed, path does not exist or is not accessible by Sonarr: /tv/bobs.burgers.s14e13.final.multi.1080p.web.h264-higgsboson[EZTVx.to].mkv-[N-Z-B]-xpost. Ensure the path exists and the user running Sonarr has the correct permissions to access this file/folder
2024-06-14 05:50:50.9|Trace|TrackedDownloadAlreadyImported|Checking if all episodes for ‘bobs.burgers.s14e13.final.multi.1080p.web.h264-higgsboson[EZTVx.to].mkv-[N-Z-B]-xpost’ have been imported
2024-06-14 05:50:50.9|Trace|TrackedDownloadAlreadyImported|Last event for episode: S14E13 [493] is: Grabbed
2024-06-14 05:50:50.9|Trace|TrackedDownloadAlreadyImported|All episodes for ‘bobs.burgers.s14e13.final.multi.1080p.web.h264-higgsboson[EZTVx.to].mkv-[N-Z-B]-xpost’ have been imported: False

I can see the file there, even when I exec into the docker container. Does anyone know what I’m missing here?

I had similar issue - Sonarr was not able to import the downloaded files (I posted another thread here).
Check the Memory limits in your docker compose file (if any limits configured) and increase the limit to 1Gb or higher. This fixed my issue.
It seems the memory consumption during importing is bigger in the recent Sonarr versions.

Thanks for that, I found the issue:
It came down to my permissions being wrong (I had some folders that had been manually created and thus had some different permissions).

I was also having sabnzbd handle the file moving instead of having sonarr see it in the downloaded folder and doing the move itself.

Also, I had to go through and manually clear all of my sabnzbd history: for future reference, it’s not supposed to keep everything there.