Script errors out - No such file or directory - Sab running on FreeNAS server

Come up with a useful post-processing script? Share it here!
Post Reply
th3joker
Jr. Member
Jr. Member
Posts: 64
Joined: January 25th, 2008, 8:15 am

Script errors out - No such file or directory - Sab running on FreeNAS server

Post by th3joker »

No such file or directory

error's out with the above message when post processing, obviously the path's are correct and the script works fine on my old ubuntu server but not on my FreeNAS server.

Tried the normal changing permissions and chmod +x etc..

Still no joy, anyone else on here running sab on FreeNAS server.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by shypike »

If a parameter contains spaces, it needs quoting: e.g. "$1".
th3joker
Jr. Member
Jr. Member
Posts: 64
Joined: January 25th, 2008, 8:15 am

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by th3joker »

The postproc relative path is postproc making the actual path /mnt/array6/downloads/postproc/postproc.sh

There isn't a space there so I'm not sure what that means, I'm assuming it's not to do with my path but am at a loss to work out what you mean.

My postproc.conf has the following set:

Code: Select all

LOGGING=ON
LOG_PATH=/mnt/array6/downloads/postproc/postproc.log

#  Set your base Folder destinations here
MP3_FOLDER=/mnt/array6/home/adrian/Music
TVDEST=/mnt/array6/TV
MOVIEDEST=/mnt/array6/Movies
XXXDEST=
TEMPFOLDER=/mnt/array6/downloads/postproc/vobtemp
SAMPLESIZE=25M
#Set Folder ownership and permissions to allow items to be viewed by other processes, in particular www
CHANGEOWNER=YES
FILEACCESS=777
FILEOWNER=www:users
VOBISO=YES
# Default is to not delete original folder - only delete it if it is being processed
REMOVE=NO
DEFAULT=MOVIES
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by shypike »

Sorry, I thought that you were complaining about SABnzbd not running user scripts.

What is this about anyway? What is "postproc.conf" ?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by switch »

It's from auskento's Media Processing Script. Have you tried any other scripts? Where is it that you see the error "No such file or directory"?
th3joker
Jr. Member
Jr. Member
Posts: 64
Joined: January 25th, 2008, 8:15 am

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by th3joker »

It's the error shown when I click "Show script output" in the completed queue.

I've tried a few post processing scripts.

Anyone else running sab on FreeNAS managed to get past this problem?
geebee
Release Testers
Release Testers
Posts: 59
Joined: August 2nd, 2008, 5:58 pm

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by geebee »

I did see a post suggesting you should have something next to the XXX line, even if you dont use it.
th3joker
Jr. Member
Jr. Member
Posts: 64
Joined: January 25th, 2008, 8:15 am

Re: Script errors out - No such file or directory - Sab running on FreeNAS server

Post by th3joker »

It was a really bizarre problem and caused by the FreeNAS build not picking up the path to bash properly. I moved bash into /usr/bin in the end.

FreeNAS uses a really small install (32MB) of FreeBSD and as such has restrictions on what will run and how it runs it.

The script then produced a du error as FreeBSD has no -S option. I edited it out of the script and it runs perfectly now.
Post Reply