Intermittently getting "Error renaming ... to ..."

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
nzbtuxnews
Jr. Member
Jr. Member
Posts: 85
Joined: March 5th, 2011, 2:03 pm

Intermittently getting "Error renaming ... to ..."

Post by nzbtuxnews »

Since I upgraded to latest version of SAB (0.7.11), I am intermittently getting errors such as

Code: Select all

2013-04-02 10:30:45,404	ERROR:	Error renaming "/mnt/lhost2-mass-storage/sabnzbd+/complete/Music/_UNPACK_ABC123" to "/mnt/lhost2-mass-storage/sabnzbd+/complete/Music/ABC123"
On a different (but unrelated) topic, I downloaded the latest SAB zip file, extracted in my webroot and started the thing up! The readme file in SAB's folder indicates latest version (0.7.11) while in SAB's webpage, I get 0.7.x.... Strange!?

Code: Select all

Version: 	0.7.x
Uptime: 	9d
Config File: 	/var/www/htdocs/SABnzbd/sabnzbd.ini
Used cache: 	Cached 0 articles (0 B)
Parameters: 	/var/www/htdocs/SABnzbd/SABnzbd.py -d -f /var/www/htdocs/SABnzbd/sabnzbd.ini
Python Version: 	2.6.4 (r264:75706, Dec 5 2009, 21:18:28) [GCC 4.3.3]
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by sander »

nzbtuxnews wrote:Since I upgraded to latest version of SAB (0.7.11), I am intermittently getting errors such as

Code: Select all

2013-04-02 10:30:45,404	ERROR:	Error renaming "/mnt/lhost2-mass-storage/sabnzbd+/complete/Music/_UNPACK_ABC123" to "/mnt/lhost2-mass-storage/sabnzbd+/complete/Music/ABC123"
Let me guess: /mnt/lhost2-mass-storage/ is NOT an internal drive, but NAS (or maybe a USB-drive)?

If so ... your external drive is unreachable (or too slow) for the OS at the moment SABnzbd wants to use it.
nzbtuxnews
Jr. Member
Jr. Member
Posts: 85
Joined: March 5th, 2011, 2:03 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by nzbtuxnews »

Let me guess: /mnt/lhost2-mass-storage/ is NOT an internal drive, but NAS (or maybe a USB-drive)?
No! /mnt/lhost2.. is an internal SATA2 drive. Its not returning any error messages via dmesg or /var/log/messages and seems to be working just fine as I use it as a transfer media from machine to machine using NFS mounts..

I am pretty confident to say that this started just after I upgraded from 0.7.X to 0.7.11. Before I never had this problem.

Also I've just looked in SAB's complete music folder and there are no such folders named ABC123.

EDIT: looking in SAB's detailed logs, it seems everything went fine until:

Code: Select all

2013-04-02 10:30:32,950::ERROR::[postproc:397] Error renaming "/mnt/lhost2-mass-storage/sabnzbd+/complete/Music/_UNPACK_ABC123" to "/mnt/lhost2-mass-storage/sabnzbd+/complete/Music/ABC123"
2013-04-02 10:30:32,950::INFO::[postproc:398] Traceback: 
Traceback (most recent call last):
  File "/var/www/htdocs/SABnzbd/sabnzbd/postproc.py", line 395, in process_job
    newfiles = rename_and_collapse_folder(tmp_workdir_complete, workdir_complete, newfiles)
  File "/var/www/htdocs/SABnzbd/sabnzbd/postproc.py", line 774, in rename_and_collapse_folder
    renamer(oldpath, newpath)
  File "/var/www/htdocs/SABnzbd/sabnzbd/misc.py", line 1247, in renamer
    os.rename(old, new)
OSError: [Errno 2] No such file or directory
2013-04-02 10:30:33,070::INFO::[postproc:521] Cleaning up ABC123 (keep_basic=False)
2013-04-02 10:30:33,071::INFO::[__init__:893] /mnt/lhost2-mass-storage/sabnzbd+/incomplete/ABC123/__ADMIN__/SABnzbd_nzf_BdgU4J removed
2013-04-02 10:30:33,071::INFO::[__init__:893] /mnt/lhost2-mass-storage/sabnzbd+/incomplete/ABC123/__ADMIN__/SABnzbd_nzf_lQE172 removed
2013-04-02 10:30:33,071::INFO::[__init__:893] /mnt/lhost2-mass-storage/sabnzbd+/incomplete/ABC123/__ADMIN__/SABnzbd_nzf_AeIji8 removed
2013-04-02 10:30:33,073::INFO::[postproc:84] Saving postproc queue
Then the logs are normal again.. What happened?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by sander »

I've no idea.

Can you go back to 0.7.X to see if it goes away?

What is the output of:

mount | grep mass
nzbtuxnews
Jr. Member
Jr. Member
Posts: 85
Joined: March 5th, 2011, 2:03 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by nzbtuxnews »

Code: Select all

mount | grep mass
/dev/sde5 on /mnt/lhost2-mass-storage type reiserfs (rw)
Anything else?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by sander »

nzbtuxnews wrote:

Code: Select all

mount | grep mass
/dev/sde5 on /mnt/lhost2-mass-storage type reiserfs (rw)
Anything else?
Apart from "Can you go back to 0.7.X to see if it goes away?"?

Oh, yes: do you have another drive in your system? What if you use that one?
nzbtuxnews
Jr. Member
Jr. Member
Posts: 85
Joined: March 5th, 2011, 2:03 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by nzbtuxnews »

I will try both suggestions and post back ASAP.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by sander »

nzbtuxnews wrote:I will try both suggestions and post back ASAP.
Cool.

BTW: "/dev/sde" ... does that mean 5 different harddrives in your system? ???
nzbtuxnews
Jr. Member
Jr. Member
Posts: 85
Joined: March 5th, 2011, 2:03 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by nzbtuxnews »

BTW: "/dev/sde" ... does that mean 5 different harddrives in your system?
Actually there are 7 hard drives in this machine.
7 online, and 5 offline for backups for a total of 12!

Its a server. ;)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by shypike »

Disable folder renaming in Config->Switches.
Normally we recommend this only for Windows, but your system seems to have a will of its own.
nzbtuxnews
Jr. Member
Jr. Member
Posts: 85
Joined: March 5th, 2011, 2:03 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by nzbtuxnews »

Disable folder renaming in Config->Switches.
Normally we recommend this only for Windows, but your system seems to have a will of its own.
So is it a bug or my system has a problem??
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Intermittently getting "Error renaming ... to ..."

Post by shypike »

It's not a bug.
Some systems (especially Windows) forbid renaming if any process so much as looks at a folder.
Indexing services and virus scanner are notorious for preventing renames.
Like I said, it's mostly an issue on Windows. We've never really received reports about other OSses doing that.
Post Reply