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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,341 views 0 5
Read article

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