Error when launching karma phantomjs browser based bamboo task

Running bamboo server on windows 2012 r2 machine.  I can remote into the server and run this script successfully.  When launching it in a plan, I receive the following error regarding the karma phantom js browser:

a

 

22-Aug-2017 15:58:31

22 08 2017 15:58:31.787:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:9876/
22-Aug-2017 15:58:3122 08 2017 15:58:31.787:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
22-Aug-2017 15:58:3122 08 2017 15:58:31.803:INFO [launcher]: Starting browser PhantomJS
22-Aug-2017 15:58:3222 08 2017 15:58:32.522:ERROR [phantomjs.launcher]: SetProcessDpiAwareness failed: "COM error 0x80070005  (Unknown error 0x0ffffffff80070005)"
22-Aug-2017 15:58:32 
22-Aug-2017 15:58:32 
22-Aug-2017 15:58:32[at-loader] Ok, 3.39 sec.
22-Aug-2017 15:58:3622 08 2017 15:58:36.695:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket uPIKC5VZo_zbQSQiAAAA with id 74417553

 

 

2 answers

0 votes

Upon Googling, I found this discussion mentioning that it could be due to windows restriction of not being able to run GUI apps if the parent process is a service.

If you are running Bamboo as a service, can you add InteractWithDesktop ability to your Bamboo service account and see if it helps?

I read that discussion as well, and I did add the interactwithdesktop ability to the Apache Tomcat Bamboo Service, which I'm assuming is the only service Bamboo uses.  Still get the same error.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

61 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you