Get started Browse docs
On this page 5 sections

Get started

Troubleshooting

Five problems you may hit, in the order you will probably meet them. Find the message or behaviour you see, then read its cause and fix.

Each entry has the same three parts. Symptom is what you see. Cause is why it happens. Fix is what worked.

A second server on a busy port is refused

Symptom. A second server on an occupied port exits 1. It prints Port N is not available. Another program may be using it., then Change the port in your .orb file and try again. Both hosts refuse the second bind at 31591e66.

Cause. The listener is exclusive on both platforms. Windows sets SO_EXCLUSIVEADDRUSE. Linux sets SO_REUSEADDR and nothing more (compiler/emit/route_runtime.orb:682-684). Until 2026-11-01 the emitted listener also called orbit_enable_reuseport(), which set SO_REUSEPORT on Linux only. A second Linux server then bound the port anyway. The kernel distributed connections between the two processes, so a port mistake served traffic instead of failing. An older Windows build kept both processes running with no bind error. That observation is historical, from the September 2026 tutorial. The pin no longer behaves that way.

Fix. Read the refusal, then stop the holder or pick a free port. The port is the first command-line argument, so a typo collides with a live server. netstat -ano on Windows and ss -lntp on POSIX name the process holding it:

PowerShell
netstat -ano | findstr 8080
taskkill /F /PID <pid>
.health_service.exe 8081

The live gate pins the refusal. python scripts/admission_gate.py live starts a second server against the occupied port and fails unless that process refuses with the port message (scripts/admission_gate.py:784).

A database service exits immediately with no output (Windows)

Symptom. A database-backed binary such as blog_api.exe starts and vanishes at once. There is no banner, no log and no error message.

Cause. sqlite3.dll is not next to the exe. Windows loads it from the application directory. The build links against runtime/vendor/win-x64/sqlite3.lib, but the DLL itself must travel with the binary.

Fix. Copy the bundled DLL beside your binary and run again:

PowerShell
Copy-Item runtimeendorwin-x64sqlite3.dll .
.log_api.exe 8080

Services that use no database, such as health_service and the file server, do not need the DLL. If one of those vanishes instead, your problem is elsewhere on this page.

First boot is slower than later boots

Symptom. An earlier self-hosted build printed Ready in 1744.3 ms on the first boot and Ready in 8.1 ms on later boots. Those two figures are historical single-machine observations. The pin’s own tutorial records them (docs/tutorials/troubleshooting.md:49-56, Windows, September 2026). They were not measured at 31591e66.

Cause. The first start creates the database file, builds the tables, and seeds demo rows when the products table is empty. That one-time work cost about 1.7 s on the machine that recorded it. Later starts find the file ready.

Fix. None needed. A cold start and a warm start are different measurements. Never compare one against the other. Never publish a number without saying which of the two you measured. The figures name one machine and one build, not your hardware.

The second POST of the same id never succeeds

Symptom. Your POST handler’s create() branch works the first time. Posting the same payload again always lands in the failure branch.

Cause. The model’s id is the table’s primary key, so inserting an id that is already stored breaks a constraint, and create() answers false. Nothing is wrong with the payload or the runtime. create() also answers false when the payload has no usable fields, so the failure branch covers two cases.

Fix. Decide what a repeat means for your service: a conflict (answer 409) or an update. Make the id unique per post. Keep the failure branch either way, because duplicates land there and so do payloads without fields. The pin’s tutorial records the same cause: the second insert of a stored id violates the primary key, and create() answers false (docs/tutorials/troubleshooting.md:62-76).

The stale-source check reports a mismatch

Symptom. After you touch compiler/*.orb, python scripts/trust.py build --check-stale fails. It reports that the converged output does not match the committed canonical C source.

Cause. Someone changed compiler/*.orb without promoting the result, or the generated output drifted on its own.

Fix. Only after an intentional compiler change, and only after reviewing the diff, promote the new canonical source. Then run the full gate sequence (verify, parity, suite) before committing:

Terminal
python scripts/trust.py build --promote

The gate commands are on the install page. Promote with care: it rewrites the reference output everything else is checked against, so an unreviewed promote turns a real regression into the new expected output.

What next

If the problem was a port, a missing DLL or a slow first boot, re-run your first service from the build step. For a clean start, rebuild with the install page.

Type to search commands, errors, modules and concepts.