Page 1 of 1

"Error: File does not exist" on Ubuntu

Posted: May 22nd, 2012, 3:46 am
by el_pedr0
Hi,

I've recently done a fresh installation of Ubuntu server 12.04 and reinstalled SABnzbd. Now I get a very strange error once the downloaded files have been unpacked. The .rar files seem to be fine in the 'Incomplete' folder where they initially get downloaded, but once they are unpacked and moved by SABnzbd into another folder, the resulting files seem to be inaccessible. This causes the subsequent SABtosickbeard script to fail with an error "File does not exist" (I'll paste the full error when I'm back at the machine).

When I log into the Ubuntu server and do ls -al to see the unpacked files this is what I see:

Code: Select all

?????????? ? ?        ?             ?            ? MyDownload.S01E20.720p.BluRay.X264-REWARD.mkv
?????????? ? ?        ?             ?            ? MyDownload.s01e20.720p.bluray.x264-reward.nfo
?????????? ? ?        ?             ?            ? MyDownload.S01E20.720p.BluRay.X264-REWARD.nzb
?????????? ? ?        ?             ?            ? MyDownload.s01e20.720p.bluray.x264-reward.sample.mkv
?????????? ? ?        ?             ?            ? MyDownload.s01e20.720p.bluray.x264-reward.sample-sample.srs
?????????? ? ?        ?             ?            ? MyDownload.s01e20.720p.bluray.x264-reward.sfv
?????????? ? ?        ?             ?            ? MyDownload.s01e20.720p.bluray.x264-reward.srr
-rwxrwxr-x 1 myuser mygroup     1 May 21 23:20 .nomedia
I haven't edited those question marks - that's what actually appears under ls -al. However, when I reboot the machine, those same files now appear normally and are accessible. Furthermore, the .rar files that get downloaded to the 'incomplete' directory appear normal when I do ls -al - so the problem seems to arise as a result of the unpacking process.

Any idea how I can fix it, or what I need to do to determine the cause of the problem?

Cheers

Re: "Error: File does not exist" on Ubuntu

Posted: May 22nd, 2012, 3:59 am
by sander
On what kind of filesystem (ext3/4, btrfs, USB, SATA) is SABnzbd saving the files?

Re: "Error: File does not exist" on Ubuntu

Posted: May 22nd, 2012, 6:50 am
by el_pedr0
It's ext4. But to make things a tad more complicated, I run SABnzbd in a VirtualBox virtual machine. The directory that SABnzbd saves to is actually a VirtualBox shared folder so it is mounted as -t vboxsf.

My first suspicions do not lie with VirtualBox though, because I used to run it all successfully in exactly the same set up but using Ubuntu server 10.04 instead of 12.04, and also because the .rar files are saved to the same sharedfolder but do not suffer from this problem - it's only once they've been unpacked and moved by SABnzbd.

Thanks for the help.

Re: "Error: File does not exist" on Ubuntu

Posted: May 22nd, 2012, 7:12 am
by sander
el_pedr0 wrote:It's ext4. But to make things a tad more complicated, I run SABnzbd in a VirtualBox virtual machine. The directory that SABnzbd saves to is actually a VirtualBox shared folder so it is mounted as -t vboxsf.

My first suspicions do not lie with VirtualBox though, because I used to run it all successfully in exactly the same set up but using Ubuntu server 10.04 instead of 12.04, and also because the .rar files are saved to the same sharedfolder but do not suffer from this problem - it's only once they've been unpacked and moved by SABnzbd.

Thanks for the help.
Interesting. I would advice you to 'play' with the different parameters to see any differences. First of all I would only use non-shared directories. And you could manually unpack the files and see if that makes any difference.

Re: "Error: File does not exist" on Ubuntu

Posted: May 22nd, 2012, 7:43 am
by el_pedr0
Thanks Sander. I'll try changing all my download folders to the home drive temporarily (that's not a shared folder). Manually unpacking sounds like a good test - I'd be grateful for any guidelines on how to do that (using the same program the SABnzbd uses).

Cheers

Re: "Error: File does not exist" on Ubuntu

Posted: May 27th, 2012, 8:39 am
by el_pedr0
OK. I've done some more testing...
The problem does not occur when I use my home folder, so perhaps it is caused by the use of VirtualBox shared folder. However, I did have this working on my previous setup, which was exactly the same except the OS was Ubuntu server 11.04, so I'd like to try and get it working again.

Now I've noticed that the problem occurs when SABnzbd moves files. E.g. When I set SABnzbd to stop at the 'Repair' stage, it downloads the rar files in the 'Incomplete' directory and these files behave perfectly normally (I can see them when I use ls -al and I can move them using mv). However, once the download is finished and it moves the .rar files to the Completed directory (in my case that's the parent directory of the 'Incomplete' directory), the problem occurs. Specifically, I can no longer move or copy the files using mv because I get an error saying "No such file or directory" and ls -al produces the type of output that I put in the OP.

So I have some hope because I can move .rar files using mv from a command line before SABnzbd has finished downloading all the rar files. How does the way that SABnzbd move files differ from the way that mv moves files?

Does anyone have any ideas what steps I could take next to debug the problem?

Cheers