Trouble installing bamboo as service on Windows 64

I can run Bamboo on my windows server (Server 2016) through the console by running 'bin\start-bamboo'. However when i try to install as a service, by running 'InstallAsService' i get the following error:

C:\Program Files\Bamboo>InstallAsService.bat

C:\Program Files\Bamboo>@echo off
'@echo' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Bamboo>setlocal

C:\Program Files\Bamboo>set _PRG_DIR=C:\Program Files\Bamboo\

C:\Program Files\Bamboo>cd C:\Program Files\Bamboo\

C:\Program Files\Bamboo>set PATH=C:\Program Files\Java\jdk1.8.0_144\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\<USERNAME-REMOVED>\AppData\Local\Microsoft\WindowsApps

C:\Program Files\Bamboo>"C:\Program Files\Bamboo\bin\service.bat" install Bamboo
Installing the service 'Bamboo' ...
Using CATALINA_HOME: "C:\Program Files\Bamboo"
Using CATALINA_BASE: "C:\Program Files\Bamboo"
Using JAVA_HOME: "C:\Program Files\Java\jdk1.8.0_144"
Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_144\jre"
Using JVM: "C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll"
Failed installing 'Bamboo' service

 

I've tried running the batch file through an administrative command prompt with no luck.

 

This is an increadably unhelpful error and i would like some help understanding whats going wrong here

 

2 answers

1 votes

Hi Lex,

This could be due to the local user PATH being set in Environment Variables. Even if the local account has admin permissions which grants access to the system PATH, Bamboo will not see it unless the user PATH is removed.

Try this:

Remove the user %PATH% defined in Environment Variables

  1. Right-click Computer/This PC > Properties
  2. Click Advanced System Settings
  3.  Click Environment Variables
  4. In User Variables:
    1. select PATH variable
    2.  click, Delete
  5. Start JIRA

Hopefully that helps.  If not, take a look at the article titled ́╗┐' is not recognized as an internal or external command.

Cheers,

Branden

Hi Branden

Thanks for the reply, unfortunately neither of these solved the issue. I have deleted my user PATH variable but that did not help. I also change the file to ANSI instead of UTF-8 but with no luck. The console window dump now looks like this.

 

C:\Program Files\Bamboo>InstallAsService.bat
Installing the service 'Bamboo' ...
Using CATALINA_HOME: "C:\Program Files\Bamboo"
Using CATALINA_BASE: "C:\Program Files\Bamboo"
Using JAVA_HOME: "C:\Program Files\Java\jdk1.8.0_144"
Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_144\jre"
Using JVM: "C:\Program Files\Java\jdk1.8.0_144\jre\bin\server\jvm.dll"
Failed installing 'Bamboo' service

@Branden McElveen Still haven't had any luck with this, are there any kind of logs somwhere i can have a look at? So far this has been a bad experience trying to get this set up, it really should not be this hard.

Check permissions on the temp directory for the user running Bamboo

https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-289277308.html

I was running the installation .bat from an administrative command prompt, that should give full elevated privalages to anywhere in the ProgramsFiles directory right?

I meant the user that is currently running Bamboo ex. a user account or system account .. must have access to the temp directory

I tired making a new local user on the server, giving it full permissions to the bamboo-home folder and temp folder, and running the install batch file as that user but it did not work.. any other suggestions?

Suggest an answer

Log in or Join to answer
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,069 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot