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:

Test Locations
No test agents are configured to render video
Local : Local
Local-WPTDriver : Test Location - No Agents Connected[/code]

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 “-” “-”[/quote]

Here’s the location.ini:

[quote]
[locations]
1=Local
default=Local

[Local]
1=Local-WPTDriver
label=Local

[Local-WPTDriver]
browser=chrome
label=“Test Location”[/quote]

…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
[/code]

/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?

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);