Hello everyone, I have encountered the following problem: My plan was to create a new EC2 instance and migrate my Sonarqube database, which is currently running on RDS, and upgrade Sonarqube from version 8.6 to the latest version.
Our current Sonarqube environment has the following specifications:
- Developer edition
- Version 8.6
- The database is hosted on RDS in the AWS Sydney region.
- Sonarqube service is running on Fargate, and everything is functioning correctly.
We decided to upgrade Sonarqube to the latest version along with the plugins. Here are the steps I took for the upgrade process:
- I created a new Sonarqube service with version 8.6 Community Edition on an EC2 instance using Docker. This EC2 instance is located in the Ohio region.
- I created a new RDS database in the Ohio region.
- I modified my Docker file to connect to the new empty database for the Sonarqube service.
- I successfully started the service, and I could access the frontend.
Next, I attempted to migrate the database from the Sydney region to the Ohio region:
- I exported the entire database from the target database using the following command:
pg_dump -Fc -h alex-sonarqube-db-instance-0-cluster.cluster-cveglago2fub.us-east-2.rds.amazonaws.com -U sonarqube -d sonarqube -f source_db_backup.dump
I imported the database into the RDS database located in the Ohio region using the following command:
pg_restore -v -h sonarqube.cluster-cveglago2fub.us-east-2.rds.amazonaws.com -U sonarqube -d sonarqube -1 source_db_backup.dump
However, after starting my Sonarqube Docker again, it got stuck during the boot process:
2024.01.22 15:56:16 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.01.22 15:56:16 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.17.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process11601799272907548695properties```
Do you have any idea?