The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Running bamboo as service causes cipher errors

timothy schmidt
March 9, 2019

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2019

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).

TAGS
AUG Leaders

Atlassian Community Events