Globetrotter docsversion 0.3.0 · 2026-12-04

When it goes wrong: fifteen messages you will meet

On this page
  1. 1. The sync check says files are stale
  2. 2. A type error after a design change
  3. 3. "The design changed on disk"
  4. 4. A tool call refused for an invalid design
  5. 5. The backend is behind its migrations
  6. 6. A port is in use
  7. 7. A command from the wrong folder
  8. 8. You edited a generated file
  9. 9. An unknown widget
  10. 10. A lint error versus a warning
  11. 11. The studio is slow the first time
  12. 12. Sign-in codes do not arrive locally
  13. 13. The code limits while testing
  14. 14. A deploy or a start refused for a placeholder
  15. 15. doctor fails on the version
  16. And five more you will meet

Each message below was produced on purpose in a scratch project (or a scratch copy of Rally) and copied from the terminal. Where a message could not be produced, it says so and quotes the source. Messages shortened with … were longer. Paths in messages are the machine's own; yours differ.

Two commands answer most questions before you search this page: npx globetrotter doctor (one line per rule, what to run when one fails) and npx globetrotter status (what is left, page by page).

1. The sync check says files are stale

! backend/migrations/db/alembic/versions/0003.py (new: a sync writes it)
→ uv lock --check (in backend/): uv.lock agrees with every pyproject.toml
…
generated files were out of date

(sync --check exits 1.) Means: the design, the service or a binding no longer matches what is written to disk, and --check writes nothing. A (new: …) line is a file the design needs that is not there yet; an (out of date: …) line is one that exists and differs. Fix: npx globetrotter sync, then npx globetrotter sync --check again. If lines remain that you did not expect, run npx globetrotter doctor.

2. A type error after a design change

✗ tsc --noEmit in frontend/: 1 error, the bindings do not fit the generated types (a binding is yours: edit it to the new types, or `--no-tsc` to skip)
    frontend/src/bindings/my-first-app--things.ts:41  TS2345: Argument of type '{ draft: { title: string; who: string; }; noMatch: never[]; query: string; things: never[]; }' is not assignable to parameter of type 'ThingsData | (() => ThingsData)'.

doctor says ✗ generated types = bindings: 1 type error: …. Means: the page's generated types (frontend/src/generated/<page>.types.ts) now ask for something your binding does not give (here a new summary), or your binding gives something the page no longer reads. The binding is yours: the tool never edits it. Fix: (cd frontend && npx tsc --noEmit) prints the full message ("Property 'summary' is missing in type … but required in type 'ThingsData'"); edit the binding, or undo the design change. Plain sync does not report this: it exits 0 and prints nothing about your binding. Run sync --check or doctor.

3. "The design changed on disk"

the design changed on disk since it was read (another session, the studio or an editor saved); call the tool again to retry on the current version

