I’m having the same problem with the same version of Sonarr running in Docker (LinuxServer edition).
Looking into it, the app will launch then die after about 5 minutes when it starts to send shows to the downloader.
The crash is pretty hard–it actually hangs Docker and the container cannot be killed under any circumstances, even with a SIGKILL (kill -9) from within or outside the container because it is permanently disk locked (D status on the process). When running in docker, the system blocker is s6-sync, but that’s just a symptom of the software taking out a disk lock and then dying before releasing it.
I’ll rebuild my database, but the software shouldn’t crash this hard even with a corrupted DB. At the very least, it would be helpful to add a catch that releases disk locks as it dies.
I just wiped everything out and started from scratch. After re-adding all of my shows, it crashed in the same way as before. The problem seems to be something other than a corrupted DB. I’m guessing a specific show or file is causing it to barf, but I’m not seeing any smoking guns in the logs.