2.3.3 RC1 unable to clean up UNPACK remote dir

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
digitlman
Newbie
Newbie
Posts: 7
Joined: January 1st, 2010, 9:14 am

2.3.3 RC1 unable to clean up UNPACK remote dir

Post by digitlman » April 11th, 2018, 10:29 am

Version 2.3.3RC1

Destination is a CIFS mount on a Windows box, SAb is linux.

SAB able to download and move, and unpack. Error occurs when it is trying to clean up the UNPACK dir it makes.

Logs:


2018-03-24 00:22:02,414::ERROR::[postproc:447] Error renaming "/mnt/kaylee/Marvels Agents of S H I E L D/_UNPACK_Marvels.Agents.of.S.H.I.E.L.D.S05E14.720p.HDTV.x264-AVS-Obfuscated" to "/mnt/kaylee/Marvels Agents of S H I E L D/Marvels.Agents.of.S.H.I.E.L.D.S05E14.720p.HDTV.x264-AVS-Obfuscated"
2018-03-24 00:22:02,415::INFO::[postproc:448] Traceback:
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/sabnzbd/postproc.py", line 445, in process_job
newfiles = rename_and_collapse_folder(tmp_workdir_complete, workdir_complete, newfiles)
File "/usr/share/sabnzbdplus/sabnzbd/postproc.py", line 953, in rename_and_collapse_folder
renamer(oldpath, newpath)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 36, in call_func
return f(*args, **kw)
File "/usr/share/sabnzbdplus/sabnzbd/misc.py", line 1137, in renamer
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 300, in move
rmtree(src)
File "/usr/lib/python2.7/shutil.py", line 256, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 254, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/mnt/kaylee/Marvels Agents of S H I E L D/_UNPACK_Marvels.Agents.of.S.H.I.E.L.D.S05E14.720p.HDTV.x264-AVS-Obfuscated'

User avatar
safihre
Administrator
Administrator
Posts: 2648
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: 2.3.3 RC1 unable to clean up UNPACK remote dir

Post by safihre » April 11th, 2018, 11:16 am

Not much was changed in that piece of code I think. Are you sure this isn't a Windows locked file problem?
Does it also go wrong when you use a local drive?

digitlman
Newbie
Newbie
Posts: 7
Joined: January 1st, 2010, 9:14 am

Re: 2.3.3 RC1 unable to clean up UNPACK remote dir

Post by digitlman » April 17th, 2018, 1:03 pm

I changed it to the local, downloaded something, and it worked fine.

I can go to the /mnt/cifs through command line on the linux box and create and delete folders no problem.

Post Reply