OS: Mac OS X 10.8.2
Install-type: OSX .app
Skin (if applicable): Plush Gold
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes
The PostProcessing function failed when attempting to process a set. I think it doesn't handle the set properly if it includes unicode characters in the set name.
Here are the relevant log entries
Code: Select all
2012-10-06 19:45:49,072::DEBUG::[rss:324] Running feedparser on https://www.newzxxx2.ch/[REMOVED]
2012-10-06 19:45:51,066::DEBUG::[rss:326] Done parsing https://www.newzxxx2.ch/[REMOVED]
2012-10-06 19:45:51,066::DEBUG::[rss:392] Trying title SubjectTest²
2012-10-06 19:45:51,066::DEBUG::[rss:419] Filter matched on rule 0
2012-10-06 19:45:51,067::INFO::[rss:579] Adding 1234567 (SubjectTest²) to queue
2012-10-06 19:45:51,068::INFO::[__init__:477] Fetching msgid 6942498 from www.newzbin2.es
2012-10-06 19:45:51,069::INFO::[nzbqueue:176] Saving queue
2012-10-06 19:45:51,069::DEBUG::[__init__:820] Saving data for SABnzbd_nzo_N9OniY in /Users/smudge/Library/Application Support/SABnzbd/admin/future
2012-10-06 19:45:51,069::INFO::[__init__:895] Saving data for queue9.sab in /Users/smudge/Library/Application Support/SABnzbd/admin/queue9.sab
2012-10-06 19:45:51,572::DEBUG::[newzbin:105] Popping msgid 1234567
2012-10-06 19:45:51,573::INFO::[newzbin:152] Fetching NZB for Newzbin report #1234567
2012-10-06 19:45:58,055::INFO::[newzbin:251] Successfully fetched report 1234567 - SubjectTest^2 (cat=Movies) (SubjectTest^2.nzb)
2012-10-06 19:45:58,056::INFO::[__init__:884] /Users/smudge/Library/Application Support/SABnzbd/admin/future/SABnzbd_nzo_N9OniY removed
2012-10-06 19:45:58,056::INFO::[nzbqueue:213] Regenerating item: SABnzbd_nzo_N9OniY
2012-10-06 19:45:58,446::INFO::[misc:792] Creating directories: /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²
2012-10-06 19:45:58,452::DEBUG::[__init__:820] Saving data for SABnzbd_nzf_Cy1g8H in /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__
2012-10-06 19:45:58,452::INFO::[nzbstuff:429] File FilenameTest²_20121006.par2 added to queue
[remaining files added to queue]
2012-10-06 19:45:58,772::INFO::[__init__:565] Backing up /Users/smudge/usenet/SABnzbd/.nzbBackups/SubjectTest^2.nzb.gz
2012-10-06 19:45:58,851::INFO::[__init__:565] Backing up /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SubjectTest^2.nzb.gz
2012-10-06 19:45:58,934::INFO::[nzbqueue:176] Saving queue
2012-10-06 19:45:58,934::DEBUG::[__init__:820] Saving data for SABnzbd_nzo_N9OniY in /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__
2012-10-06 19:45:58,937::INFO::[__init__:895] Saving data for queue9.sab in /Users/smudge/Library/Application Support/SABnzbd/admin/queue9.sab
2012-10-06 19:46:06,610::INFO::[__init__:895] Saving data for rss_data.sab in /Users/smudge/Library/Application Support/SABnzbd/admin/rss_data.sab
2012-10-06 19:46:06,619::INFO::[rss:505] Finished scheduled RSS read-out
2012-10-09 03:34:03,551::INFO::[panic:247] Lauching browser with http://localhost:8085/sabnzbd
2012-10-09 03:34:37,881::DEBUG::[nzbqueue:431] Resumed nzo: SABnzbd_nzo_N9OniY
2012-10-09 03:35:04,845::DEBUG::[nzbstuff:207] Finishing import on FilenameTest²_20121006.par2
2012-10-09 03:35:04,889::DEBUG::[__init__:854] Loading data for SABnzbd_nzf_Cy1g8H from /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_Cy1g8H
2012-10-09 03:35:04,917::INFO::[downloader:375] [email protected]:563: Initiating connection
[files downloading]
2012-10-09 03:35:06,886::INFO::[assembler:87] Decoding /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/FilenameTest²_20121006.par2 yenc
2012-10-09 03:35:06,908::DEBUG::[assembler:108] Got md5pack for set FilenameTest²_20121006
2012-10-09 03:45:51,107::DEBUG::[nzbstuff:207] Finishing import on FilenameTest²_20121006.r46
2012-10-09 03:45:51,108::DEBUG::[__init__:854] Loading data for SABnzbd_nzf_VIJ3c8 from /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_VIJ3c8
2012-10-09 03:48:21,019::DEBUG::[__init__:820] Saving data for SABnzbd_nzo_N9OniY in /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__
2012-10-09 03:48:21,260::INFO::[__init__:895] Saving data for totals9.sab in /Users/smudge/Library/Application Support/SABnzbd/admin/totals9.sab
2012-10-09 03:48:21,261::INFO::[assembler:87] Decoding /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/FilenameTest²_20121006.r46 yenc
2012-10-09 03:48:26,486::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzo_N9OniY removed
2012-10-09 03:48:26,487::INFO::[nzbqueue:176] Saving queue
2012-10-09 03:48:26,487::INFO::[__init__:895] Saving data for queue9.sab in /Users/smudge/Library/Application Support/SABnzbd/admin/queue9.sab
2012-10-09 03:48:26,490::INFO::[postproc:84] Saving postproc queue
2012-10-09 03:48:26,490::INFO::[__init__:895] Saving data for postproc1.sab in /Users/smudge/Library/Application Support/SABnzbd/admin/postproc1.sab
2012-10-09 03:48:26,495::INFO::[downloader:238] Waiting for post-processing to finish
2012-10-09 03:48:26,498::INFO::[postproc:280] Starting PostProcessing on SubjectTest² => Repair:True, Unpack:True, Delete:True, Script:None, Cat:*
2012-10-09 03:48:27,005::INFO::[postproc:546] Par2 check starting on SubjectTest²
2012-10-09 03:48:27,006::INFO::[postproc:561] Running repair on set FilenameTest²_20121006
2012-10-09 03:48:27,014::ERROR::[postproc:484] Post Processing Failed for SubjectTest² ()
2012-10-09 03:48:27,015::INFO::[postproc:486] Traceback:
Traceback (most recent call last):
File "sabnzbd/postproc.pyc", line 284, in process_job
File "sabnzbd/postproc.pyc", line 563, in parring
File "sabnzbd/newsunpack.pyc", line 775, in par2_repair
File "sabnzbd/newsunpack.pyc", line 1297, in QuickCheck
KeyError: 'FilenameTest\xc3\x82\xc2\xb2_20121006.r46'
2012-10-09 03:48:27,521::INFO::[postproc:519] Cleaning up SubjectTest² (keep_basic=True)
2012-10-09 03:48:27,522::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_h8cXrI removed
2012-10-09 03:48:27,522::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_tKQVZB removed
2012-10-09 03:48:27,523::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_pxzWgb removed
2012-10-09 03:48:27,523::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_z9V_S0 removed
2012-10-09 03:48:27,524::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_1FfM5l removed
2012-10-09 03:48:27,524::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_JbT8aa removed
2012-10-09 03:48:27,525::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_S1DN14 removed
2012-10-09 03:48:27,525::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_JpX_bg removed
2012-10-09 03:48:27,525::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_iAxipP removed
2012-10-09 03:48:27,526::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_jzzLMl removed
2012-10-09 03:48:27,526::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_4k56Wa removed
2012-10-09 03:48:27,526::INFO::[__init__:884] /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__/SABnzbd_nzf_u3wmsx removed
2012-10-09 03:48:27,529::INFO::[misc:1260] Cannot remove folder /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__
2012-10-09 03:48:27,529::INFO::[misc:1260] Cannot remove folder /Users/smudge/usenet/SABnzbd/.incomplete/SubjectTest²/__ADMIN__
Here is the section of the QuickCheck function. Line 1297 is the checking of the nzf.md5sum value to the md5pack values. I think it doesn't handle the escaped unicode characters in the key name properly.
Code: Select all
for nzf in nzf_list:
if file == name_fixer(nzf.filename):
found = True
if (nzf.md5sum is not None) and nzf.md5sum == md5pack[file]:
It might be related to this but another issue I noticed is the conversion from latin-1 to unicode doesn't seem to be proper.
The NZB XML file has a title with a unicode character (superscript character ² in this case) as escaped HTML text of ²
Code: Select all
<title>TestSubject²</title>
Code: Select all
atitle = latin1(jobs[link].get('title', ''))
Code: Select all
logging.debug('Trying title %s', atitle)
2012-10-06 19:45:51,066::DEBUG::[rss:392] Trying title TestSubject²
The "title" variable is the "atitle" converted to unicode, which becomes bytes C2 B2.
Code: Select all
title = unicoder(atitle)
Code: Select all
logging.info("Adding %s (%s) to queue", m.group(3), title)
2012-10-06 19:45:51,067::INFO::[rss:579] Adding 1234567 (TestSubject²) to queue
Code: Select all
2012-10-06 19:45:51,067::INFO::[rss:579] Adding 1234567 (TestSubject²) to queue
However, it is interpreting the unicode superscript character ² (C2 B2) as 2 separate Latin1 characters (C2 and B2). The C2 is the  char (Latin capital A with circumflex accent) and is converted to the unicode bytes C3 82. This makes the title entry become "C3 82 C2 B2".
When it goes to compare the checksum, it is looking it up using the 2 characters (C3 82 C2 B2) instead of the proper single unicode character (C2 B2).
Code: Select all
KeyError: 'FilenameTest\xc3\x82\xc2\xb2_20121006.r46'
I hope this is useful.
P.S. I noticed that the newzbin module archives the NZB changing the unicode superscript 2 character to two different characters, a circumflex accent and the number 2 (although I don't think it has anything to do with this issue). Perhaps it should be saved as unicode instead?
Code: Select all
2012-10-06 19:45:58,055::INFO::[newzbin:251] Successfully fetched report 1234567 - SubjectTest^2 (cat=XXX) (SubjectTest^2.nzb)