Page 1 of 1

[1.2.0RC1]URLGRABBER fails

Posted: January 13th, 2017, 12:07 pm
by Taomyn
I have a particular TV program, any episode from Con Man season 2, that when DogNZB sends the release for download, it fails with this error:

Code: Select all

IOError: [Errno 9] Bad file descriptor: u'D:\\Program Files\\<USERNAME>\\admin\\future\\Con.Man.S02E08.Im.with.Stupid.1080p.WEB-DL.DD5.1.H.264-CM.nzb.gz'
2017-01-13 17:52:00,755::DEBUG::[urlgrabber:271] URLGRABBER Traceback: 
Traceback (most recent call last):
  File "sabnzbd\urlgrabber.pyo", line 228, in run
IOError: [Errno 9] Bad file descriptor: u'D:\\Program Files\\<USERNAME>\\admin\\future\\Con.Man.S02E08.Im.with.Stupid.1080p.WEB-DL.DD5.1.H.264-CM.nzb.gz'
The debug log from this only shows the following:

Code: Select all

2017-01-13 17:51:46,078::DEBUG::[interface:523] API-call from 192.168.1.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36] {'output': u'json', 'apikey': u'<HASH>e32b0cc', 'limit': u'5', 'mode': u'queue'}
2017-01-13 17:51:46,078::DEBUG::[interface:523] API-call from 192.168.1.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36] {'output': u'json', 'apikey': u'<HASH>e32b0cc', 'limit': u'10', 'mode': u'history'}
2017-01-13 17:51:58,782::DEBUG::[interface:523] API-call from 190.10.14.170 [ColdFusion] {'output': u'xml', 'apikey': u'<HASH>1d27270', 'mode': u'version'}
2017-01-13 17:51:59,403::DEBUG::[interface:523] API-call from 190.10.14.170 [ColdFusion] {'nzbname': u'Con.Man.S02E08.Im.with.Stupid.1080p.WEB-DL.DD5.1.H.264-CM', 'apikey': u'<HASH>1d27270', 'name': u'https://dognzb.cr/fetch/<HASH>c75da93/<HASH>a975f18', 'priority': u'-1', 'mode': u'addurl', 'output': u'xml'}
2017-01-13 17:51:59,404::INFO::[__init__:552] Fetching https://dognzb.cr/fetch/<HASH>c75da93/<HASH>a975f18
2017-01-13 17:51:59,404::INFO::[nzbqueue:258] Saving queue
2017-01-13 17:51:59,404::DEBUG::[__init__:897] Saving data for <USERNAME>_nzo_3jqobi in \\?\D:\Program Files\<USERNAME>\admin\future
2017-01-13 17:51:59,410::INFO::[__init__:970] Saving data for queue10.sab in D:\Program Files\<USERNAME>\admin\queue10.sab
2017-01-13 17:51:59,415::INFO::[urlgrabber:110] Grabbing URL https://dognzb.cr/fetch/<HASH>c75da93/<HASH>a975f18
2017-01-13 17:52:00,411::DEBUG::[misc:201] Convert index site category "TV > HD" to user-cat "tv"
2017-01-13 17:52:00,753::ERROR::[urlgrabber:270] URLGRABBER CRASHED
Traceback (most recent call last):
  File "sabnzbd\urlgrabber.pyo", line 228, in run
IOError: [Errno 9] Bad file descriptor: u'D:\\Program Files\\<USERNAME>\\admin\\future\\Con.Man.S02E08.Im.with.Stupid.1080p.WEB-DL.DD5.1.H.264-CM.nzb.gz'
2017-01-13 17:52:00,755::DEBUG::[urlgrabber:271] URLGRABBER Traceback: 
Traceback (most recent call last):
  File "sabnzbd\urlgrabber.pyo", line 228, in run
IOError: [Errno 9] Bad file descriptor: u'D:\\Program Files\\<USERNAME>\\admin\\future\\Con.Man.S02E08.Im.with.Stupid.1080p.WEB-DL.DD5.1.H.264-CM.nzb.gz'
2017-01-13 17:52:01,078::DEBUG::[interface:523] API-call from 192.168.1.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36] {'output': u'json', 'apikey': u'<HASH>e32b0cc', 'limit': u'5', 'mode': u'queue'}
2017-01-13 17:52:01,081::DEBUG::[interface:523] API-call from 192.168.1.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36] {'output': u'json', 'apikey': u'<HASH>e32b0cc', 'limit': u'10', 'mode': u'history'}
If I download the nzb and then place it on the Windows share I also have monitored by SABnzbd, the release downloads perfectly. It only fails via the push from DogNZB.

Re: [1.2.0RC1]URLGRABBER fails

Posted: January 13th, 2017, 2:19 pm
by safihre
It's because this file starts with a reserved word in Windows. "Con"
https://www.google.ch/search?q=windows+ ... file+names
We will implement a more proper way of handeling these files in an upcoming release of Sabnzbd.

Re: [1.2.0RC1]URLGRABBER fails

Posted: January 13th, 2017, 2:55 pm
by Taomyn
safihre wrote:It's because this file starts with a reserved word in Windows. "Con"
https://www.google.ch/search?q=windows+ ... file+names
We will implement a more proper way of handeling these files in an upcoming release of Sabnzbd.
Might explain why the NZB file I download for these episodes start with an underscore e.g. _Con.Man.S02E08.Im.with.Stupid.1080p.WEB-DL.DD5.1.H.264-CM

Can you confirm if the removal of the underscore is SABnzbd or something when the DogNZB pushes the release? If it's the latter, then I can report the problem to them.

Re: [1.2.0RC1]URLGRABBER fails

Posted: January 13th, 2017, 3:12 pm
by shypike
Could be that we filter them.
We've already decided to tackle the "con.", "aux." etc issue for release 1.2.1
We cannot solve the problem completely, but at least prevent unnecessary harm (like in folder titles)
and make it so that it doesn't affect other jobs.

Re: [1.2.0RC1]URLGRABBER fails

Posted: February 8th, 2017, 4:06 am
by safihre
In 1.2.1 these files can be handled now.
You can download the 1.2.1 beta here: https://sabnzbd.org/downloads

Re: [1.2.0RC1]URLGRABBER fails

Posted: February 8th, 2017, 4:17 am
by Taomyn
Excellent, thanks - I've just installed it and will give it a test later.

Re: [1.2.0RC1]URLGRABBER fails

Posted: February 8th, 2017, 9:42 am
by Taomyn
Confirm it works for the ones that were failing for me before. Great job, thanks.