[RC] Failed to start new browser session - lock file still present on parent.lock

702 views
Skip to first unread message

B Unit

unread,
Jan 22, 2010, 3:48:15 PM1/22/10
to Selenium Users
I've been using selenium on windows-Firefox for a year without running
into this problem, but for the last two days I haven't been able to
run tests. I tried following some other similar threads but the
solutions either weren't specific enough or didn't work for me. Can
anyone help? Could this have anything to do with upgrading to Firefox
3.5.7 or Firefox 6?

C:\selenium2>java -jar selenium-server.jar
12:33:15.625 INFO - Java: Sun Microsystems Inc. 11.3-b02
12:33:15.625 INFO - OS: Windows XP 5.1 x86
12:33:15.625 INFO - v1.0-beta-2 [2571], with Core v1.0-beta-2 [2330]
12:33:15.812 INFO - Version Jetty/5.1.x
12:33:15.812 INFO - Started HttpContext[/selenium-server/driver,/
selenium-server/driver]
12:33:15.812 INFO - Started HttpContext[/selenium-server,/selenium-
server]
12:33:15.812 INFO - Started HttpContext[/,/]
12:33:15.843 INFO - Started SocketListener on 0.0.0.0:4444
12:33:15.843 INFO - Started org.mortbay.jetty.Server@11ddcde
12:34:16.109 INFO - Checking Resource aliases
12:34:16.140 INFO - Command request: getNewBrowserSession[*firefox,
http://dev.pelago.com/, ] on ses
sion null
12:34:16.140 INFO - creating new remote session
12:34:16.468 INFO - Allocated session 958177997e564693979f961e17a687a8
for http://dev.pelago.com/, l
aunching...
12:34:16.562 INFO - Preparing Firefox profile...
12:34:37.828 ERROR - Failed to start new browser session, shutdown
browser and clear all session dat
a
java.lang.RuntimeException: Firefox refused shutdown while preparing a
profile
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeC
reated(FirefoxChromeLauncher.java:267)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDi
rectory(FirefoxChromeLauncher.java:119)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch
(FirefoxChromeLau
ncher.java:96)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession
(Fir
efoxChromeLauncher.java:310)
at
org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession
(BrowserSessionFac
tory.java:351)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
(BrowserSessionFacto
ry.java:119)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
(BrowserSessionFacto
ry.java:82)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession
(SeleniumDri
verResourceHandler.java:658)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand
(SeleniumDriverResource
Handler.java:392)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest
(SeleniumDri
verResourceHandler.java:368)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle
(SeleniumDriverResourceHan
dler.java:129)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:
816)
at org.mortbay.http.HttpConnection.handleNext
(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:
833)
at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:
357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:
534)
Caused by:
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher
$FileLockRemainedExcepti
on: Lock file still present! C:\DOCUME~1\blade\LOCALS~1\Temp
\customProfileDir958177997e564693979f961
e17a687a8\parent.lock
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway
(FirefoxChromeLauncher.java:225)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeC
reated(FirefoxChromeLauncher.java:265)
... 19 more
12:34:50.296 WARN - POST /selenium-server/driver/ HTTP/1.1
Unable to delete file C:\DOCUME~1\blade\LOCALS~1\Temp
\customProfileDir958177997e564693979f961e17a687
a8\parent.lock
at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:
594)

Anthony Long

unread,
Jan 22, 2010, 4:01:48 PM1/22/10
to Selenium Users
Your browser may have updated to a new version. Check what you have,
and downgrade if so.

Neha Chachra

unread,
Jan 22, 2010, 4:42:46 PM1/22/10
to seleniu...@googlegroups.com
I'm using Firefox 3.5.7 on Linux but I don't have any problems. If you upgraded to firefox 3.6 however that may cause some issues. I just checked and the extensions that Selenium installs have maxVersion as 3.5.*
 <em:maxVersion>3.5.*</em:maxVersion>

You could try tweaking that to 3.6 and it *might* work. These should be there in some file called customProfileDirCUSTFF and customProfileDirCUSTFFCHROME in some file like selenium-server.jar.

Also, I assume you've already tried killing all the java and firefox (or firefox-bin) before retrying.

HTH,

Neha



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


B Unit

unread,
Jan 22, 2010, 4:45:05 PM1/22/10
to Selenium Users
Thank you for the help, I downgraded all the way to Firefox 3.0.1
(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.1/
win32/en-US/) to get it to work. Hopefully I can find a middle ground
on the version so I can have both selenium working and Firebug (which
looks like it requires 3.5). Should a ticket/bug be filed for
selenium not working with the latest Firefox? Regardless, I'm more
than happy that i was able to get it working for now, thanks again.

> > forhttp://dev.pelago.com/, l

Mateusz Perlak

unread,
Jan 26, 2010, 9:29:04 AM1/26/10
to Selenium Users
I am glad I found this post, I had same issue and since I'm new to
selenium I wasn't sure what I did wrong.

Thanks.

krzysdb

unread,
Mar 11, 2010, 11:15:06 AM3/11/10
to Selenium Users

Great discussion, helped to find solution.
Just grab new Selenium RC from http://seleniumhq.org/download/ and it
should work for Firefox 3.6
Works for me.


Reply all
Reply to author
Forward
0 new messages