All articles
Back to Developers
Getting started

Development troubleshooting

Resolve certificate, watcher, state-lock and remote-development issues while preserving isolation.

7 min read Updated: 20 October 2026
Markdown

Establish a baseline

Run the commands from the root of the rumahl repository. Check node --version, pnpm --version, rustc --version and openssl version. Use the repository Rust toolchain, pnpm 11.19.0 and Node 22.12+ or 24 with ICU support. Install frontend dependencies with pnpm --dir frontend install --frozen-lockfile.

Linux or WSL2 is the native development environment. A source build needs the Rust toolchain; prebuilt-binary mode still needs matching frontend sources and dependencies.

Use a trusted local certificate

Supply an existing localhost certificate and key when that fits your setup:

bash
pnpm --dir frontend dev \
  --cert /absolute/path/localhost.pem \
  --key /absolute/path/localhost-key.pem

The certificate must cover localhost. Generated certificates live under .rumahl-dev/tls and are short-lived test certificates. To rotate one, stop the server and remove only that TLS directory before restarting. Re-establish trust in the new public certificate. Preserve the account database and never publish the private key.

Handle watcher and compiler failures

Use pnpm --dir frontend dev --poll --port 9443 for shared-folder notification problems. Use --no-watch to disable automatic Rust rebuilds while retaining frontend hot reload.

The platform process is replaced only after compilation succeeds. A broken Rust change can therefore leave the last successful binary serving requests. Fix the compiler error before assuming the UI is using your new code. Brief 503 responses during a successful platform restart are different from a persistent startup failure.

Resolve state conflicts without resetting data

A lock prevents two developer servers from using the same state directory. Stop the process you previously started before launching another with that state. Do not bypass the lock or remove the database to clear an error.

.rumahl-dev/server.json records the selected origin, certificate path and development build ID. Treat it as local diagnostic state. The launcher uses private temporary sockets and keeps development databases separate from /var/lib/rumahl.

Connect to a Linux development host

Start the server on the Linux host, then forward the local port from your workstation:

bash
ssh -L 8443:127.0.0.1:8443 developer@development-host

Open https://localhost:8443 locally and trust that host’s public development certificate. The example hostname and user must be replaced with your own. Keep the development listener bound to loopback; do not add wildcard CORS or expose Vite as a public OS interface.

Verify the repaired workflow

After the server starts, verify login, a frontend hot update and persistence across restart. For changes to the launcher or authentication boundary, run the integration check described in testing and release, including its prerequisites. The fixture-only demo cannot validate authentication, real persistence or backend permissions.

Need more context? Read the source or open a discussion with the project.

On this page