Page 1 of 1

Error removing workdir - unRAID

Posted: August 18th, 2011, 12:28 pm
by jubei
I've been having an issue, that I suspect is a permissions issue, on unRAID with removing a working directory. Has anyone seen anything like this before?

Code: Select all

2011-08-18 12:41:40,821::INFO::[postproc:317] unpack_magic finished on <downloadfolder>
2011-08-18 12:41:40,861::DEBUG::[misc:732] Moving. Old path:/mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>/.AppleDouble/.Parent new path:/mnt/user/TV/_intake/_UNPACK_<downloadfolder>/.AppleDouble/.Parent unique?:False
2011-08-18 12:41:40,862::INFO::[misc:718] Creating directories: /mnt/user/TV/_intake/_UNPACK_<downloadfolder>/.AppleDouble
2011-08-18 12:41:40,892::INFO::[urlgrabber:110] Removing nzbmatrix bookmark 688791
2011-08-18 12:41:40,988::INFO::[postproc:473] Cleaning up <downloadfolder> (keep_basic=False)
2011-08-18 12:41:41,018::INFO::[__init__:822] /mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>/__ADMIN__/SABnzbd_nzf_t1d3Ne removed
2011-08-18 12:41:41,030::INFO::[__init__:822] /mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>/__ADMIN__/SABnzbd_nzf_p9RM85 removed
2011-08-18 12:41:41,030::INFO::[__init__:822] /mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>/__ADMIN__/SABnzbd_nzf_a2u4xS removed
2011-08-18 12:41:41,030::INFO::[__init__:822] /mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>/__ADMIN__/SABnzbd_nzf_1rNGMl removed
2011-08-18 12:41:41,039::DEBUG::[postproc:483] Removing workdir /mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>
2011-08-18 12:41:41,040::ERROR::[postproc:487] Error removing workdir (/mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>)
2011-08-18 12:41:41,040::INFO::[postproc:488] Traceback: 
Traceback (most recent call last):
  File "/mnt/cache/.sabnzbd/sabnzbd/postproc.py", line 485, in process_job
    remove_dir(workdir)
  File "/mnt/cache/.sabnzbd/sabnzbd/misc.py", line 1144, in remove_dir
    os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/mnt/cache/.sabnzbd/downloads/incomplete/<downloadfolder>'
2011-08-18 12:41:41,073::INFO::[postproc:83] Saving postproc queue
2011-08-18 12:41:41,074::INFO::[__init__:833] Saving data for postproc1.sab in /mnt/cache/.sabnzbd/admin/postproc1.sab
2011-08-18 12:41:41,074::INFO::[downloader:229] Post-processing finished, resuming download

Re: Error removing workdir - unRAID

Posted: August 29th, 2011, 9:39 pm
by armless
Same problem. Netatalk is creating the .AppleDouble folder automatically. Sabnzbd can't do a rmdir unless the folder is empty. My permissions seem to be correct, but the .AppleDouble file isn't being moved/deleted with the rest of the files.

Any ideas?

Re: Error removing workdir - unRAID

Posted: August 30th, 2011, 3:35 am
by shypike
I've seen complaints like this before.
Our policy is that SABnzbd only ever removes files that it creates itself.
Nothing else should create content in the temporary folders, but the reality is different.
Maybe the policy should be dropped for anything in the "temporary download" folders.
I'll look into it.