Skip to content

Troubleshooting

Common issues and how to resolve them.

Symptom: ECONNREFUSED when connecting to MindFry.

Solutions:

  1. Verify server is running: docker ps or check process
  2. Check port binding: netstat -an | grep 9527
  3. Verify firewall rules allow port 9527

Symptom: SDK hangs on connect().

Solutions:

  1. Increase timeout: new MindFry({ timeout: 10000 })
  2. Check network path to server
  3. Verify no firewall blocking

Symptom: NotFound error for existing key.

Causes:

  1. Key never created
  2. Lineage decayed to DORMANT
  3. Below consciousness threshold

Solutions:

  1. Use Executive Override: brain.lineage.get(key, 0x07)
  2. Check mood: brain.system.stats() and adjust if needed
  3. Stimulate to raise energy: brain.lineage.stimulate({ key, delta: 0.5 })

Symptom: Repressed error on GET.

Cause: Memory energy below consciousness threshold.

Solutions:

  1. Lower threshold: brain.system.setMood(0.8) (euphoric)
  2. Bypass: brain.lineage.get(key, 0x02) (INCLUDE_REPRESSED)

Symptom: RangeError: Invalid array length in SDK.

Cause: Protocol version mismatch.

Solution: Update SDK to latest version:

Terminal window
npm update @mindfry/client

Symptom: Garbled responses or deserialization failures.

Cause: Incomplete frame handling.

Solution: Ensure using SDK v0.4.0+ with proper FrameDecoder.

Symptom: Data not restored after restart.

Solutions:

  1. Check /data volume is mounted
  2. Verify sled files exist: ls /data/akashic/
  3. Check logs for corruption errors

Symptom: SYS.RESTORE fails with unknown snapshot.

Solutions:

  1. List available: ls /data/snapshots/
  2. Use exact name from SYS.SNAPSHOT

Cause: Approaching max_lineages limit.

Solutions:

  1. Increase MINDFRY_MAX_LINEAGES
  2. Force decay by lowering MINDFRY_DECAY_LAMBDA
  3. Prune low-energy lineages

Cause: Dense bond graph causing deep cascades.

Solutions:

  1. Increase damping via PHYSICS.TUNE
  2. Use NO_PROPAGATE flag for bulk operations