Current time: 11-13-2019, 12:31 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configuring a relay server
06-20-2012, 07:42 AM
Post: #1
Configuring a relay server
Hi,
I have setup an instance of WebPageTest 2.4 in an all-in-one windows 2008 r2 server and everything works perfect.
I have also setup a linux server as a web server and it works perfect with the windows 2008 server as Test machine.
Now I'm trying to setup the Test machine (windows server) to act as a relay server for linux server.
Whenever I submit an url for testing from Linux server I get the error:
"Error submitting url for testing".
I've tried every possible combinations in location.ini and urlblast.ini with no luck.

What am I doing wrong?
Thanks
Find all posts by this user
Quote this message in a reply
06-21-2012, 03:14 PM
Post: #2
RE: Configuring a relay server
I'm pretty sure you shouldn't be trying to set up relay with 2.4. You need 2.5 at a minimum but 2.6 fixed some bugs and would be a safer bet.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-22-2012, 05:27 AM (This post was last modified: 06-22-2012 05:28 AM by nikosd66.)
Post: #3
Question RE: Configuring a relay server
I installed 2.5. Unfortunately I run php 5.2.xx and can't run version 2.6.
Anyway still no success with v 2.05.
I believe that my location.ini files are not setup properly. I probably don't know where to put relaykey, relaylocation and/or localdir
The error is:
"Relay: Sorry, that test location already has too many tests pending. Pleasy try again later."

I would appreciate an example of location.ini files for all servers involved, for the following cases:

Case 1
www server1 -> linux (only www)
relay server2: All in one (www+test agent) in a windows server

Case 2
www server1 -> linux (only www)
relay server2 -> linux (only www)
test machine -> windows server3

I've tested successfully all three server combinations if no relay exists.
I'm realy comfused.Sad

Thank you
Nick
Find all posts by this user
Quote this message in a reply
06-24-2012, 02:42 AM
Post: #4
Lightbulb RE: Configuring a relay server
Well, I found what the problem is. It has nothing to do with location.ini configuration.
In runtest.php and in RelayTest() function, there is the line:
$test = json_decode($_POST['testinfo'], true);
If we run php<5.4 and magic_quotes_gpc is enabled in php.ini, then we have a problem.
To overcome this, I added a line of code just before:
if (get_magic_quotes_gpc()) $_POST['testinfo'] = stripslashes($_POST['testinfo']);

Now everything works fine.
Nick
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)