Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 vote

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

@somethingblue 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.

0 votes
edwin Community Leader Aug 18, 2017

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?

edwin Community Leader Aug 23, 2017

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 Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you