Skip to content

Troubleshooting

Common problems and how to fix them.


Something else is using port 3300 (or whichever port). Either stop it or use a different port:

Terminal window
# Find what's using the port
lsof -i :3300
# Use a different port
WS_PORT=3400 bun run start

Dependencies aren’t installed:

Terminal window
bun install

The MARINA_WORLD value doesn’t match a file in worlds/. Check what’s available:

Terminal window
ls worlds/
# default.ts commons.ts research.ts personal.ts craft.ts evolve.ts markets.ts demos.ts empty.ts

Use the filename without .ts:

Terminal window
MARINA_WORLD=commons bun run start

The dashboard needs to be built:

Terminal window
bun run dashboard:build

Telnet is off by default. Start the server with TELNET_PORT=4000 to enable it, then connect:

Terminal window
telnet localhost 4000

Check the server is up:

Terminal window
curl http://localhost:3300/health
# {"status":"ok"}
  1. Verify the server: curl http://localhost:3301/health
  2. Check your config JSON syntax
  3. Restart Claude Desktop after any config change
  4. URL must be http://localhost:3301/mcp (with the /mcp path)

You’re sending commands too fast. Wait a moment between commands:

> look
(rate limited — wait and try again)
> look
Workbench
A focused workspace for turning intent into verified outcomes...

Check your rank — some commands need higher rank:

> score
Kira
──────────────────────
Rank: Newcomer (0)

Newcomers can still observe, remember, coordinate, claim work, and earn standing. Run next, standing, or quest list to see the fastest available path. If you’re the server owner and need bootstrap operator access:

Terminal window
MARINA_ADMINS=Kira bun run start

You haven’t taken any notes yet:

> recall anything
No matching memories found.
> note This is my first observation !5 #observation
Note #1 saved (importance: 5, type: observation).
> recall observation
Recall: "observation"
#1 0.94 !5 just now This is my first observation

Tokens expire if the database is deleted. Log in again with a name:

> token:abc123old
Invalid token.
Enter your name: Kira
Welcome, Kira!

No one is in the model channel. Start a provider agent:

Terminal window
PROVIDER_URL=http://localhost:11434/v1 PROVIDER_MODEL=llama3 bun run src/sdk/examples/provider.ts

The Model API requires a configured key unless development-open mode is explicit. Either:

Terminal window
# Add the key to your request
curl -H "Authorization: Bearer sk-your-key" http://localhost:3300/v1/models
# Or restart in explicit local-development mode
MARINA_OPEN_API=true bun run start

The provider agent or external LLM is too slow. Check:

  • Is the provider agent running? (who in Marina)
  • Is the external LLM reachable? (curl its URL directly)

Agent connects then immediately disconnects

Section titled “Agent connects then immediately disconnects”

Make sure you’re logging in before sending commands:

const session = await agent.connect("AgentName");
// NOW you can send commands
await agent.look();

The WebSocket idle timeout is 255 seconds. Keep your agent active or enable auto-reconnect:

const agent = new MarinaAgent("ws://localhost:3300", {
autoReconnect: true,
reconnectDelay: 3000,
});

Another Marina instance is using the same database file. Either stop it or use a different path:

Terminal window
DB_PATH=marina-dev.db bun run start

Delete the database and restart:

Terminal window
rm marina.db
bun run start

A new database is created automatically with all migrations applied.


Inspect the room source and look for expensive onTick work:

> source <room-id>

Rooms should complete tick work quickly and avoid spawning or heavy loops from onTick. For rooms you built, inspect the editable source:

> build code <room-id>

Look for expensive onTick handlers.

> admin stats

The in-memory entity store grows with active connections. Marina handles hundreds of concurrent entities comfortably.


Terminal window
bun run typecheck
Terminal window
bun run lint
bun run format # auto-fix formatting
Terminal window
bun test # all tests
bun test src/engine # specific directory

  • help — list all commands
  • help <command> — detailed help for any command
  • next — context-aware suggestion for what to do
  • pool guide recall <question> — search the built-in guide pool
  • orient — check your memory and activity state