Current time: 12-09-2019, 12:33 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem registrating work with nodejs-agent
11-29-2013, 06:33 PM
Post: #1
Problem registrating work with nodejs-agent
Hi, have fetched wpt from trunk and want to use the nodejs-agent on a Ubuntu 13.10-server.

The /install-page is all green except:
Code:
Test Locations
No test agents are configured to render video
Local : Local
Local-WPTDriver : Test Location - No Agents Connected

This is the output from running the nodejs-agent

Code:
root@XXXXXX:/var/www/webpagetest/agent/js# ./wptdriver.sh -s http://localhost:80 -m 10 -l Local-WPTDriver
node src/agent_main --serverUrl http://localhost:80 --location Local-WPTDriver --browser browser_local_chrome.BrowserLocalChrome --chromedriver /var/www/webpagetest/lib/webdriver/chromedriver/Linux x86_64/chromedriver-2.4
F 1129Z08:25:56.485 wpt_client.js:241 new Client : Created Client (urlPath=/): {"domain":null,"_events":{},"_maxListeners":10,"baseUrl_":{"protocol":"http:","slashes":true,"auth":null,"host":"localhost:80","port":"80","hostname":"localhost","hash":null,"search":null,"query":null,"pathname":"/","path":"/","href":"http://localhost:80/"},"location_":"Local-WPTDriver","jobTimeout":80000}
I 1129Z08:25:56.488 wpt_client.js:293 Client.requestNextJob_ : Get work: http://localhost:80/work/getwork.php?location=Local-WPTDriver&f=json
F 1129Z08:25:56.498 wpt_client.js:184 IncomingMessage.<anonymous> : Got response:
I 1129Z08:26:06.503 wpt_client.js:293 Client.requestNextJob_ : Get work: http://localhost:80/work/getwork.php?location=Local-WPTDriver&f=json
F 1129Z08:26:06.514 wpt_client.js:184 IncomingMessage.<anonymous> : Got response:

Quote:In the webserver accesslog I only get 500-errors:
127.0.0.1 - - [29/Nov/2013:09:26:06 +0100] "GET /work/getwork.php?location=Local-WPTDriver&f=json HTTP/1.1" 500 203 "-" "-"

Here's the location.ini:
Quote:[locations]
1=Local
default=Local

[Local]
1=Local-WPTDriver
label=Local

[Local-WPTDriver]
browser=chrome
label="Test Location"

..and here's the relevant part of wptdriver.ini:

Code:
[WebPagetest]
url=http://127.0.0.1/
location=Local-WPTDriver
;browser=chrome                                                                                                        
Time Limit=120
;key=TestKey123                                                                                                        
;Automatically install and update support software (Flash, Silverlight, etc)                                          
software=http://www.webpagetest.org/installers/software.dat
debug=1

[chrome]
exe="%PROGRAM_FILES%\Google\Chrome\Application\chrome.exe"
options='--load-extension="%WPTDIR%\extension" --user-data-dir="%PROFILE%" --no-proxy-server'
installer=http://www.webpagetest.org/installers/browsers/chrome.dat

/getLocations.php is only showing headers.

I also have a hard time getting logging to work, nothing is ever logged to logs/logs.txt

Any idea what can be wrong?
Find all posts by this user
Quote this message in a reply
12-06-2013, 08:51 PM
Post: #2
RE: Problem registrating work with nodejs-agent
The problem was missing dependency: php5-json for ubuntu.

The error-message in the log was:
PHP Fatal error: Call to undefined function json_encode() in /var/www/webpagetest/www/common_lib.inc on line 1504

But that message wasn't logged until I removed this line from www/work/getwork.php (line
error_reporting(0);
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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