Jenkins + Selenium: "Timed out waiting for profile to be created! "

1,978 views
Skip to first unread message

Korchkidu

unread,
Aug 11, 2011, 5:56:58 AM8/11/11
to seleniu...@googlegroups.com
Hi,

I am trying to set up Jenkins and Selenium. When  I launch my build command from the command line, Selenium just works fine. However, when I use Jenkins, I get this error:

11:44:39.789 INFO - Preparing Firefox profile...
HTML suite exception seen:
java.lang.RuntimeException: Timed out waiting for profile to be created!
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:360)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:114)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchHTMLSuite(FirefoxChromeLauncher.java:405)
	at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchHTMLSuite(FirefoxLauncher.java:105)
	at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:121)
	at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:166)
	at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:551)
	at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:241)
	at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:201)
	at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:30)
11:44:59.824 INFO - Shutting down...
Any one could help me please?

Best regards.

Korchkidu

unread,
Aug 30, 2011, 12:51:38 PM8/30/11
to Selenium Users
Anyone could help me please? I am back on this issue and I really have
to make it work...;(

Thanks for any comment and suggestion.
Message has been deleted

Mike Riley

unread,
Dec 9, 2012, 3:39:57 AM12/9/12
to seleniu...@googlegroups.com
Show us how you are supplying the profile info.

Your stack trace shows that you had something fail starting the browser, but not what it was that failed from what I can see.

Mike

On Thursday, November 22, 2012 8:03:58 AM UTC-8, dchucks wrote:
Here is the log:

[weblogic@xxx selenium]$ java -jar selenium-server-standalone-2.24.1.jar -interactive -singleWindow
Nov 22, 2012 5:51:13 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
17:51:13.526 INFO - Java: Sun Microsystems Inc. 10.0-b19
17:51:13.528 INFO - OS: SunOS 5.10 sparc
17:51:13.546 INFO - v2.24.1, with Core v2.24.1. Built from revision 17205
17:51:13.755 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
17:51:13.756 INFO - Version Jetty/5.1.x
17:51:13.757 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
17:51:13.759 INFO - Started HttpContext[/selenium-server,/selenium-server]
17:51:13.760 INFO - Started HttpContext[/,/]
17:51:14.025 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@edf3f6
17:51:14.026 INFO - Started HttpContext[/wd,/wd]
17:51:14.033 INFO - Started SocketListener on 0.0.0.0:4444
17:51:14.033 INFO - Started org.openqa.jetty.jetty.Server@1ccce3c
Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http://www.yahoo.com)
cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com
17:51:53.872 INFO - ---> Requesting http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com
17:51:53.936 INFO - Checking Resource aliases
17:51:53.938 INFO - Command request: getNewBrowserSession[*firefox, http://www.google.com] on session null
17:51:53.942 INFO - creating new remote session
17:51:53.964 INFO - Allocated session 7ffa88758d334ac486c1dca12090f5d3 for http://www.google.com, launching...
jar:file:/opt/weblogic/selenium/selenium-server-standalone-2.24.1.jar!/customProfileDirCUSTFFCHROME
17:51:54.117 INFO - Preparing Firefox profile...
17:52:14.328 ERROR - Failed to start new browser session, shutdown browser and clear all session data

java.lang.RuntimeException: Timed out waiting for profile to be created!
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:308)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:120)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:90)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:347)
at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:114)
at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:399)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:143)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:104)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:811)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:437)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:407)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:151)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:914)
at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
17:52:14.341 INFO - Got result: Failed to start new browser session: Error while launching browser on session null
^C17:54:06.503 INFO - Shutting down...

dchucks

unread,
Dec 11, 2012, 1:38:18 AM12/11/12
to seleniu...@googlegroups.com
Thanks for noticing this thread Mike. Since I was not getting any reply I posted a new thread on this subject at https://groups.google.com/d/topic/selenium-users/rqJW-QJ1Upk/discussion and invite you to please reply there. I provided there all the details. Thanks again for your time.

D
Reply all
Reply to author
Forward
0 new messages