We're preparing for the migration from Jira Server to Cloud.
We need to setup a test Jira instance with a snapshot of production data.
We are rsyncing jira home directory and loading a recent production database dump on the test server.
However, the test Jira doesn't seem to respect the database configuration and enters the initial setup wizard.
What we have checked:
- /var/atlassian/application-data/jira/dbconfig.xml on the test server is the same as on the production
- jira unix user can access this file
- jira is running under this user
- configured jira database user can access the database and access the tables
Relevant (?) log porion of the test jira:
2023-12-14 11:26:44,558+0100 JIRA-Bootstrap INFO [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /var/atlassian/application-data/jira/dbconfig.xml
2023-12-14 11:26:44,570+0100 JIRA-Bootstrap INFO [c.a.j.instrumentation.external.DatabaseExternalGauges] Installing DBCP monitoring instruments: DatabaseExternalGauges.JiraDbcpInstruments[instruments=[DBCP_MAX, DBCP_ACTIVE, DBCP_IDLE],objectName=com.atlassian.jira:name=BasicDataSource]
2023-12-14 11:26:44,598+0100 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger] Running Jira startup checks.
2023-12-14 11:26:44,599+0100 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger] Jira pre-database startup checks completed successfully.
2023-12-14 11:26:44,641+0100 JIRA-Bootstrap INFO [c.a.j.config.database.DatabaseConfigurationManagerImpl] The database is not yet configured. Enqueuing Database Checklist Launcher on post-database-configured-but-pre-database-activated queue
2023-12-14 11:26:44,641+0100 JIRA-Bootstrap INFO [c.a.j.config.database.DatabaseConfigurationManagerImpl] The database is not yet configured. Enqueuing Post database-configuration launchers on post-database-activated queue
2023-12-14 11:26:44,715+0100 JIRA-Bootstrap INFO [c.a.jira.startup.LauncherContextListener] Startup is complete. Jira is ready to serve.