Forums

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

What can be possible reasons for the Jira setup wizard, to show up?

mibemerami August 10, 2018

Background:

I'm migrating Jira, to test my backup process. But after the migration the setup wizard shows up on the new server, on the old server everything still works fine. The same process has worked before and all data seems to be there.

In the Jira home folder is a dbconfig.xml, the database is populated, and the migration log doesn't show any errors.

My question:

It surprises me especially, that the setup wizard appears. I mean if the database wasn't reachable, or the data was corrupted, I would have expected an error message, or an error code like 500. Also I thought that the presence of a dbconfig.xml would prevent the setup wizard from starting. So what could be the reason? Or in general, what could be a reason for the setup wizard to start?

My Setup:

The Jira version 7.3, the DB-Server is Postgres 9.4. I'm using pg_dump to migrate the database, and I pack the whole Jira home and installation directory into a tar and extract it on the destination server. The whole stack is running in Centos based containers.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
August 10, 2018

The setup wizard only runs when you connect Jira to an empty database, or at least one that looks empty to it.  Are you sure the user you are connecting as has full access to the database?  (That's my usual trick - a valid user with the right credentials, but no "read table" access, so when it looks at a full database, it sees no tables and thinks "ah, that's empty then")

mibemerami August 10, 2018

Thanks for the reply, it sounds sensible, but it seems like this is not the problem.

I connected to the postgres-server as user postgres and granted all privileges to the jira user. Than I restarted Jira. But still the setup wizard appears. 

 

root@f-stack-test-docker-s-4vcpu-8gb-fra1-01:~# docker run --network astack_default -ti  postgres:9.4 psql -h db -U postgres
Password for user postgres:
psql (9.4.18)
Type "help" for help.

postgres=# \l
                                     List of databases
     Name     |  Owner   | Encoding |  Collate   |   Ctype    |      Access privileges
--------------+----------+----------+------------+------------+-----------------------------
 bitbucketdb  | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =Tc/postgres               +
              |          |          |            |            | postgres=CTc/postgres      +
              |          |          |            |            | bitbucketuser=CTc/postgres
 confluencedb | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =Tc/postgres               +
              |          |          |            |            | postgres=CTc/postgres      +
              |          |          |            |            | confluenceuser=CTc/postgres
 crowddb      | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =Tc/postgres               +
              |          |          |            |            | postgres=CTc/postgres      +
              |          |          |            |            | crowduser=CTc/postgres
 crowdiddb    | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =Tc/postgres               +
              |          |          |            |            | postgres=CTc/postgres      +
              |          |          |            |            | crowduser=CTc/postgres
 jiradb       | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =Tc/postgres               +
              |          |          |            |            | postgres=CTc/postgres      +
              |          |          |            |            | jirauser=CTc/postgres
 postgres     | postgres | UTF8     | en_US.utf8 | en_US.utf8 |
 template0    | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres                +
              |          |          |            |            | postgres=CTc/postgres
 template1    | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres                +
              |          |          |            |            | postgres=CTc/postgres
(8 rows)

postgres=# GRANT ALL PRIVILEGES ON DATABASE "jiradb" TO jirauser;
GRANT

Nic Brough -Adaptavist-
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.
August 10, 2018

I can't see anything immediately wrong with that, but the problem remains - the setup wizard appears when Jira sees an empty database (or one that looks empty for wahtever reason)

mibemerami August 13, 2018

I just discovered that the database is there, and the users are there, and the tables are there, in the database, BUT the tables are empty. So, you were right :-)

Now I know at least where to look for the problem/solution.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events