Page 2 of 3

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 3:53 pm
by fredlkrue
Thanks, you update too fast  ;D

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 7:50 pm
by Shadowtester
I am running into a problem this is on Mepis 8 linux which is based on Debian using Xchat 2 when I try to run the script I get this output in the chat window

Tcl plugin ERROR (alias SAB)
Error fetching data from http://192,168,0.120/sabnzbd/:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"

Now I have edited the sabgetdata as follows

host=http://192.168.0.120/sabnzbd/
port=8090

when I access sabnzbd in firefox I use the following address
http://192.168.0.120:8090/sabnzbd/

looking at the script output it looks like the port is in the wrong location in the address

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 7:52 pm
by fredlkrue

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 7:57 pm
by Shadowtester
that was just a type in the post its correct in the file like I said it seems that the port is being put in the wrong location on the address maybe due to the fact that my sabnzbd is not in the root directory of the webserver but in its own directory I also have other thing applications which also use the webserver which is why the separate directories

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 8:45 pm
by fredlkrue
Not sure if it will make a difference, but can you try:  host=http://192.168.0.120:8090/sabnzbd/

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 8:50 pm
by Shadowtester
Tried that leaving he port= line empty however get the same kind of error but it shows an address of   http://192.168.0.120:8090/sabnzbd/: so for some reason it was adding an extra : at the end of the line.

Re: SABnzbd stats script for XChat (linux)

Posted: June 30th, 2009, 9:23 pm
by fredlkrue
Thats weird..

Re: SABnzbd stats script for XChat (linux)

Posted: July 1st, 2009, 1:16 am
by jcfp
Shadowtester wrote: Now I have edited the sabgetdata as follows

host=http://192.168.0.120/sabnzbd/
port=8090
It expects the host, not a full url, i.e. just "192.168.0.120"

Re: SABnzbd stats script for XChat (linux)

Posted: July 1st, 2009, 7:21 pm
by Shadowtester
ok I changed it to

host=192.168.0.120
port=8090

Now I am getting this error

Tcl plugin ERROR (alias SAB)
Error fetching data from 192,168,0.120:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"

Re: SABnzbd stats script for XChat (linux)

Posted: July 1st, 2009, 7:24 pm
by fredlkrue
make sure you have sabgetdata and sab.tcl located at ~/.xchat2, also you must have xml2 installed.

Re: SABnzbd stats script for XChat (linux)

Posted: July 1st, 2009, 9:42 pm
by Shadowtester
Yes they are both in the /.xchat2 directory and yes xml2 is installed I think the problem is due to sabnzbd being installed in the www/sabnzbd folder of my webserver vs the www directory.

Re: SABnzbd stats script for XChat (linux)

Posted: July 1st, 2009, 10:03 pm
by fredlkrue
why is it giving this error message:
Tcl plugin ERROR (alias SAB)
Error fetching data from 192,168,0.120:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"

check if "192,168,0.120" is without commas...

Re: SABnzbd stats script for XChat (linux)

Posted: July 1st, 2009, 10:28 pm
by Shadowtester
just retyped the host again making sure I am using . vs , and here is the output from xchat


Tcl plugin ERROR (alias SAB)
Error fetching data from 192.168.0.120:8090
child process exited abnormally
    while executing
"exec [xchatdir]/sabgetdata speed"

Re: SABnzbd stats script for XChat (linux)

Posted: July 2nd, 2009, 3:49 am
by lommes
go to your .xchat2 directory, run the script from console like ./sabgetdata speed

are you using username and password? contains the password any special characters?

Re: SABnzbd stats script for XChat (linux)

Posted: July 2nd, 2009, 8:23 am
by Shadowtester
no I do not have username or password set for access and here is the output from the console


shadowtester@Shuttle:~/.xchat2$ ./sabgetdata speed
Error fetching data from 192.168.0.120:8090
shadowtester@Shuttle:~/.xchat2$


Could it be something due to the sabnzbd not being install in the webserver's root directory but in its own directory off of the webserver's root directory the url I have to use to access sabnzbd is  http://192.168.0.120:8090/sabnzbd/ if its looking for the files in the webserver's root directory its not going to find them and get any error fetching data. Previously I have tried the following in as the host with no luck  host=192.168.0.120/sabnzbd/ with port=8090 and ended up with an error fetching data from 192.168.0.120/sabnzbd/:8090. I have also tried the following as host host=http://192.168.0.120:8090/sabnzbd/ with the host= empty and I ended up with an error fetching data from http//192.168.0.120:8090/sabnzbd/: an extra : at the end of the line