Cannot run program "/var/www/nodejs/chromedriver"

469 views
Skip to first unread message

con...@blogshopstreet.com

unread,
Oct 8, 2014, 1:39:22 AM10/8/14
to chromedri...@googlegroups.com
13:35:04.426 INFO - Started org.openqa.jetty.jetty.Server@620065ca
13:36:33.971 INFO - Executing: [new session: Capabilities [{browserName=chrome}]])
13:36:34.002 INFO - Creating a new session for Capabilities [{browserName=chrome}]
13:36:54.622 ERROR - org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "/var/www/nodejs/chromedriver" (in directory "."): java.io.IOException: error=2, No such file or directory)

Okay i installed chome in /usr/bin/.

The driver is in my web server folder together with the selenium jar file. I just can't get this to work and google isn't showing any other facing the same issue.

I'm using selenium with nodejs on ubuntu

se...@taykey.com

unread,
Jan 8, 2015, 5:50:15 AM1/8/15
to chromedri...@googlegroups.com, con...@blogshopstreet.com
i have the exact same issue!

im using selenium 2.44.0 and Ubuntu 12.04

i supplied -Dwebdriver.chrome.driver path to the selenium jar
made the chromedriver executable (chmod +x)

but i still get:

ERROR [21] org.openqa.selenium.os.UnixProcess - org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "/tmp/webdriver/chromedriver/chromedriver_2.13_32bit" (in directory "."): error=2, No such file or directory)

please help

se...@taykey.com

unread,
Jan 11, 2015, 6:38:56 AM1/11/15
to chromedri...@googlegroups.com, con...@blogshopstreet.com
my problem was that, I was trying to run 32bit bin file in a 64bit system.

there are two solutions:

my server was missing ia32-lib - it turns out, you can't just run 32bit in a 64bit system
all i had to do is: sudo apt-get install ia32-libs to add support for 32bit

Or

Just download and use the 64bit Chromedriver
Reply all
Reply to author
Forward
0 new messages