Closed
Description
What happened?
Memory feature is failing to perform basic operations (get, set). From the error log, it seems like the model is not properly initialized.
Version Information
ghcr.io/danny-avila/librechat-dev-api latest dd157e45400f 3 hours ago 1.19GB
ghcr.io/danny-avila/librechat-rag-api-dev-lite latest 817faebddae9 2 months ago 1.31GB
Steps to Reproduce
- Create a new memory
- Enter all the information
- Error on UI "Failed to get all memories: Cannot read properties of undefined (reading 'find')"
What browsers are you seeing the problem on?
Firefox, Chrome
Relevant log output
{"level":"error","message":"Failed to get formatted memories: Failed to get all memories: Cannot read properties of undefined (reading 'find')","stack":"Error: Failed to get all memories: Cannot read properties of undefined (reading 'find')\n at getAllUserMemories (/app/packages/data-schemas/dist/index.cjs:2909:19)\n at Object.getFormattedMemories (/app/packages/data-schemas/dist/index.cjs:2917:36)\n at /app/packages/api/dist/index.js:7:109848\n at Generator.next (<anonymous>)\n at /app/packages/api/dist/index.js:1:2201\n at new Promise (<anonymous>)\n at __awaiter (/app/packages/api/dist/index.js:1:1946)\n at createMemoryProcessor (/app/packages/api/dist/index.js:7:109663)\n at AgentClient.useMemory (/app/api/server/controllers/agents/client.js:478:48)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}
{"level":"error","message":"Failed to get formatted memories: Failed to get all memories: Cannot read properties of undefined (reading 'find')","stack":"Error: Failed to get all memories: Cannot read properties of undefined (reading 'find')\n at getAllUserMemories (/app/packages/data-schemas/dist/index.cjs:2909:19)\n at Object.getFormattedMemories (/app/packages/data-schemas/dist/index.cjs:2917:36)\n at /app/packages/api/dist/index.js:7:109848\n at Generator.next (<anonymous>)\n at /app/packages/api/dist/index.js:1:2201\n at new Promise (<anonymous>)\n at __awaiter (/app/packages/api/dist/index.js:1:1946)\n at createMemoryProcessor (/app/packages/api/dist/index.js:7:109663)\n at AgentClient.useMemory (/app/api/server/controllers/agents/client.js:478:48)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}
{"level":"error","message":"Memory Agent failed to set memory Failed to set memory: Cannot read properties of undefined (reading 'findOneAndUpdate')","stack":"Error: Failed to set memory: Cannot read properties of undefined (reading 'findOneAndUpdate')\n at setMemory (/app/packages/data-schemas/dist/index.cjs:2886:19)\n at /app/packages/api/dist/index.js:7:105637\n at Generator.next (<anonymous>)\n at /app/packages/api/dist/index.js:1:2201\n at new Promise (<anonymous>)\n at __awaiter (/app/packages/api/dist/index.js:1:1946)\n at tool.name (/app/packages/api/dist/index.js:7:104684)\n at /app/packages/api/dist/index.js:7:102641\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at AsyncLocalStorageProvider.runWithConfig (/app/packages/api/dist/index.js:7:9160)"}
{"level":"error","message":"Failed to get formatted memories: Failed to get all memories: Cannot read properties of undefined (reading 'find')","stack":"Error: Failed to get all memories: Cannot read properties of undefined (reading 'find')\n at getAllUserMemories (/app/packages/data-schemas/dist/index.cjs:2909:19)\n at Object.getFormattedMemories (/app/packages/data-schemas/dist/index.cjs:2917:36)\n at /app/packages/api/dist/index.js:7:109848\n at Generator.next (<anonymous>)\n at /app/packages/api/dist/index.js:1:2201\n at new Promise (<anonymous>)\n at __awaiter (/app/packages/api/dist/index.js:1:1946)\n at createMemoryProcessor (/app/packages/api/dist/index.js:7:109663)\n at AgentClient.useMemory (/app/api/server/controllers/agents/client.js:478:48)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}
Screenshots

Code of Conduct
- I agree to follow this project's Code of Conduct