WebPagetest Forums

Full Version: Node.js Agent issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. I'm trying to install the node.js agent but I get an issue.

--

Code:
[root@stageGT1 js]# ./wptdriver.sh -s http://MYIP:8888
NODE_PATH=/home/domains/wpt/trunk/agent/js:/home/domains/wpt/trunk/agent/js/src:/home/domains/wpt/trunk/lib/webdriver/javascript/node-r17891
node src/agent_main --wpt_server http://MYIP:8888 --location Test --chromedriver /home/domains/wpt/trunk/lib/webdriver/chromedriver/Linux x86_64/chromedriver-26.0.1383.0 --selenium_jar /home/domains/wpt/trunk/lib/webdriver/java/selenium-standalone-r17891.jar
I 0327Z11:30:08.623 wpt_client.js:259 Client.requestNextJob_: Get work: http://MYIP:8888/work/getwork.php?location=Test&f=json
C 0327Z11:30:08.640 wpt_client.js:225 Client.onUncaughtException_: Unhandled exception in the client: Error: connect ECONNREFUSED
Error: connect ECONNREFUSED
    at errnoException (net.js:863:11)
    at Object.afterConnect [as oncomplete] (net.js:854:19)
D 0327Z11:30:08.642 wpt_client.js:226 Client.onUncaughtException_: Error: connect ECONNREFUSED
    at errnoException (net.js:863:11)
    at Object.afterConnect [as oncomplete] (net.js:854:19)
C 0327Z11:30:08.643 wpt_client.js:243 Client.onUncaughtException_: Unhandled exception outside of job processing
C 0327Z11:30:08.645 wpt_client.js:225 Client.onUncaughtException_: Unhandled exception in the client: Error: socket hang up
Error: socket hang up
    at createHangUpError (http.js:1417:15)
    at Socket.socketCloseListener (http.js:1467:23)
    at Socket.EventEmitter.emit (events.js:117:20)
    at TCP.close (net.js:436:12)
D 0327Z11:30:08.645 wpt_client.js:226 Client.onUncaughtException_: Error: socket hang up
    at createHangUpError (http.js:1417:15)
    at Socket.socketCloseListener (http.js:1467:23)
    at Socket.EventEmitter.emit (events.js:117:20)
    at TCP.close (net.js:436:12)
C 0327Z11:30:08.646 wpt_client.js:243 Client.onUncaughtException_: Unhandled exception outside of job processing

[root@stageGT1 js]# ./wptdriver.sh -s http://MYIP:8888
NODE_PATH=/home/domains/wpt/trunk/agent/js:/home/domains/wpt/trunk/agent/js/src:/home/domains/wpt/trunk/lib/webdriver/javascript/node-r17891
node src/agent_main --wpt_server http://MYIP:8888 --location Test --chromedriver /home/domains/wpt/trunk/lib/webdriver/chromedriver/Linux x86_64/chromedriver-26.0.1383.0 --selenium_jar /home/domains/wpt/trunk/lib/webdriver/java/selenium-standalone-r17891.jar
I 0327Z11:30:08.623 wpt_client.js:259 Client.requestNextJob_: Get work: http://MYIP:8888/work/getwork.php?location=Test&f=json
C 0327Z11:30:08.640 wpt_client.js:225 Client.onUncaughtException_: Unhandled exception in the client: Error: connect ECONNREFUSED
Error: connect ECONNREFUSED
    at errnoException (net.js:863:11)
    at Object.afterConnect [as oncomplete] (net.js:854:19)
D 0327Z11:30:08.642 wpt_client.js:226 Client.onUncaughtException_: Error: connect ECONNREFUSED
    at errnoException (net.js:863:11)
    at Object.afterConnect [as oncomplete] (net.js:854:19)
C 0327Z11:30:08.643 wpt_client.js:243 Client.onUncaughtException_: Unhandled exception outside of job processing
C 0327Z11:30:08.645 wpt_client.js:225 Client.onUncaughtException_: Unhandled exception in the client: Error: socket hang up
Error: socket hang up
    at createHangUpError (http.js:1417:15)
    at Socket.socketCloseListener (http.js:1467:23)
    at Socket.EventEmitter.emit (events.js:117:20)
    at TCP.close (net.js:436:12)
D 0327Z11:30:08.645 wpt_client.js:226 Client.onUncaughtException_: Error: socket hang up
    at createHangUpError (http.js:1417:15)
    at Socket.socketCloseListener (http.js:1467:23)
    at Socket.EventEmitter.emit (events.js:117:20)
    at TCP.close (net.js:436:12)
C 0327Z11:30:08.646 wpt_client.js:243 Client.onUncaughtException_: Unhandled exception outside of job processing
---

Some help?
Have you tried connecting to http://MYIP:8888 from the machine that the node agent is running on? It looks like the polling for work failed because the connection to the web server was refused.
Reference URL's