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:



22-Aug-2017 15:58:31

22 08 2017 15:58:31.787:INFO [karma]: Karma v1.7.0 server started at
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,782 views 0 6
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