2.0.ORC2 Frequent renaming errors on Windows

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
guitarboy
Jr. Member
Jr. Member
Posts: 69
Joined: January 7th, 2010, 2:44 am

2.0.ORC2 Frequent renaming errors on Windows

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 9079
Joined: January 22nd, 2008, 2:22 pm

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post by sander »

The Download folder is on a USB drive.
What filesystem is on the USB drive?
What happens if you download to C:?
User avatar
safihre
Administrator
Administrator
Posts: 5524
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
guitarboy
Jr. Member
Jr. Member
Posts: 69
Joined: January 7th, 2010, 2:44 am

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9079
Joined: January 22nd, 2008, 2:22 pm

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post 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.
guitarboy
Jr. Member
Jr. Member
Posts: 69
Joined: January 7th, 2010, 2:44 am

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post 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)?
User avatar
sander
Release Testers
Release Testers
Posts: 9079
Joined: January 22nd, 2008, 2:22 pm

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post 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
guitarboy
Jr. Member
Jr. Member
Posts: 69
Joined: January 7th, 2010, 2:44 am

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9079
Joined: January 22nd, 2008, 2:22 pm

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post by sander »

Yes, right link. Two questions, only one answered ...
guitarboy
Jr. Member
Jr. Member
Posts: 69
Joined: January 7th, 2010, 2:44 am

Re: 2.0.ORC2 Frequent renaming errors on Windows

Post by guitarboy »

If the folder renaming switch doesn't work, I'll see if I can reproduce the problem on the C drive.
Post Reply