Skip to main content
Local setup breaks in predictable ways — almost always a JDK version mismatch, a missing runtime clone, or a port that didn’t release cleanly. The table below covers the problems that come up most often.

Common fixes

ProblemFix
Backend fails to start with a JVM version 21 or class-version errorMake JDK 21 the active Java: export JAVA_HOME=$(/usr/libexec/java_home -v 21). The backend does not run on Java 17.
Backend boots but reconciliation/Spark fails on sun.nio.ch.DirectBufferExport JAVA_TOOL_OPTIONS with the --add-opens set before starting the backend.
Repository not found while cloning a drpn-ai repoConfirm GitHub access or switch to the SSH clone URL your account can use.
runtime directory not foundRun ./gradlew getRuntime from darpan-backend before loading data.
Gradle cannot find :runtime:component:moqui-sftpClone moqui-sftp into runtime/component.
Task 'loadDarpanSetup' not foundUse ./gradlew load for a fresh setup. loadDarpanSetup was removed.
npm install or Vite fails on Node versionUse Node.js 20 or newer.
Backend starts but UI API calls failWait for Moqui boot to finish, then refresh the UI.
Login shows no active sessionCreate the initial admin user from http://localhost:8080/Login, then sign in through the UI.
Data load fails with a database lockStop npm run dev:stack or any running backend process before rerunning the load.
Ports keep changing or Vite starts on a different portUse npm run dev:stack; it targets 8080 and 5173 and clears old listeners.