JS Error in 3.0

shwetha17

Member
May 24, 2018
785
0
16
Hello,

I searched the forums and google code for any answers to this, but turned up nothing. I was migrating to 3.0 this morning, and all I did was install 3.0 and setup the config.php to use the scgi socket like I'd been using with 2.8, and rutorrent spits this at me when I open the interface:

[05.04.2010 09:45:42] WebUI started.
[05.04.2010 09:45:43] JS error: [ : 0] uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: https://********/rutorrent/js/jquery.js :: anonymous :: line 2699" data: no]

Any ideas? rtorrent is running, and 2.8 can interact with it fine
 

das329717

Member
May 25, 2018
928
0
16
chances are this is due to your cache

clear all caches and if you use a reverse caching proxy, flush it.
 

shwetha17

Member
May 24, 2018
785
0
16
Cleared cached in FF 3.6.3, no luck. Latest Google Chrome and Safari give a different error in the console, starts with the following then just has a bunch of xhtml I can't seem to copy and paste here.

Bad response from server: (200 [parseerror, getsettings])

Ideas? Is it because I'm using scgi sockets instead of RPC? I had them working fine in 2.8..

Thanks for all the help, btw.
 

das329717

Member
May 25, 2018
928
0
16
Is this with authentication?


a couple things you can try:

remove the settings info for each user in thier share/users dir


also, i've seen a bug where, when settings up users in 3.0 ( conf/users/USERNAME/config.php ) sometimes, will cause a bug. The solution to this bug is to leave authentication on but remove the individual user conf files and set the main conf file at conf/config.php to the settings for your user

Log in, then if this IS that bug, it will work.


After that, simply replace the conf file you removed and it should keeep working
try that for each user
 

shwetha17

Member
May 24, 2018
785
0
16
I don't have any users configured, and the directory is outside of my webserver's authentication rules (as it's just a test install) so no auth there.. I'll try and setup a user and see if that helps with what you described.
 

shwetha17

Member
May 24, 2018
785
0
16
Setup an /rtdev on my lighttpd with authentication for a single user 'rt', works fine to login, but with or without config.php in the user dir I get the same JS error as above.
 

das329717

Member
May 25, 2018
928
0
16
then somethijng is wrong with your config.php

Set up authentication on the base dir ( / )
add your users
profit
 

jith45

Member
May 25, 2018
960
0
16
Quote
Setup an /rtdev on my lighttpd with authentication for a single user 'rt', works fine to login, but with or without config.php in the user dir I get the same JS error as above.​

Something bad with your ruTorrent installation. Try to reinstall it "from zero" to different directory.
 

das329717

Member
May 25, 2018
928
0
16
i also find that you can sometimes clear errors by deleting everything in share/ deleting all the stuff in conf and doing a svn up

then edit conf the way you need.

but as novik said, you should try a fresh install. Whenever i try a fresh install, i do it something liek this:

Let's say i have rutorrent's webroot at /usr/local/www/rutorrent

i'll do this:
Code:
cd /usr/local/www
mv rutorrent rutorrent-old
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent
this way i still have my old files if i need to copy some over (once i get it working right)
 

shwetha17

Member
May 24, 2018
785
0
16
Thanks so much for all the help guys, and Novik rutorrent is amazing smiley.gif

However, I am still having the same issue. I nuked /rtdev, redownloaded the 3.0 tgz via wget, extracted and configured just for my scgi socket, same JS error. Checked out latest from svn with the command wonslung posted to a brand new /rutorrent directory, chmodded share to 777 and still the same JS error:

[07.04.2010 09:38:45] JS error: [ : 0] uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: https://******/rutorrent/js/jquery.js :: anonymous :: line 2699" data: no]

rutorrent seems to see my rtorrent fine, as it correctly lists the version in the lower right if that's any help.

Not sure what else to do.. for what it's worth I'm running CentOS 5.4 with everything up to date except OpenSSL (latest rpm breaks SSL with lighttpd), lighttpd and the latest rtorrent/libtorrent RPMs from http://www.fateyev.com/RPMS/RHEL5/x86_64/
 

jith45

Member
May 25, 2018
960
0
16
1) Is you make some changes in ruTorrent config file? Paste it here.
2) Try to use http instead https. Is this problem still occured?
 

shwetha17

Member
May 24, 2018
785
0
16
Checked out revision 895, turned off SSL. No change in error. The only modifications I make are to scgi, I'll paste my whole conf here though along with the error.

rutorrent can actually see what version of rtorrent I'm running, and if I mess up the scgi socket definition it can't, so I think it's working in that respect (to an extent at least)

[09.04.2010 10:34:34] JS error: [ : 0] uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://*****/rutorrent/js/jquery.js :: anonymous :: line 2699" data: no]

I just comment out the RPC2 and use the socket lines down at the bottom, changed nothing else.

Code:
<?php
// configuration parameters

// for snoopy client
@define(&#39;HTTP_USER_AGENT&#39;, &#39;Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0&#39;, true);
@define(&#39;HTTP_TIME_OUT&#39;, 30, true); // in seconds
@define(&#39;HTTP_USE_GZIP&#39;, true, true);

@define(&#39;RPC_TIME_OUT&#39;, 5, true); // in seconds

@define(&#39;LOG_RPC_CALLS&#39;, false, true);
@define(&#39;LOG_RPC_FAULTS&#39;, true, true);

// for php
@define(&#39;PHP_USE_GZIP&#39;, false, true);
@define(&#39;PHP_GZIP_LEVEL&#39;, 2, true);

$do_diagnostic = true;
$log_file = &#39;/tmp/errors.log&#39;; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;

$topDirectory = &#39;/&#39;; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;

// $scgi_port = 5000;
// $scgi_host = "127.0.0.1";
// $XMLRPCMountPoint = "/RPC2";

$pathToExternals = array(
"php" => &#39;&#39;, // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => &#39;&#39;, // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => &#39;&#39;, // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => &#39;&#39;, // Something like /usr/bin/id. If empty, will be founded in PATH.
);

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
$scgi_port = 0;
$scgi_host = "unix:///tmp/rtscgi-rpc.socket";

?>
 

jith45

Member
May 25, 2018
960
0
16
>>// $XMLRPCMountPoint = "/RPC2";

For which reason you comment this line? May be, i must write in this file - "DO NOT DELETE THIS LINE!!!" or something else...
 

shwetha17

Member
May 24, 2018
785
0
16
I thought that line was only necessary if you were using an SCGI mount like /RPC2, rather than an SCGI socket file like I'm using. I guess the mountpoint is used either way and the difference is a port on the webserver or a socket file.. Well, I was wrong and it works now! Thanks so much. I love rutorrent again! smiley.gif
 

das329717

Member
May 25, 2018
928
0
16
Quote
>>// $XMLRPCMountPoint = "/RPC2";

For which reason you comment this line? May be, i must write in this file - "DO NOT DELETE THIS LINE!!!" or something else...​


I lol'd