Skip to content

Bug: SQLite sync queue - Missing named parameter limit #2

@microonline

Description

@microonline

Bug Description

When running openclaw-memory in full mode (with PostgreSQL + AGE), the server fails to start with this error:

RangeError: Missing named parameter "limit"
    at Object.all (file:///.../node_modules/@poprobertdaniel/openclaw-memory/dist/chunk-BTR4T5L3.js:41:33)
    at SqliteStorage.getSyncQueue (file:///.../node_modules/@poprobertdaniel/openclaw-memory/dist/chunk-BTR4T5L3.js:323:7)
    at _SyncQueueProcessor.processQueue (file:///.../node_modules/@poprobertdaniel/openclaw-memory/dist/chunk-BTR4T5L3.js:1101:33)
    at _SyncQueueProcessor.start
    at StorageOrchestrator.init

Environment

  • Node.js v22.22.0
  • Bun 1.3.10
  • OS: Linux
  • Package version: latest (from npm)
  • Tier: full (SQLite + Qdrant + PostgreSQL/AGE)

Steps to Reproduce

  1. Have Qdrant running on localhost:6333
  2. Have PostgreSQL + AGE running on localhost:5432
  3. Run: PGHOST=localhost PGPORT=5432 PGUSER=openclaw PGPASSWORD=openclaw123 PGDATABASE=jarvis_memory bunx @poprobertdaniel/openclaw-memory start --tier full

Expected Behavior

Server should start successfully with all three layers (SQLite, Qdrant, AGE)

Actual Behavior

Server fails with RangeError about missing 'limit' parameter in SqliteStorage.getSyncQueue

Additional Notes

  • Qdrant connects successfully
  • AGE graph creates successfully
  • The error happens in SQLite sync queue processing
  • This prevents full tier from working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions