Attempting to migrate Sonarr from Linux to TrueNAS headaches

Sonarr version (exact version): 3.0.10.1567
Mono version (if Sonarr is not running on Windows): 6.8.0.123
OS: TrueNAS 13.1-RELEASE-p2
Debug logs:
Description of issue: Error attempting to set up downloader (sabnzbd)

I may have botched a migration between the two OSes using backup/restore. I can still connect to my legacy sabnzbd downloader but the new one fails. I enabled trace hoping it would tell me something interesting.

2023-04-21 11:52:41.0|Trace|HttpClient|Response content (7211 bytes): {"config": {"misc": {"pre_script": "None", "queue_complete": "", "queue_complete_pers": 0, "bandwidth_perc": 100, "refresh_rate": 1, "interface_settings": "", "queue_limit": 20, "config_lock": 0, "fixed_ports": 1, "sched_converted": 0, "notified_new_skin": 0, "direct_unpack_tested": 0, "check_new_rel": 1, "auto_browser": 0, "language": "en", "enable_https_verification": 1, "host": "0.0.0.0", "port": "8080", "https_port": "", "username": "", "password": "", "bandwidth_max": "", "cache_limit": "1G", "web_dir": "Glitter", "web_color": "Auto", "https_cert": "server.cert", "https_key": "server.key", "https_chain": "", "enable_https": 0, "inet_exposure": 0, "api_key": "(removed)", "nzb_key": "(removed)", "socks5_proxy_url": "", "permissions": "", "download_dir": "/mnt/htpc/Downloads/incomplete", "download_free": "", "complete_dir": "/mnt/htpc/Downloads/complete", "complete_free": "", "fulldisk_autoresume": 0, "script_dir": "", "nzb_backup_dir": "", "admin_dir": "admin", "backup_dir": "", "dirscan_dir": "", "dirscan_speed": 5, "password_file": "", "log_dir": "logs", "max_art_tries": 3, "load_balancing": 2, "top_only": 0, "sfv_check": 1, "script_can_fail": 0, "enable_recursive": 1, "flat_unpack": 0, "par_option": "", "pre_check": 0, "nice": "", "win_process_prio": 3, "ionice": "", "fail_hopeless_jobs": 1, "fast_fail": 1, "auto_disconnect": 1, "no_dupes": 0, "no_series_dupes": 0, "series_propercheck": 1, "pause_on_pwrar": 1, "ignore_samples": 0, "deobfuscate_final_filenames": 0, "auto_sort": "", "direct_unpack": 0, "propagation_delay": 0, "folder_rename": 1, "replace_spaces": 0, "replace_underscores": 0, "replace_dots": 0, "safe_postproc": 1, "pause_on_post_processing": 0, "enable_all_par": 0, "sanitize_safe": 0, "cleanup_list": [], "unwanted_extensions": [], "action_on_unwanted_extensions": 0, "unwanted_extensions_mode": 0, "new_nzb_on_failure": 0, "history_retention": "0", "quota_size": "", "quota_day": "", "quota_resume": 0, "quota_period": "m", "enable_tv_sorting": 0, "tv_sort_string": "", "tv_categories": ["tv"], "enable_movie_sorting": 0, "movie_sort_string": "", "movie_sort_extra": "-cd%1", "movie_categories": ["movies"], "enable_date_sorting": 0, "date_sort_string": "", "date_categories": ["tv"], "schedlines": [], "rss_rate": 60, "ampm": 0, "start_paused": 0, "preserve_paused_state": 0, "enable_par_cleanup": 1, "process_unpacked_par2": 1, "enable_unrar": 1, "enable_unzip": 1, "enable_7zip": 1, "enable_filejoin": 1, "enable_tsjoin": 1, "overwrite_files": 0, "ignore_unrar_dates": 0, "backup_for_duplicates": 1, "empty_postproc": 0, "wait_for_dfolder": 0, "rss_filenames": 0, "api_logging": 1, "html_login": 1, "warn_dupl_jobs": 1, "helpful_warnings": 1, "keep_awake": 1, "tray_icon": 1, "allow_incomplete_nzb": 0, "enable_broadcast": 1, "ipv6_hosting": 0, "api_warnings": 1, "no_penalties": 0, "x_frame_options": 1, "allow_old_ssl_tls": 0, "rss_odd_titles": ["nzbindex.nl/", "nzbindex.com/", "nzbclub.com/"], "quick_check_ext_ignore": ["nfo", "sfv", "srr"], "req_completion_rate": 100.2, "selftest_host": "self-test.sabnzbd.org", "movie_rename_limit": "100M", "episode_rename_limit": "20M", "size_limit": "0", "direct_unpack_threads": 3, "history_limit": 10, "wait_ext_drive": 5, "max_foldername_length": 246, "nomedia_marker": "", "ipv6_servers": 1, "url_base": "/sabnzbd", "host_whitelist": ["sabnzbd"], "local_ranges": [], "max_url_retries": 10, "downloader_sleep_time": 10, "num_simd_decoders": 2, "ssdp_broadcast_interval": 15, "ext_rename_ignore": [], "email_server": "", "email_to": [], "email_from": "", "email_account": "", "email_pwd": "", "email_endjob": 0, "email_full": 0, "email_dir": "", "email_rss": 0, "email_cats": ["*"]}, "logging": {"log_level": 1, "max_log_size": 5242880, "log_backups": 5}, "ncenter": {"ncenter_enable": 0, "ncenter_cats": ["*"], "ncenter_prio_startup": 1, "ncenter_prio_download": 0, "ncenter_prio_pause_resume": 0, "ncenter_prio_pp": 0, "ncenter_prio_complete": 1, "ncenter_prio_failed": 1, "ncenter_prio_disk_full": 1, "ncenter_prio_new_login": 0, "ncenter_prio_warning": 0, "ncenter_prio_error": 0, "ncenter_prio_queue_done": 1, "ncenter_prio_other": 1}, "acenter": {"acenter_enable": 0, "acenter_cats": ["*"], "acenter_prio_startup": 0, "acenter_prio_download": 0, "acenter_prio_pause_resume": 0, "acenter_prio_pp": 0, "acenter_prio_complete": 1, "acenter_prio_failed": 1, "acenter_prio_disk_full": 1, "acenter_prio_new_login": 0, "acenter_prio_warning": 0, "acenter_prio_error": 0, "acenter_prio_queue_done": 1, "acenter_prio_other": 1}, "ntfosd": {"ntfosd_enable": 1, "ntfosd_cats": ["*"], "ntfosd_prio_startup": 1, "ntfosd_prio_download": 0, "ntfosd_prio_pause_resume": 0, "ntfosd_prio_pp": 0, "ntfosd_prio_complete": 1, "ntfosd_prio_failed": 1, "ntfosd_prio_disk_full": 1, "ntfosd_prio_new_login": 0, "ntfosd_prio_warning": 0, "ntfosd_prio_error": 0, "ntfosd_prio_queue_done": 1, "ntfosd_prio_other": 1}, "prowl": {"prowl_enable": 0, "prowl_cats": ["*"], "prowl_apikey": "", "prowl_prio_startup": -3, "prowl_prio_download": -3, "prowl_prio_pause_resume": -3, "prowl_prio_pp": -3, "prowl_prio_complete": 0, "prowl_prio_failed": 1, "prowl_prio_disk_full": 1, "prowl_prio_new_login": -3, "prowl_prio_warning": -3, "prowl_prio_error": -3, "prowl_prio_queue_done": 0, "prowl_prio_other": 0}, "pushover": {"pushover_token": "", "pushover_userkey": "", "pushover_device": "", "pushover_emergency_expire": 3600, "pushover_emergency_retry": 60, "pushover_enable": 0, "pushover_cats": ["*"], "pushover_prio_startup": -3, "pushover_prio_download": -2, "pushover_prio_pause_resume": -2, "pushover_prio_pp": -3, "pushover_prio_complete": -1, "pushover_prio_failed": -1, "pushover_prio_disk_full": 1, "pushover_prio_new_login": -3, "pushover_prio_warning": 1, "pushover_prio_error": 1, "pushover_prio_queue_done": -1, "pushover_prio_other": -1}, "pushbullet": {"pushbullet_enable": 0, "pushbullet_cats": ["*"], "pushbullet_apikey": "", "pushbullet_device": "", "pushbullet_prio_startup": 0, "pushbullet_prio_download": 0, "pushbullet_prio_pause_resume": 0, "pushbullet_prio_pp": 0, "pushbullet_prio_complete": 1, "pushbullet_prio_failed": 1, "pushbullet_prio_disk_full": 1, "pushbullet_prio_new_login": 0, "pushbullet_prio_warning": 0, "pushbullet_prio_error": 0, "pushbullet_prio_queue_done": 0, "pushbullet_prio_other": 1}, "nscript": {"nscript_enable": 0, "nscript_cats": ["*"], "nscript_script": "", "nscript_parameters": "", "nscript_prio_startup": 1, "nscript_prio_download": 0, "nscript_prio_pause_resume": 0, "nscript_prio_pp": 0, "nscript_prio_complete": 1, "nscript_prio_failed": 1, "nscript_prio_disk_full": 1, "nscript_prio_new_login": 0, "nscript_prio_warning": 0, "nscript_prio_error": 0, "nscript_prio_queue_done": 1, "nscript_prio_other": 1}, "servers": [{"name": "news.newshosting.com", "displayname": "news.newshosting.com", "host": "news.newshosting.com", "port": 563, "timeout": 60, "username": "(removed)", "password": "(removed)", "connections": 8, "ssl": 1, "ssl_verify": 2, "ssl_ciphers": "", "enable": 1, "required": 0, "optional": 0, "retention": 0, "expire_date": "", "quota": "", "usage_at_start": 0, "send_group": 0, "priority": 0, "notes": ""}]}}
2023-04-21 11:52:41.0|Error|Sabnzbd|Test aborted due to exception

[v3.0.10.1567] System.NullReferenceException: Object reference not set to an instance of an object
  at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd+<GetCategories>d__10.MoveNext () [0x000b4] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:233 
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0004f] in /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/external/corefx/src/System.Linq/src/System/Linq/First.cs:92 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/external/corefx/src/System.Linq/src/System/Linq/First.cs:37 
  at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.TestCategory () [0x00012] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:434 
  at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.Test (System.Collections.Generic.List`1[T] failures) [0x00024] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:273 
  at NzbDrone.Core.Download.DownloadClientBase`1[TSettings].Test () [0x00006] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Download\DownloadClientBase.cs:113 

2023-04-21 11:52:41.0|Trace|SonarrErrorPipeline|Handling Exception
2023-04-21 11:52:41.0|Warn|SonarrErrorPipeline|Invalid request Validation failed: 
 -- : Test was aborted due to an error: Object reference not set to an instance of an object

OK, I’m not quite sure what I fixed to get this working, but it miraculously contacts sazbnzbd now.

The other problem I ran into was cert errors. I found on the TrueNAS forums that you have to rerun cert-sync from mono to correct that. Linking here for the next poor soul that has to put up with this:

What a pain…

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.