Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,700
Community Members
 
Community Events
176
Community Groups

Running bamboo as service causes cipher errors

I'm doing the following on a WIN 10 PRO laptop.

When trying to create an initial linked repo I'm getting ciphers errors like the following:

 

Create repository

An unexpected error has occurred

Unable to read cipher data for 0

 

If I delete the cipher directory  and try it again I get

java.nio.file.AccessDeniedException: D:\Atlassian\Bamboo-home\xml-data\configuration\cipher\cipher.key_0

 

I've tried changing the  service "logon as" bamboo user account to a specific admin user

without success.

 

Anyone had this issue and resolved it?

TS

 

1 answer

0 votes

Hi @timothy schmidt

Once the cipher key is removed for the first time, the installation is broken. Bamboo has two encryption keys to run the data encryption when necessary, one is in the filesystem and the other one is in the DB. Both are connected and if you remove one the other is useless.

Usually, the issues with the filesystem key are related to permission or missing key (due to a failed upgrade). In your case, I suppose it was related to permissions.

I suggest you the following steps to move on. We have two options:

Option 1 - You can restore the key

  1. Stop the Bamboo process/service.
  2. Make sure a user capable of login in Windows is assigned to the Bamboo service as per Running Bamboo as a Windows service as the local user.
  3. Make sure the Cipher file is restored.
  4. Make sure the user running the service is the owner of all folders and files inside <Bamboo_Install> and <Bamboo_Home> folders. That will include the cipher.key_0 files as well.
  5. Start the Bamboo process/service.

Option 2 - You cannot restore the key

  1. Stop the Bamboo process/service.
  2. Completely remove the content on <Bamboo_Home> directory.
  3. Recycle the DB used for your last installation (Drop and create it again)
  4. Make sure a user capable of login in Windows is assigned to the Bamboo service as per Running Bamboo as a Windows service as the local user.
  5. Make sure the user running the service is the owner of all folders and files inside <Bamboo_Install> folder and the empty <Bamboo_Home> folder. 
  6. Start the process/service and follow the installation again.

⚠️Please make sure you install Bamboo home in a native Windows storage, not in a remotely shared one. Also, please check if your filesystem has any special permission overwrite rule that will change the permission of your files right after you adjust them (depending on the folder you are editing).

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events