Setup wizard never appears with app auto-installs silently on every startup even after full reset

Environment

OS: Windows 11, Java 21, Maven 3.x, MySQL (local), OpenMRS Core 3.0.0-SNAPSHOT

Running via mvn cargo:run from the webapp/ submodule

Problem

I am trying to reproduce a bug that requires going through the setup wizard interactively, but the wizard never appears. Every time the server starts, OpenMRS silently auto-installs and goes straight to the running app — even after a full reset.

Reset steps I already tried:

Stopped the server

Deleted %APPDATA%\OpenMRS\openmrs-runtime.properties

Dropped the openmrs database in MySQL (confirmed gone with SHOW DATABASES)

Restarted the server

Despite this, OpenMRS finds a database somehow, runs Liquibase, recreates openmrs-runtime.properties, and completes startup without ever showing the wizard. Navigating to http://localhost:8080/openmrs/initialsetup just redirects to index.htm → 404.

My questions

Is there another config file beyond openmrs-runtime.properties that feeds credentials to the auto-install path? I noticed %APPDATA%\OpenMRS\configuration\ still exists after my reset.

What is the correct full reset procedure on Windows to force the setup wizard to appear?

@dkayiwa @ibacher

Thanks in advance!

Yes, there is. When running OpenMRS via mvn cargo:run from the webapp/ submodule, Cargo creates its own embedded servlet container environment. Which copies or generates an openmrs-runtime.properties file inside the Maven target directory. So even if you delete the one in %APPDATA%\OpenMRS\, Cargo might be feeding the server a cached version from: ...\openmrs-core\webapp\target\... and because this file still exists, OpenMRS thinks, “Ah, I already have database credentials! Let me just recreate the dropped database using Liquibase and skip the wizard.”

Kindly have you tried to stop and wipe out Maven’s build artifacts?

  • To stop the running server use this command Ctrl + C.

  • Navigate to your root directory openmrs-core in the terminal and run: mvn clean

  • Delete the entire OpenMRS folder in AppData, not just the properties file. For it contains modules and contexts that can interfere.

  • completely delete the database and all the data inside it by:

  1. Open your MySQL CLI or Workbench.
  2. Run the drop command: DROP DATABASE openmrs; and SHOW DATABASES; to verify it’s gone.
  • Restart the server

@jwnasambu I already did this and it did not work and I pretty talked about it in my original post