nodejs webdriver works fine on command line fails in headless envirnoment.
41 views
Skip to first unread message
manoflinux
unread,
Jul 28, 2017, 6:41:12 AM7/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
node --version
v8.2.1
It works as the user from the command line but when its run in nagios as a check it fails. I have the geckodriver in the path and I updated the webdriver.
Any ideas?
/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/lib/promise.js:2634 throw error; ^ \nWebDriverError: connection refused at Object.throwDecodedError (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/lib/error.js:497:15) at parseHttpResponse (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/lib/http.js:519:13) at doSend.then.response (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/lib/http.js:441:30) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) From: Task: WebDriver.createSession() at Function.createSession (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/lib/webdriver.js:769:24) at Function.createSession (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/firefox/index.js:571:41) at createDriver (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/index.js:170:33) at Builder.build (/usr/lib64/nagios/plugins/node_modules/selenium-webdriver/index.js:645:16) at Object.<anonymous> (/usr/lib64/nagios/plugins/search.js:7:6) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3)
manoflinux
unread,
Jul 30, 2017, 3:57:54 PM7/30/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
got father, installed java 1.8 and it seem to change things. still not working will update after I fiddle with it for little while longer