_UNPACK_ prefix sometimes won't go away

Feel free to talk about anything and everything in this board.
Post Reply
spliff99
Newbie
Newbie
Posts: 14
Joined: December 31st, 2009, 1:40 pm

_UNPACK_ prefix sometimes won't go away

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: _UNPACK_ prefix sometimes won't go away

Post 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.
spliff99
Newbie
Newbie
Posts: 14
Joined: December 31st, 2009, 1:40 pm

Re: _UNPACK_ prefix sometimes won't go away

Post by spliff99 »

Strange that microsoft doesn't provide an API for applications to do this kind of operation safely...

Thanks for the workaround though :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: _UNPACK_ prefix sometimes won't go away

Post by shypike »

The "api" is retrying until it succeeds.
SABnzbd gives up after 10 tries with 5 second intervals.
Post Reply