Skip to content

openmemory-setup.sh fails with Script not found "build"` after fresh clone #79

@lopeselio

Description

@lopeselio

Summary
After following the setup instructions and running ./services/openmemory-setup.sh, the script fails because bun run build cannot find a build script inside services/openmemory/backend. The directory only contains the generated .env, so the build step never succeeds.


Steps to Reproduce

  1. Clone darkresearch/mallory and install dependencies.
    git clone https://github.com/darkresearch/mallory.git
    cd mallory
    bun install
  2. Configure .env files as described in the README (apps/client/.env, apps/server/.env, and the root .env for OPENMEMORY_* values).
  3. Make the setup script executable (if needed) and run it.
    chmod +x services/openmemory-setup.sh
    ./services/openmemory-setup.sh

Expected Result
The script should either finish the OpenMemory build successfully, or clearly instruct the user to fetch the OpenMemory backend before running.


Actual Result
The script stops with:

🚀 Setting up OpenMemory for Mallory...
✅ .env file already exists
🔨 Building OpenMemory...
error: Script not found "build"

services/openmemory/backend only contains .env; there are no sources or package.json, so Bun can’t run build. The .gitignore entry (services/openmemory/) suggests this directory is meant to be populated locally, but the README doesn’t explain how, leaving new users stuck.


Environment

  • macOS (Darwin 25.0.0)
  • Node.js v23.10.0
  • Bun 1.3.2
  • Fresh clone of darkresearch/mallory (main, November 2025)

Additional Context / Questions

  • Should the setup script fetch the OpenMemory backend automatically?
  • If manual installation is required, could the README include a section describing how to obtain and place the backend code under services/openmemory/backend before running the script?
  • Happy to open a PR updating the docs once the expected flow is clarified.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions