Page 1 of 1

_UNPACK_ prefix sometimes won't go away

Posted: March 5th, 2011, 7:43 am
by spliff99
Hi,

I'm currently running sabnzbd 0.5.6 on Win 7. Although this problem has been happening for months.

My downloads are completing and extracting ok. They are even being moved into the completed folder. However about 50% of the time the _UNPACK_ prefix doesn't go away. So some of my downloads look like "_UNPACK_The.Office.S07E17.HDTV.XviD-LOL" for example. This is incredibly annoying because it messes with the sorting of my downloads.

I've checkled the logs, and the last time it happened there was an error logged:

Code: Select all

2011-03-04 22:27:17,811::ERROR::[postproc:369] Error renaming "C:\Users\John\Documents\downloads\complete\TV\_UNPACK_Lie.to.Me.S02E18.720p.HDTV.X264-DIMENSION" to "C:\Users\John\Documents\downloads\complete\TV\Lie.to.Me.S02E18.720p.HDTV.X264-DIMENSION"
2011-03-04 22:27:17,811::INFO::[postproc:370] Traceback: 
Traceback (most recent call last):
  File "sabnzbd\postproc.pyo", line 366, in run
  File "sabnzbd\misc.pyo", line 1352, in renamer
WindowsError: [Error 5] Access is denied
So is this a known issue? If it's a permissions problem why does it only happen some of the time? (I'm not messing around inside the downloads folder at the time it's unpacking or anything)

Any ideas?

Thanks for any help.

Re: _UNPACK_ prefix sometimes won't go away

Posted: March 5th, 2011, 8:05 am
by shypike
Known issue, caused by Windows paranoia.
Windows forbids renaming if it suspects another program is looking
at a folder (like the virus scanner).
You can disable renaming by changing a special setting.
http://wiki.sabnzbd.org/configure-special item "folder_rename".

Or upgrade to 0.6.0 Beta3, which has this setting in Config->Switches.

Re: _UNPACK_ prefix sometimes won't go away

Posted: March 5th, 2011, 8:25 am
by spliff99
Strange that microsoft doesn't provide an API for applications to do this kind of operation safely...

Thanks for the workaround though :)

Re: _UNPACK_ prefix sometimes won't go away

Posted: March 5th, 2011, 9:22 am
by shypike
The "api" is retrying until it succeeds.
SABnzbd gives up after 10 tries with 5 second intervals.