Code: Select all
2016-10-26 16:59:14,444::DEBUG::[postproc:723] MyDebug: wdir is /av/new/movies
2016-10-26 16:59:14,445::DEBUG::[postproc:724] MyDebug: filename is blar.idx
2016-10-26 16:59:14,445::DEBUG::[postproc:723] MyDebug: wdir is /av/new/movies
2016-10-26 16:59:14,445::DEBUG::[postproc:724] MyDebug: filename is How to bla (2014).mkv
2016-10-26 16:59:14,445::DEBUG::[postproc:723] MyDebug: wdir is /av/new/movies
2016-10-26 16:59:14,446::DEBUG::[postproc:724] MyDebug: filename is 3� (bla y bla).part1.rar
So each time SABnzbd is parsing /av/new/movies. I don't understand that either, and I don't understand how safihre's comment can be the explanation. But Safihre is a clever man, so maybe I need some time ... ;-)
Looking at postproc.py:
Code: Select all
# Cleanup again, including NZB files
if all_ok:
cleanup_list(workdir_complete, False)
Code: Select all
def cleanup_list(wdir, skip_nzb):
""" Remove all files whose extension matches the cleanup list,
optionally ignoring the nzb extension
"""
if cfg.cleanup_list():
My hypothesis: workdir_complete should point specifically to the workdir of the specifc download (and that should be cleaned up), not to a general directory. I would say there is a difference between workdir and workdir_complete. But not in your case ... ? Something goes wrong in an assignment? A brute force analysis of the assignment:
Code: Select all
$ cat sabnzbd/postproc.py | grep "workdir_complete ="
workdir_complete = ''
tmp_workdir_complete = None
workdir_complete = workdir
workdir_complete = create_dirs(complete_dir)
workdir_complete = get_unique_path(os.path.join(complete_dir, dirname), create_dir=True)
tmp_workdir_complete = prefix(workdir_complete, '_UNPACK_')
tmp_workdir_complete = workdir_complete
workdir_complete = tmp_workdir_complete.replace('_UNPACK_', '_FAILED_')
workdir_complete = get_unique_path(workdir_complete, n=0, create_dir=False)
workdir_complete = workdir_complete
workdir_complete = one_file_or_folder(workdir_complete)
workdir_complete = os.path.normpath(workdir_complete)
My guess is we should find the cause there.
EDIT:
This is supporting my hypothesis:
Something set in my cleanup list, two seperate downloads, with logging of the wdir:
Code: Select all
$ cat sabnzbd.log | grep -i mydebug | grep wdir
2016-10-27 08:10:22,196::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,202::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,204::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,206::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,207::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,208::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,208::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,209::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_very importand download
2016-10-27 08:10:22,215::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/very importand download
2016-10-27 08:10:22,216::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/very importand download
2016-10-27 08:10:22,218::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/very importand download
2016-10-27 08:10:22,219::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/very importand download
2016-10-27 08:10:40,889::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,891::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,892::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,895::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,897::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,899::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,900::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,901::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/_UNPACK_something I want
2016-10-27 08:10:40,904::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/something I want
2016-10-27 08:10:40,905::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/something I want
2016-10-27 08:10:40,906::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/something I want
2016-10-27 08:10:40,907::DEBUG::[postproc:737] MyDebug: wdir is /home/sander/Downloads/complete/something I want
Now we have to find out why that does not happen on your system...