Upgrading production docker sonarqube instance to developer edition

we have an docker container for sonarqube which does use a default database. Now, as part of production upgrade we need to upgrade sonarqube to developer version with the new database. Kindly let me know the process.

Hey there.

Which database is used exactly? The embedded H2 database (the one that results in a big warning that states the database can’t be upgraded/migrated anywhere), or a supported database platform (Postgres, Oracle, SQL Server)?

Hi Colin,
its embedded H2 database.
So, i should go ahead with new installation with sql server.
I want to setup this in linux rhat 8. kindly let me know if you have instructions.

The Install the Server documentation is a great start.

step 1:
Run: docker network create mynet

Step 2:
Run: docker run --name sonar-postgres -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d -p 5432:5432 --net mynet postgres

step 3: sudo docker run --name sonarqube4 -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL=jdbc:postgresql://sonar-postgres:5432/sonar -e SONAR_SEARCH_JAVAADDITIONALOPTS=“-Dbootstrap.system_call_filter=false” -d --net mynet sonarqube:lts-developer

i’m getting the following error:
2022.09.19 12:06:46 INFO es[o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2022.09.19 12:06:46 INFO es[o.e.n.Node] started
2022.09.19 12:06:46 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2022.09.19 12:06:46 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2022.09.19 12:06:46 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/sonar-application-8.9.9.56886.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.3.3.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process11674865606969114458properties
2022.09.19 12:06:46 INFO web[o.s.p.ProcessEntryPoint] Starting web
2022.09.19 12:06:47 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2022.09.19 12:06:47 INFO web[o.s.c.e.CoreExtensionsLoader] Loaded core extensions: developer-edition, developer-scanner, developer-server, license
2022.09.19 12:06:47 INFO web[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2022.09.19 12:06:48 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 8.9.9.56886 / f7ef403a1f66dde923eda25b58df08d40a16e043
2022.09.19 12:06:48 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://sonar-postgres:5432/sonar
2022.09.19 12:06:49 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2022.09.19 12:06:49 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2022.09.19 12:06:49 ERROR web[o.s.s.p.PlatformImpl] Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
2022.09.19 12:06:49 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2022.09.19 12:06:49 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process
2022.09.19 12:06:49 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2022.09.19 12:06:49 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2022.09.19 12:06:49 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2022.09.19 12:06:49 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

===============
i have developer edition license and i need this to be in container. please advise

What version of SonarQube is your current (community edition) instance?