Page 1 of 1
Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 10:54 am
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]
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 12:34 pm
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.
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 12:51 pm
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?
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 1:12 pm
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
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 1:18 pm
by nzbtuxnews
Code: Select all
mount | grep mass
/dev/sde5 on /mnt/lhost2-mass-storage type reiserfs (rw)
Anything else?
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 1:22 pm
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?
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 1:27 pm
by nzbtuxnews
I will try both suggestions and post back ASAP.
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 1:35 pm
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?

Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 2:02 pm
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.

Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 3:14 pm
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.
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 2nd, 2013, 5:11 pm
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??
Re: Intermittently getting "Error renaming ... to ..."
Posted: April 3rd, 2013, 12:10 pm
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.