Page 1 of 1

nzo_id changing for downloads

Posted: May 16th, 2019, 2:15 pm
by Offspring
This is something that came up when trying to troubleshoot a different issue, but basically for some reason SABnzbd is returning the same nzo_id for different downloads of the same file, even though the other tool is (properly) looking for the new nzo_id, the history is only returning one. An example is shown below:

Code: Select all

16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_4jZLrN --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_S0y_6s --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_UcvUF_ --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_PhEUom --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_nAWHhz --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_yOHwXl --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_166EGV --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_IXucOK --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_XzEN_n --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_MiqQpf --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_BM0Kwb --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_oR5UVC --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_xxBwg_ --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_PfPhkh --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_gaJul2 --- SABnzbd_nzo_m4Oi6U [Completed]
16-May-2019 19:41:04 - INFO    :: MainThread : nzo_id: SABnzbd_nzo_DVt3Id --- SABnzbd_nzo_m4Oi6U [Completed]
Is there any reason for this, or is this a bug? Is there anything I can do to try and stop this?

Re: nzo_id changing for downloads

Posted: May 17th, 2019, 5:12 am
by safihre
Could you give some more information?
You add, at once, multiple jobs for the same file and in the queue already they share the same nzo_id?
Or only when added to history?

Re: nzo_id changing for downloads

Posted: May 17th, 2019, 5:51 pm
by evilhero
I can chime in here, as Offspring was talking to me when we came upon this.

He's using a program that monitors sab for completion via api based on finding the nzo_id in the sab history. Sending to Sabnzbd is done via Mylar, and subsequent monitoring is done using Harpoon based on the nzo_id returned from that specific send.

The problem seems to be when Pause on Duplicates is enabled, the nzo_id changes from what it was initially sent back as during the initial addurl command. So even tho the job has completed, the nzo_id it's trying to reference for completion doesn't exist as its been changed for some reason.

With the option disabled, the nzo_id did not change after the initial addurl (which would be the expected result I would think). The program was then able to find it in the history with no problems.

Offspring got a little confused in the initial post due to all the things we were testing, so he asked me to try and clarify things.