Page 1 of 1

Unable to move file - Unknown value passed in, ignoring it

Posted: September 8th, 2012, 11:23 am
by kl1k
Stuggling with some weird problems.

SAB Running on my R-Pi. I've got a CIFS share mounted and when I move a file manually to the share it gets copied ok. (Using sudo)

I've setup CIFS using this http://forums.sabnzbd.org/viewtopic.php?f=16&t=9034

When sab tries to move the file itself, it fails. The file is copied to the destination ok, but not moved.

Code: Select all

Sep-08 18:08:13 DEBUG    CP Server Thread-5 :: Destination folder for this episode: /mnt/disk1/TV/Tanked/Season 02
Sep-08 18:08:13 DEBUG    CP Server Thread-5 :: Checking if the path /mnt/disk1/TV/Tanked/Season 02 already exists
Sep-08 18:08:13 DEBUG    CP Server Thread-5 :: Moving file from /var/multimedia/incoming/sabnzbd/complete/Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON/Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON.mp4 to /mnt/disk1/TV/Tanked/Season 02/Tanked.S02E10.SD.TV.mp4

Sep-08 18:09:07 DEBUG    POSTPROCESSER :: Starting new thread: POSTPROCESSER
Sep-08 18:13:27 DEBUG    CP Server Thread-5 :: Unknown value passed in, ignoring it: <type 'int'> (13:<type 'int'>)
Sep-08 18:13:27 ERROR    CP Server Thread-5 :: Unable to move file /var/multimedia/incoming/sabnzbd/complete/Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON/Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON.mp4 to /mnt/disk1/TV/Tanked/Season 02/Tanked.S02E10.SD.TV.mp4: 13
Sep-08 18:13:27 WARNING  CP Server Thread-5 :: Processing failed for /var/multimedia/incoming/sabnzbd/complete/Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON/Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON.mp4: Unable to move the files to their new home
A few questions, when SAB moves the file does it do it using the user "sabnzdb"

Here's the source file details:

Code: Select all

-rw-r--r-- 1 sabnzbd sabnzbd 421188316 Sep  1 04:57 Tanked.S02E10.For.Love.of.the.Game.or.Money.HDTV.x264-CRiMSON.mp4
After the error message this is the destination file:

Code: Select all

-rwxr--r-- 1 nobody nobody 421188316 Sep  8 18:13 Tanked.S02E10.SD.TV.mp4
Its some kind of permission problem but I've got no idea how to fix it.

remote share is mounted like this:

Code: Select all

sudo mount -t cifs //netbiosname/sharename /media/sharename -o credentials=/root/.smbcredentials,iocharset=utf8,gid=1001,uid=1001,nounix,file_mode=0777,dir_mode=0777

Re: Unable to move file - Unknown value passed in, ignoring

Posted: September 8th, 2012, 11:53 am
by shypike
CIFS is a huge PITA, or rather the way you need to mount it in Linux.
Even OSX does this much better.
The current user is not relevant, the CIFS user account is set in the mount statement.
I gave up connecting Linux to CIFS.
Other than that, if SABnzbd fails to move a file, it should revert to copy/delete instead.
Does that work in your case?
Is it just a case of weird error messages?
BTW: don't set a "permissions" value in Config->Folders.

Re: Unable to move file - Unknown value passed in, ignoring

Posted: September 8th, 2012, 12:34 pm
by kl1k
I haven't set the permissions in the SAB config.

The file is copied to the destination, but not deleted from source.

What do you recommend I can use instead of cifs? The remote server is also linux - should I try nfs?

Update: What a sec - I forgot to mention that I'm running Sickbeard - would this make any difference to the problem?

Update2: Fixed - I set the file permissions in SAB to 777 and it worked! :)

Re: Unable to move file - Unknown value passed in, ignoring

Posted: September 8th, 2012, 2:07 pm
by shypike
OK, that you are using SickBeard is significant.
I assume your SABnzbd final folder is local and that SickBeard moves files from local storage to CIFS.
In that case the 777 is important to let SB do its work.

Re: Unable to move file - Unknown value passed in, ignoring

Posted: September 8th, 2012, 2:20 pm
by kl1k
Correct - SAB complete folder is local, and then its moved to a remote CIFS.

Thanks for the help - glad its all working, and on the R-Pi as well!! :)