Error when running post processing script.

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
relman
Release Testers
Release Testers
Posts: 46
Joined: September 30th, 2008, 2:42 am

Error when running post processing script.

Post by relman »

I am running the latest beta5 on Windows 2008 R2 and have come across an issue. I have a network media tank device and have YAMJ setup and I want it to run the commands to refresh the library after each download. When I run the batch file outside of the post processing script it works fine without error.

However when running it as part of the post processing i get the following error.

C:\Program Files (x86)\SABnzbd>D:

D:\>CD \YAMJ-MOVIES

D:\YAMJ-MOVIES>CALL moviejukebox My_Library.xml -o \\NAS\Share\MOVIES
'java' is not recognized as an internal or external command,
operable program or batch file.

I don't get the java error when running these commands from command prompt but I do when from Sabnzbd post processing scripts.

I even added the java bin location to the the PATH environment variables but this never helped either.

Has anyone any ideas?

thanks
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Error when running post processing script.

Post by shypike »

Did you add Java to the system-wide path?
There are environment variables per account and system-wide.
If you run SABnzbd as a service or a scheduled task, not all normal resources are available.
relman
Release Testers
Release Testers
Posts: 46
Joined: September 30th, 2008, 2:42 am

Re: Error when running post processing script.

Post by relman »

I added the java bin folder to the system wide PATH environment variable. As for Sabnzbd is set to run on startup, on task manager the username for the process is the one which i am logged in under. It is not run as a scheduled task i just leave it running all the time from startup.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Error when running post processing script.

Post by shypike »

The current directory is not the same as when you run it yourself.
You are sure moviejukebox is in the path ?

Add a "set" command to the script so you can see what the
environment of the script is.
Pinch
Newbie
Newbie
Posts: 4
Joined: January 24th, 2010, 10:08 pm

Re: Error when running post processing script.

Post by Pinch »

You need to install the 32 bit version of Java

Hope that helps.
maddness

Re: Error when running post processing script.

Post by maddness »

Thanks for sharing such a nice sharing.it is very useful for all keep it up.i will come back soon.
Post Reply