Sonarr V4 restore failed after upgrade from v3

Sonarr version (exact version): v4
Mono version (if Sonarr is not running on Windows):
OS: Raspberry Pi OS latest 64bit
Debug logs: Below
Description of issue:

I had v3 running for years on my raspberry pi os. I saw there was an update so I followed instructions:

  1. Made a backup of sonarr v3 config
  2. Purged sonarr v3 sudo apt purge sonarr -y --auto-remove
  3. Then installed sonarr v4
  4. v4 installed fine, I could access the web UI and saw that v4 was installed, created authentication username/password, but no config had restored, all of my tv show congig, tracker credentials, scripts were lost.
  5. So I attempted to restore config from the v3 backup, but that seem to have totally corrupted sonarr. Web UI is not reachable anymore. I tried restarting raspberry pi, but nothing. When I run sudo systemctl status sonarr I get:
pi@rpi5:~ $ sudo systemctl status sonarr
ā— sonarr.service - Sonarr Daemon
     Loaded: loaded (/etc/systemd/system/sonarr.service; enabled; preset: enabled)
     Active: active (running) since Sat 2024-11-16 01:30:38 EET; 20min ago
   Main PID: 764 (Sonarr)
      Tasks: 10 (limit: 4450)
        CPU: 4.361s
     CGroup: /system.slice/sonarr.service
             ā””ā”€764 /opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/

Nov 16 01:30:42 rpi5 Sonarr[764]:    at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IAp>
Nov 16 01:30:42 rpi5 Sonarr[764]:    at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
Nov 16 01:30:42 rpi5 Sonarr[764]:    at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
Nov 16 01:30:42 rpi5 Sonarr[764]:    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
Nov 16 01:30:42 rpi5 Sonarr[764]:    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
Nov 16 01:30:42 rpi5 Sonarr[764]:    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
Nov 16 01:30:42 rpi5 Sonarr[764]:    at NzbDrone.Host.Bootstrap.Start(String[] args, Action`1 trayCallback) in ./Sonarr.Host/Bootstrap.cs:line 80
Nov 16 01:30:42 rpi5 Sonarr[764]:    at NzbDrone.Console.ConsoleApp.Main(String[] args) in ./Sonarr.Console/ConsoleApp.cs:line 45
Nov 16 01:30:42 rpi5 Sonarr[764]: Press enter to exit...
Nov 16 01:30:43 rpi5 Sonarr[764]: Non-recoverable failure, waiting for user intervention...
  1. Iā€™m ok to loose all of my settings, tv show config, etc., but just PLEASE let me know how to completely remove sonarr v4 and start fresh.

I manuallt deleted the config and db, and then rebooted my raspberry pi. This automatically recreated the db and now web ui works again. Though there is no way to restore v3 config.

rm /var/lib/sonarr/config.xml
rm /var/lib/sonarr/sonarr.db

check my last 2 posts here - Unable to repair db to upgrade from v3 to v4

Library Import is probably your best bet