How to safely restart Bamboo Service using command prompt from windows machine ?
Asked by poovaraj:

I have installed Bamboo and Bitbucket in Windows machine and I have integrated both tool. I didn't install bamboo windows service in my system. I want to restart bamboo service using command prompt. Can you tell me how to restart bamboo service using command prompt and what is the startup parameter required ?


Answers:
author: Lars Olav Velle
body: Open services.msc and find the name of your bamboo service.

In our lab the name of the bamboo service is bamboo

comments: author: poovaraj
body: I didn't install bamboo windows service in my system, so it is not displayed in services.msc list. Can you tell me how to start bamboo service without using windows service ?


author: Lars Olav Velle
body: Either execute InstallAsService.bat to install the Bamboo service, or run:

C:\\Program Files\\Bamboo\>StartBamboo.bat


author: poovaraj
body: **Option 1**

Bamboo service is displayed in services.msc list after executing InstallAsService.bat file but I am unable to start bamboo service from services.msc list. it is showing below error message after starting bamboo service.

Error message :

![Bamboo Service Error Message.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/5587i4634F0302317FC6D/image-size/large?v=v2&px=999 "Bamboo Service Error Message.JPG")

**Option 2**

I have executed StartBamboo.bat file from command prompt but it is showing below error message.

Error message:

The Atlassian Bamboo Bamboo service is starting.  
The Atlassian Bamboo Bamboo service could not be started.

A service specific error occurred: 1.

More help is available by typing NET HELPMSG 3547.

Press any key to continue . . .


author: Lars Olav Velle
body: What does the log say?


author: poovaraj
body: How to check the log file ?


author: Lars Olav Velle
body: It should be just where you installed bamboo.


author: poovaraj
body: I have restarted the service successfully but it is showing below error while login into bamboo.

**Stack Trace:**

```
io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Unknown cipher data id 0 at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156) at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116) at com.atlassian.bamboo.plan.cache.AbstractImmutableChain.getPlanRepositoryDefinitions(AbstractImmutableChain.java:231) at com.atlassian.bamboo.plan.PlanHelper.getPlanRepositoryDefinitions(PlanHelper.java:49) at com.atlassian.bamboo.plan.PlanHelper.getDefaultPlanRepositoryDefinition(PlanHelper.java:69) at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getANameFromBranch(ChainBranchUtils.java:64)
```


author: Lars Olav Velle
body: Here is the solution to that one :

<https://confluence.atlassian.com/bamkb/unknown-cipher-data-id-0-when-performing-certain-actions-in-bamboo-on-windows-after-switching-bamboo-to-run-as-a-service-923437107.html>


author: poovaraj
body: I am unable to login into bamboo tool after done below setting. It is showing "**You have entered an invalid username and password. Please try again.**" error message

*I am able to see the bamboo dashboard without login into bamboo and it is automatically triggering the job after push the code to bitbucket tool.*

*Could you please let me know how to fix login issue ?*

Setting:-

<https://confluence.atlassian.com/bamkb/unknown-cipher-data-id-0-when-performing-certain-actions-in-bamboo-on-windows-after-switching-bamboo-to-run-as-a-service-923437107.html?_ga=2.144353777.536993601.1504604520-1106767698.1504499190>


author: Lars Olav Velle
body: Did you try wht is suggested under **Resolution**?

You\`ll need to restart Bamboo after making that change.

You should also be able to start bamboo manually until you get this fixed, by executing the startup.bat file


author: poovaraj
body: Yes. I have tried above option under Resolution and I have re-started the services after making the change.

Now, I am able to login in default user name and password but I am unable to login using Activity Directory credentitals.

Earlier, I have used to login using Activity Directory credentitals. Why is not working Activity Directory credentitals after making the changes ?

How to configure bamboo and Activity Directory ?


author: Lars Olav Velle
body: <https://confluence.atlassian.com/bamboo/integrating-bamboo-with-ldap-289277210.html>

Please note that once LDAP has been enabled, *reverting back to local user management is not possible* .


author: poovaraj
body: Thank you for the your quick reply and support

Poovaraj


author: Lars Olav Velle
body: Have you tried:

net stop bamboo \& net start bamboo

-Lars

comments: author: poovaraj
body: Thanks for your reply

I didn't try this command but I need more details for executing this command.

Do you want to execute this command from bamboo bin folder path or any other folder path?

Is it required Bamboo admin group access for executing this comman ? or Can I run this command from any other user ?

Shall I close the command prompt after starting bamboo service ? Or it should be running continuously ?

Poovaraj


author: Lars Olav Velle
body: You can run theese commands from "anywhere" on the cmd. The cmd needs to be elevated (admin)

-Lars


author: poovaraj
body: Is it Windows admin access or Bamboo admin group access ?

Poovaraj


author: Lars Olav Velle
body: Windows admin.


author: poovaraj
body: I have tried below command but it is not working. it is showing below error message

net start bamboo

**Error message from command prompt**

*The service name is invalid.*

*More help is available by typing NET HELPMSG 2185.*