byterover-cli icon indicating copy to clipboard operation
byterover-cli copied to clipboard

[BUG] No embeddingManager found in agent.services

Open lloydmangnall opened this issue 1 year ago • 3 comments

Bug Description

I've installed cipher on my local machine, trying both local and using docker compose, and enabled all memory systems and ollama LLM. Cipher, PostgreSQL, Redis, and Neo4j are currently in containers (docker files attached) and ollama is installed on my local machine.

Steps to Reproduce

Expected Behavior

All of the containers appear to build and start fine:[+] Running 6/6 cipher-cipher Built 0.0s Network cipher-network Created 0.0s Container cipher-neo4j Healthy 12.2s Container cipher-redis Healthy 5.7s Container cipher-postgres Healthy 5.7s Container cipher-mcp Started 12.2s

Actual Behavior

Regardless of whether i build locally or dockerize, I get the following error at the end of the cipher boot up: [CIPHER-MCP] Log redirection activated: /tmp/cipher-mcp.log 20:58:14 INFO: MCP Manager: MCPManager initialized 20:58:14 INFO: MCP Manager: Initializing 0 servers (0 disabled) 20:58:14 INFO: MCP Manager: Initialization complete 20:58:14 INFO: [VectorStoreFactory] Creating dual collection vector storage from environment 20:58:14 INFO: DualCollectionVectorManager: Initialized with dual collections 20:58:14 INFO: DualCollectionVectorManager: Connecting collections... 20:58:14 INFO: [VectorStoreManager] Vector storage system connected 20:58:14 INFO: DualCollectionVectorManager: Knowledge collection connected 20:58:14 INFO: [VectorStoreManager] Vector storage system connected 20:58:14 INFO: DualCollectionVectorManager: Reflection collection connected 20:58:14 INFO: [KG-Factory] Creating knowledge graph from environment 20:58:14 DEBUG: [KG-Manager] Initialized with backend type: in-memory 20:58:14 INFO: [KG-Manager] Connecting to in-memory backend... 20:58:14 DEBUG: [KG-Manager] Loading in-memory backend module... 20:58:14 DEBUG: [KG-Memory] Initialized with config: 20:58:14 INFO: [KG-Memory] Connected successfully 20:58:14 DEBUG: [KG-Manager] Started health monitoring (interval: 5000ms) 20:58:14 INFO: [KG-Manager] Connected successfully to in-memory backend 20:58:14 INFO: [KG-Factory] Knowledge graph system created successfully 20:58:14 INFO: [StorageManager] Initialized with configuration 20:58:14 INFO: [StorageManager] Starting connection attempt 1 20:58:14 INFO: InMemoryBackend connected 20:58:14 INFO: [StorageManager:Cache] Connected successfully 20:58:14 INFO: SQLite backend connected successfully 20:58:14 INFO: [StorageManager:Database] Connected successfully 20:58:14 INFO: [StorageManager] Storage system connected No embeddingManager found in agent.services

embedding is configured in my cipher.yml to use ollama/mxbai-embed-large, but I'm unable to connect to cipher with the cli or via mcp

Screenshots

If applicable, add screenshots to help explain your problem.

Environment Information

cipher.yml

docker-compose.yml

################################################################################

Build stage - includes dev dependencies

################################################################################

Build stage - optimized for smaller final image

FROM node:20.18.1-alpine AS builder

Build arguments

ARG BUILD_UI=false ARG NODE_VERSION=20.18.1

Install build dependencies for native modules

RUN apk add --no-cache
python3
make
g++
&& rm -rf /var/cache/apk/*

WORKDIR /app

Copy package files first for better caching

COPY package*.json pnpm-lock.yaml ./

Install pnpm

RUN npm install -g [email protected]

Install dependencies

RUN pnpm install --frozen-lockfile

Copy source and build

COPY . .

Use conditional build based on BUILD_UI arg

RUN if [ "$BUILD_UI" = "true" ]; then pnpm run build; else pnpm run build:no-ui; fi

Clean up and prepare production node_modules

RUN pnpm prune --prod &&
pnpm store prune &&
rm -rf /root/.npm /tmp/* /usr/lib/node_modules/npm/man /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html /usr/lib/node_modules/npm/scripts

My Dockerfile ################################################################################

Production stage - minimal Alpine

FROM node:20.18.1-alpine AS production

WORKDIR /app

Create non-root user

RUN addgroup -g 1001 -S cipher && adduser -S cipher -u 1001

Create .cipher directory with proper permissions for database

RUN mkdir -p /app/.cipher/database &&
chown -R cipher:cipher /app/.cipher

Copy only essential production files

COPY --from=builder --chown=cipher:cipher /app/dist ./dist COPY --from=builder --chown=cipher:cipher /app/node_modules ./node_modules COPY --from=builder --chown=cipher:cipher /app/package.json ./ COPY --from=builder --chown=cipher:cipher /app/memAgent ./memAgent

Create a minimal .env file for Docker (environment variables will be passed via docker)

RUN echo "# Docker environment - variables passed via docker run" > .env

Environment variables

ENV NODE_ENV=production
PORT=3000
CONFIG_FILE=/app/memAgent/cipher.yml

Switch to non-root user

USER cipher

Health check

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3
CMD node -e "const http = require('http'); const req = http.request({host:'localhost',port:process.env.PORT||3000,path:'/health'}, (res) => process.exit(res.statusCode === 200 ? 0 : 1)); req.on('error', () => process.exit(1)); req.end();"

Single port for deployment platform

EXPOSE $PORT

API server mode: REST APIs on single port

CMD ["sh", "-c", "node dist/src/app/index.cjs --mode api --port $PORT --host 0.0.0.0 --agent $CONFIG_FILE"]

Logs and Error Messages

Please provide any relevant logs, error messages, or console output:

Paste error messages or logs here

Additional Context

Please provide any additional information you think might help

Possible Solution

If you have any ideas on how to fix the issue, please describe them here.

Checklist

  • [x] I have searched for similar issues before creating this one
  • [x] I have provided all the requested information above
  • [x] I have tested this on the latest version

lloydmangnall avatar Sep 24 '25 18:09 lloydmangnall

Sorry for the delay. The agent.services error is most likely caused by incorrect initialization of the LLM or embedder in your cipher.yml file. Could you share your .env and cipher.yml configurations so I can help you further?

willingWill17 avatar Sep 29 '25 04:09 willingWill17

This repository has been archived. No further work will be done. For production use, please visit https://byterover.dev/

IraBond avatar Nov 05 '25 21:11 IraBond

Hey @lloydmangnall, closing this due to inactivity.

A collaborator asked for your .env and cipher.yml configurations back in September 2025 to help diagnose the issue, but we never heard back. If you're still experiencing this, feel free to reopen with those config details and we'll take another look.

RyanNg1403 avatar Mar 16 '26 16:03 RyanNg1403