Hi,
We are setting up a new Bamboo remote agent on a brand new windows 7 - 64b instance. The bamboo agent is run as service.
When we start the selenium script manually it works fine, however when it is strated trough bamboo it refuses to launch a browser. We are given this error trace:
build 17-Apr-2013 09:32:36 [junit] [selenium_started_run] build 17-Apr-2013 09:32:36 [junit] [foo_debug] 1366183935536 Create SeleniumRunContext for run 0 build 17-Apr-2013 09:32:36 [junit] [foo_debug] 1366183935539 Created SeleniumRunContext for run 0 : be.foo.selenium.SeleniumRunContext@3a4c585f build 17-Apr-2013 09:32:36 [junit] [foo_debug] 1366183935539 Created SeleniumSession for run 0 : be.foo.selenium.input.core.SeleniumSession@6a3de2df build 17-Apr-2013 09:32:36 [junit] [foo_debug] 1366183935545 Create SelExecutor with context be.foo.selenium.SeleniumRunContext@3a4c585f build 17-Apr-2013 09:32:36 [junit] [foo_debug] 1366183935545 Browsertype is IEXPLORER. Starting browser... build 17-Apr-2013 09:32:36 [junit] [foo_error] 1366183955970 Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. build 17-Apr-2013 09:32:36 [junit] Build info: version: '2.31.0', revision: '1bd294d185a80fa4206dfeab80ba773c04ac33c0', time: '2013-02-27 13:51:26' build 17-Apr-2013 09:32:36 [junit] System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_32' build 17-Apr-2013 09:32:36 [junit] Driver info: driver.version: InternetExplorerDriver build 17-Apr-2013 09:32:36 [junit] ------------- ---------------- --------------- build 17-Apr-2013 09:32:36 [junit] ------------- Standard Error ----------------- build 17-Apr-2013 09:32:36 [junit] org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. build 17-Apr-2013 09:32:36 [junit] Build info: version: '2.31.0', revision: '1bd294d185a80fa4206dfeab80ba773c04ac33c0', time: '2013-02-27 13:51:26' build 17-Apr-2013 09:32:36 [junit] System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_32' build 17-Apr-2013 09:32:36 [junit] Driver info: driver.version: InternetExplorerDriver build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:201) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:105) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:51) build 17-Apr-2013 09:32:36 [junit] at be.foo.selenium.executor.SelExecutor.<init>(SelExecutor.java:71) build 17-Apr-2013 09:32:36 [junit] at be.foo.selenium.executor.SelTrackingExecutor.<init>(SelTrackingExecutor.java:21) build 17-Apr-2013 09:32:36 [junit] at be.foo.selenium.SeleniumResources.initializeExecutor(SeleniumResources.java:234) build 17-Apr-2013 09:32:36 [junit] at be.foo.selenium.SeleniumFrameworkRun$1.setUp(SeleniumFrameworkRun.java:29) build 17-Apr-2013 09:32:36 [junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22) build 17-Apr-2013 09:32:36 [junit] at junit.framework.TestResult.runProtected(TestResult.java:128) build 17-Apr-2013 09:32:36 [junit] at junit.extensions.TestSetup.run(TestSetup.java:27) build 17-Apr-2013 09:32:36 [junit] at junit.framework.TestSuite.runTest(TestSuite.java:243) build 17-Apr-2013 09:32:36 [junit] at junit.framework.TestSuite.run(TestSuite.java:238) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1420) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:848) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1899) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:800) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at java.lang.reflect.Method.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Task.perform(Task.java:348) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) build 17-Apr-2013 09:32:36 [junit] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at java.lang.reflect.Method.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at java.lang.reflect.Method.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Task.perform(Task.java:348) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Target.execute(Target.java:390) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Target.performTasks(Target.java:411) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at java.lang.reflect.Method.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Task.perform(Task.java:348) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Target.execute(Target.java:390) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Target.performTasks(Target.java:411) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at java.lang.reflect.Method.invoke(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Task.perform(Task.java:348) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Target.execute(Target.java:390) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Target.performTasks(Target.java:411) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Main.runBuild(Main.java:809) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.Main.startAnt(Main.java:217) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) build 17-Apr-2013 09:32:36 [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) build 17-Apr-2013 09:32:36 [junit] Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start. build 17-Apr-2013 09:32:36 [junit] Build info: version: '2.31.0', revision: '1bd294d185a80fa4206dfeab80ba773c04ac33c0', time: '2013-02-27 13:51:26' build 17-Apr-2013 09:32:36 [junit] System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_32' build 17-Apr-2013 09:32:36 [junit] Driver info: driver.version: InternetExplorerDriver build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:165) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527) build 17-Apr-2013 09:32:36 [junit] ... 73 more build 17-Apr-2013 09:32:36 [junit] Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:32900/status] to be available after 20006 ms build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:163) build 17-Apr-2013 09:32:36 [junit] ... 75 more build 17-Apr-2013 09:32:36 [junit] Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException build 17-Apr-2013 09:32:36 [junit] at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143) build 17-Apr-2013 09:32:36 [junit] at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79) build 17-Apr-2013 09:32:36 [junit] ... 76 more build 17-Apr-2013 09:32:36 [junit] Caused by: java.util.concurrent.TimeoutException build 17-Apr-2013 09:32:36 [junit] at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at java.util.concurrent.FutureTask.get(Unknown Source) build 17-Apr-2013 09:32:36 [junit] at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130) build 17-Apr-2013 09:32:36 [junit] ... 77 more
I applied configuration settings as described in setting up a non-headless buimd here: https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows
Any help would be greatly appreciated!
It appeared to be the Bamboo Agent service not running under the user we where expecting, it was using the system account which is no good. After changing to the correct user (service - preferences - log in as) things went smoothly again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.