Forums

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

Error user cannot be added, directories are read only

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2022

Dear all,

We have deployed on azure an Atlassian docker image connected to an empty sql server database and process the whole setup and be able to setup the Atlassian admin account

Then we have an existing staging database with all our existing setting, projects, SSO configuration, licences,etc.

What we are trying to do is from that previous setup, then connect the deployed docker instance to our SQL db with all data.

For that we have :

  1. edit the dbconfig.xml file and simply change to the correct DB
  2. Restart the container

Then what happen after this is when we hit the ip of our docker instance, it start  a new process of setup from scratch even if we provide an already configured DB

It request also the creation of an admin account which cannot be created because it says "Directories are read only"

I am stuck for days in this situation now and I would like to know how can I point my instance to use the given database data which contains everything instead of redoing a full setup.

Any idea what is happening or how to do ?

regards

 

2 answers

0 votes
Pramodh M
Community Champion
January 27, 2022

Hi @serge calderara 

Can you use this template as a starter and build Jira using Docker

https://community.atlassian.com/t5/Confluence-articles/Confluence-Deployment-using-Docker-Compose/ba-p/1898938

Thanks,
Pramodh

0 votes
Rilwan Ahmed
Community Champion
January 27, 2022

"Directories are read only" is displayed when you try to add/edit user in Jira which is connected to AD/LDAP for user management.

Did your old jira connect to AD/LDAP ? 

Is internal directory in disabled state in old jira ?

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2022

@Rilwan Ahmed thanks for your reply.

Yes in my old jira instance Directories a in following orders:

1 Active Directory (Enabled)

2- Internal directory (Enabled)

To explain clearly what I have done :

My old instance DC node 1 is configured as below :
- media/atl/jira/shared is maped to a Azure storage file share call home-dc-shared
- original db is called jiradb on Server1, then I create a copy named NewJiraDB on Server2

What I have done :

  1. Deployed an atlassian docker Image to Azure with an empty SQL db located on Server2
  2. Provide a dumy admin user as requested
  3. Stop my container instance
  4. Update the dbconfig.xml to point to the copy db NewJiraDB
  5. Restart the container
  6. Then I loged in with the admin login I have set in my old jira => FAILED
  7. Then I loged in with my previous dumy admin => OK
  8. Then I am prompt again to enter Licence and create user admin

Then I am stuck at this stage, I do not undertsand why Jira is procedeing to setup phase again after pointing it to my copy db which contains every thing

Any idea what I miss or what is wrong ?

Rilwan Ahmed
Community Champion
January 27, 2022

I am not sure. But I think, every new installation is taken as new SEN number. Jira considers it as new jira and asks for setup.

Calderara Serge
Contributor
January 28, 2022

@Rilwan Ahmed thanks for your reply.

I have a doubt to about what you are saying which is probably true but We have a production instance where some time we copy the db and place it on our staging instance on difference server and switching Db like this works without trouble

The process I have done is the one describe by atlassian in their document for migrating application from one server to an other, so I I have no idea why it should not work ?

regards

Suggest an answer

Log in or Sign up to answer