Not produced: the tools re-read the file at each call, and a hand edit between two calls was merged, not refused. The text is the answer an agent tool gives when another writer saved in the middle of its own save (packages/cli/src/mcp-server.ts); the studio's own wording, from Rally's STUDIO-WALKTHROUGH.md, is "The design changed on disk". Means: two writers (you, the studio, an agent) touched designs/*.json at the same moment; the tool refuses to overwrite. Fix: call it again. Never retry by rewriting the whole JSON.

4. A tool call refused for an invalid design

Error: Button is not allowed in a List's children (it takes ListItem, Divider)
Error: Unknown type "Foo" (types: AppBar, NavigationRail, Drawer, BottomNavigation, SidePanel, SideSheet, Page, Stack, Grid, GridItem, Section, …
Error: invalid document: pages[0].content[0].children[1].children[2].props.nonsense: unknown prop on Slider (it takes label, field, endField, min, max, step, stops, range, valueLabel, size, …; get_catalog says each)
Error: No page "Nope" (have: p758nf41 "Things", pj8xh0cp "House rules")

Means: every write is validated against the catalogue before it is saved; nothing was written. (Third: the unknown widget of item 9.) Fix: read the sentence: it names what is allowed. get_catalog({ type: "Slider" }) lists every prop and slot of a widget. Widgets that do not go in a place come in a row of their own when you use add_node with a { kind: "content" } target ("Button came in a row of its own").

5. The backend is behind its migrations

The database is not ready: db is at 0001, 0002 is waiting: in the backend's folder, run GLOBETROTTER_ENV=local uv run python -m my_first_app_core.migrate.

(the backend's own log) and from doctor:

✗ migrations written = applied (local): The backend is behind its migrations: 0002 is waiting (not applied by itself: it holds `INSERT INTO "" SELECT CASE WHEN CAST(substr(sqlite_version(), 1, instr…`).
    run: cd backend && GLOBETROTTER_ENV=local uv run python -m my_first_app_core.migrate

Means: sync wrote a migration for a design change (a rename, a new field) and nothing applied it. The odd INSERT INTO "" text is only how the guard of a sqlite migration reads; ignore it. Fix: run the command it prints, in backend/. Then doctor says ✓ migrations written = applied (local). A design change dev sees while running writes nothing; a start of dev applies what is waiting. Two other forms: 0011 is due from the design and not written (run sync, then apply) and The code maps columns the database lacks and no migration is written yet (same).

6. A port is in use

! nothing started: the studio's port 3410 and the app's port 3411 are already in use (a dev already running for this or another project?). Stop it, or run:  npx globetrotter dev --port 3412 --app-port 3413
  (to keep the studio there: "studioPort": 3412 in globetrotter.config.json)

And the installer: ! port 3100 (the studio's) is in use here: the lines below use 3102. Means: something already listens (often an earlier dev of yours). Fix: find it with lsof -iTCP:3410 -sTCP:LISTEN -n -P, stop it, or take the ports it prints. The backend's port is in globetrotter.config.json (backend.targets.python.port); the installer's --app-port and --backend-port set both at the start; changing a port by hand makes doctor fail until npx globetrotter sync (the port is in the generated contract).

7. A command from the wrong folder

! no Globetrotter project here: looked for globetrotter.config.json (or a designs/ folder with designs in it) in /…/empty and every folder above it, and found none. Nothing was read or written. Run the command inside a project, pass --cwd <project>, or `globetrotter init` to make one.

From a subfolder of a project it works and says using the project at ../ (/…/my-first-app). Outside any project with npx --no-install globetrotter …: npm error could not determine executable to run. Warning: npx globetrotter … without --no-install, outside a project, would fetch a package of that name from npm that is not this tool. Run commands in the project folder, or give --cwd.

8. You edited a generated file

! frontend/src/generated/my-first-app--things.tsx (out of date, and edited by hand: a sync keeps the edit in .hand-edited/ and writes the file again)

then, after sync:

→ frontend/src/generated/.hand-edited/my-first-app--things.2026-12-03T21-32-11-091Z.tsx (your edits, preserved)
→ frontend/src/generated/my-first-app--things.tsx

Means: the file's @generated-hash no longer matches its content. Fix: copy what you wanted into the design (or a binding), delete the saved copy. Note that the header of a generated page says "Edit the design or this file": ignore "or this file".

9. An unknown widget

Error: Unknown type "Foo" (types: AppBar, NavigationRail, Drawer, BottomNavigation, SidePanel, SideSheet, Page, Stack, Grid, GridItem, Section, Spacer, Text, Bullets, MotionGraphic, Image, Hero, Card, Carousel, StatTile, EmptyState, LoadingRows, DataTable, …

In the studio the canvas draws Unknown: Type for a node whose type the library does not know. Fix: get_catalog() lists the types; common slips are Textfield for TextField, Fab capitalisation, IconButton. A library you added yourself needs its entry in render.tsx's registry (not for a first project).

10. A lint error versus a warning

    warning · contract-drift: /items/actions/create: Things.create was Items.create, and the pages' action create still calls /items/actions/create: …
    error · contract (Things): loading rows stand for "items", but nothing on this page repeats over it
! 1 lint error above: the files were written anyway, and operations the errors touch may refuse, do nothing or not run as designed. `sync --check` fails on them; `lint_design` lists each with its fix.

Means: sync writes your files even with findings. An error makes sync --check exit 1 and means something will not work as designed. A warning or a note/info exits 0: it is advice (action-undescribed, contrast-aaa, list-lacks-more appear on every new project). npx globetrotter status lists them per page; the tool lint_design lists each with fix, and apply_fix({ design, page, rule, nodeId }) makes the change the studio's Fix button makes. On a new project sync --check always adds warning · target-check: pyright did not run: pyright is not in backend/.venv: fine.

11. The studio is slow the first time

Nothing prints. The first open of /studio took 4 seconds, the first click on Backend of a design as large as Rally's took 6.5 seconds (Rally's walkthrough: "It says 'Reading the service design…' and then shows its tabs. Wait; do not reload."). Means: Next compiles the page on first use (next dev). Fix: wait. A second click is instant. A banner "This project uses Globetrotter 0.3.0 (commit 850fdc9, changes not committed)…" is information; Dismiss it.

12. Sign-in codes do not arrive locally

Nothing is mailed on a laptop. The code is written to backend/.globetrotter/sent.jsonl. In Rally:

cd backend && uv run python tests/tools/last_code.py player@example.com
457875

and, when nothing was asked for:

Nothing has been sent yet: ask for a code on the Sign in page first.
No code has been sent to <email>: ask for one on the Sign in page.

(The last two from last_code.py's source.) In a project with session sign-in, not codes, the development people are <role>@example.com with the password dev-<role> (member@example.com and dev-member worked in the scratch project).

13. The code limits while testing

{"error":"Too many codes asked for. Try again in 53 minutes."} [429]

after the fifth POST /code/actions/send for one address in an hour (Rally's limit; 30 an hour per caller too). A code works once, for 10 minutes, with 5 wrong tries; the page says to wait 30 seconds before asking again (resendSeconds: 30). Fix, local only: sqlite3 backend/db.sqlite "delete from limit_counter", or ask with another address (the count is per address).

14. A deploy or a start refused for a placeholder

The generated backend files for Fly hold YOUR_ values. The backend refuses to start while one is left, one line each time:

The secret RALLY_DB_URL is not set: export RALLY_DB_URL=… before starting the service.
The secret RALLY_DB_URL is not a database URL (like sqlite:///./db.sqlite or postgres://host/db).
GLOBETROTTER_APP_ORIGIN is 'https://YOUR_APP_ADDRESS', still the placeholder the generated file shipped with: set it to the address of this environment's pages (such as https://app.example.com), or every link in an email is broken.

(Run with GLOBETROTTER_ENV=prod and the variables in the order the backend asks for them; it never started: it listened on no port.) Fix: grep -n YOUR_ backend/fly.*.toml and replace each. Rally's docs/go-live.md section 4 has the whole table "If you see X, set Y". globetrotter deploy (the pages) has its own refusals: with a backend at an address on your own computer,

✗ http://localhost:8441 is an address on this computer, and a site on the internet cannot reach it.
  Host the backend somewhere with a public address first, then give that address (--backend-url https://…).

Note what it does not refuse: deploy --dry-run --backend-url https://YOUR_APP_ADDRESS accepted the placeholder and printed it in lower case. Look at the address before the real deploy.

15. doctor fails on the version

✗ project version = vendored tarballs = this CLI: package.json names file:./vendor/globetrotter/globetrotter-core-0.3.1.tgz, which is not there
    run: node globetrotter-<version>/install.mjs upgrade /…/my-first-app  (it puts the tarballs back and points package.json at them)
✗ project version = vendored tarballs = this CLI: @globetrotter/core has 2 tarballs (0.2.0, 0.3.0)
    run: delete the old tarballs in vendor/globetrotter/ (keep 0.3.0)

Means: the project's package.json, vendor/globetrotter/ and the installed node_modules do not agree. Fix: you have a zip, not a repository: run node globetrotter-0.3.0/install.mjs upgrade . from the folder that holds the unpacked zip (INSTALL.md: it replaces the tarballs, points package.json at them, installs, runs sync, sync --check and doctor). The studio's grey banner and doctor give the same advice (before this was fixed they named pack-into, which only the repository has; inside the repository they still do).

And five more you will meet

  • Turning sign-in on stops the backend. casbin is not installed: run uv sync in backend/ and ! the backend stopped (exit 1); the rest keep running. sync printed ! backend/uv.lock changed: run uv sync in backend/. Run uv sync, then restart dev.
  • A rule of yours fails the contract test. ST202 Schema-valid request rejected … Expected: 2xx, 3xx, 401, 403, 404, 409, 429, 5xx after a 400 for a value the schema allows: declare a Refusal (409), see Tutorial 2.
  • ruff format refuses your Python. ✗ service = generated backend = your code: target-check: ruff format --check refuses the generated backend: --> tests/test_things_twice.py:15:25. Run cd backend && uv run ruff format ..
  • A 500 from your code. {"error":"Something went wrong on the server; it is in the server’s log.","detail":"TypeError: ThingsImpl.create() got an unexpected keyword argument 'bringer'","at":"my_first_app_fastapi/routers/things.py:33, in things_create"}: detail and at are shown only on a laptop; the line is in your code's call.
  • The installer, before it starts. From INSTALL.md (not run here): Node 18.x is too old (install Node 20+), a backend needs uv … was not found (install uv, new terminal), … does not match SHA256SUMS: the copy is damaged (unpack the archive again).