Unable to post found result to SABnzbd

Recently upgraded to Ubuntu 18.04, and migrated to SickRage with Python3. Finally getting everything else in order, but I’m unable to get any new show downloaded. Tailing the logs, I see that the episodes are found via providers, and one is chosen. But then SickRage fails as it sends to SABnzbd.
Note, CouchPotato is working fine (for movies), so it seems that SABnzbd is properly up and runnning and the API is still up and working etc.

Here are the Sickrage logs after initiating a manual search for a given episode. Note that no other downloads seem to be getting initiated from running backlogs etc either. Also, SABnzbd logs show nothing related to the attempted call.

2019-06-30 16:44:10 DEBUG::SEARCHQUEUE-MANUAL-289574::Picked 
Stephen.Colbert.2019.06.20.Russell.Crowe.1080p.WEB.x264-TBS as the best
2019-06-30 16:44:10 DEBUG::SEARCHQUEUE-MANUAL-289574::Checking if we should keep             
searching after we've found Stephen.Colbert.2019.06.20.Russell.Crowe.1080p.WEB.x264-TBS
2019-06-30 16:44:10 INFO::SEARCHQUEUE-MANUAL-289574::Downloading     
Stephen.Colbert.2019.06.20.Russell.Crowe.1080p.WEB.x264-TBS from ozNZB
2019-06-30 16:44:18 DEBUG::SEARCHQUEUE-MANUAL-289574::GET URL:         
2019-06-30 16:44:18 DEBUG::SEARCHQUEUE-MANUAL-289574::User-Agent: 
2019-06-30 16:44:20 DEBUG::SEARCHQUEUE-MANUAL-289574::Traceback (most recent call 
  File "/opt/sickrage/sickrage/core/queues/search.py", line 219, in run
self.success = snatch_episode(search_result)
  File "/opt/sickrage/sickrage/core/databases/main/__init__.py", line 60, in wrapper
return func(*args, **kwargs)
  File "/opt/sickrage/sickrage/core/search.py", line 75, in snatch_episode
dlResult = SabNZBd.sendNZB(result)
  File "/opt/sickrage/sickrage/clients/sabnzbd.py", line 48, in sendNZB
episode_object = show_object.get_episode(nzb.season, episode__number)
  File "/opt/sickrage/sickrage/core/tv/show/__init__.py", line 351, in get_episode
return object_session(self).query(TVEpisode).filter_by(showid=self.indexer_id, season=season, episode=episode).one()
AttributeError: 'NoneType' object has no attribute 'query'

2019-06-30 16:44:20 DEBUG::SEARCHQUEUE-MANUAL-289574::Formatting pattern: %SN - %AD - %EN -> The Late Show with Stephen Colbert - 2019 06 20 - Russell Crowe, The Raconteurs
2019-06-30 16:44:20 INFO::SEARCHQUEUE-MANUAL-289574::Finished manual search for: [The Late Show with Stephen Colbert - 2019 06 20 - Russell Crowe, The Raconteurs]

… and my SickRage install info:
SR Version: 9.4.86
SR Install Type: GIT
SR GIT Commit: 3a3a960c287a9b83d0b12d86c8dba7d1908fc951
Tornado Version: 6.0.2
Python Version: 3.7.3 (default, Apr 3 2019, 19:16:38) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]

I’ll take a closer look at this later tonight.

I’ve updated (due to the fix you provided for https://forums.sickrage.ca/t/found-nzb-does-not-result-in-download/1551), and it seems that this issue has also been resolved. Not sure if it was the same issue or not, but this one can be considered closed too.


I had fixed multiple issues related to NZB and SABnzbd client, glad things are working now :slight_smile: