Page 1 of 1

2.0.ORC2 Frequent renaming errors on Windows

Posted: April 3rd, 2017, 11:23 pm
by guitarboy
I'm still seeing frequent renaming errors in 2.0.ORC2. I was seeing these in the previous production release but hoping it would be resolved in the new update. I've searched the forum and seen similar complaints but haven't found a satisfactory solution.

A typical error message looks like this:
Error renaming "E:\Downloads\complete\TV\Xxxx\Season 1\_UNPACK_Xxxx.S01E04.1080p.WEB.h264-MOROSE" to "E:\Downloads\complete\TV\Xxxx\Season 1\Xxxx.S01E04.1080p.WEB.h264-MOROSE"
I also end up with multiple directories (d) and multiple copies of the file; e.g.

Code: Select all

Season 1
	_UNPACK_Xxxx.S01E04.1080p.WEB.h264-MOROSE (d)
		Xxxx.s01e04.1080p.web.h264-morose.mkv
	Xxxx.S01E04.1080p.WEB.h264-MOROSE (d)
		_UNPACK_Xxxx.S01E04.1080p.WEB.h264-MOROSE (d)
			Xxxx.s01e04.1080p.web.h264-morose.mkv
		Xxxx.s01e04.1080p.web.h264-morose.mkv
In this case the file was properly renamed. In some cases (not all) the file is not renamed at all, although I'll still end up with multiple files and directories. Here's a log from one of those cases:
Name
Xxx.Xxxxxx.Xxxx.S01E07.Xxx.Xxx.Xxxx.Xxx.Xxxx.1080p.HBO.WEB-DL.DD5.1.H.264-monkee
Completed
02/04/2017 20:30
Status
Completed
Size
1.7 GB
Category
tv
Path
E:\Downloads\complete\TV\Xxx Xxxxxx Xxxx\Season 1\Xxx.Xxxxxx.Xxxx.S01E07.Xxx.Xxx.Xxxx.Xxx.Xxxx.1080p.HBO.WEB-DL.DD5.1.H.264-monkee
Source
https://nzb.su/getnzb/1aa973aa6cc2b9db0 ... 2fae5a0933
Download
Downloaded in 6 mins 35 seconds at an average of 4.3 MB/s
Age: 1h
Servers
us-secure.newsdemon.com=1.7 GB
Repair
[cbf94fb8de414e9d9926e0847edbaede] Quick Check OK
Unpack
[cbf94fb8de414e9d9926e0847edbaede] Unpacked 1 files/folders in 39 seconds
The final file name is cbf94fb8de414e9d9926e0847edbaede.mkv.

I'm on Windows 10. The Download folder is on a USB drive.

What's causing this problem, and is there anything I can do to fix it?

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 4th, 2017, 12:27 am
by sander
The Download folder is on a USB drive.
What filesystem is on the USB drive?
What happens if you download to C:?

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 4th, 2017, 1:22 am
by safihre
You can try to disable the switch "Enable Folder rename"
But Sander is right, there is a high chance that it's due to the filesystem rather than SABnzbd.
We actually retry the rename a couple of times, but if anything is blocking it after 5 seconds (like virusscanner, the OS or a slow drive etc) then it will still fail.

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 5th, 2017, 2:01 pm
by guitarboy
The device is NTFS and is connected via USB 3.0.

I'll try turning off folder rename and report back on whether that works. Using C: isn't really a solution - SAB should be able to handle an external drive. I've run a benchmark program against both drives and the E drive is actually faster.

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 6th, 2017, 12:31 am
by sander
SAB should be able to handle an external drive.
Correct. And SAB does not even know nor care if a drive is external or not. As long as it works transparently.

But in practice drives are not as transparent as they should be in theory. Example problems:
- disk not ready at starting of SAB
- disk becomes unavailabe
- disk goes to sleep
- virus scanner causing problems
- drive / FS has a file size limitation
- drive / FS has path / file name length limitation
- drive / FS can path / file name character limitation
- disk has a rights setting, causing problems
- disk only writable on 2nd or 3rd try

Should those things happen? No.
Do those things happen? Yes.
How can you find the problem? By reduction, deduction and induction. In other words: by analysis, by elimination, combined with some trial-and-error.

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 6th, 2017, 9:37 am
by guitarboy
I'm happy to help. What do you suggest I do to analyze the problem, in addition to turning off the folder renaming (which so far seems to be working, although I haven't done a lot of testing)?

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 6th, 2017, 10:57 am
by sander
guitarboy wrote:I'm happy to help.
IMHO it's the other way around...

Anyway: what's the result of https://forums.sabnzbd.org/viewtopic.ph ... 17#p111601

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 6th, 2017, 2:57 pm
by guitarboy
sander wrote:Anyway: what's the result of https://forums.sabnzbd.org/viewtopic.ph ... 17#p111601
Is that the right link? It just goes back to this thread. So far turning off folder renaming is working, but the problem was intermittent. I'll let you know if the issue persists.

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 6th, 2017, 3:15 pm
by sander
Yes, right link. Two questions, only one answered ...

Re: 2.0.ORC2 Frequent renaming errors on Windows

Posted: April 6th, 2017, 3:55 pm
by guitarboy
If the folder renaming switch doesn't work, I'll see if I can reproduce the problem on the C drive.