Skip to content

[Bug]: Runtime configuration fails to persist to configuration.yml when running in Docker container #1049

@szou-mv

Description

@szou-mv

Describe the bug

The new runtime configuration feature attempts to write configuration changes back to configuration.yml on the disk. However, in our standard docker-compose setup, the configuration file is mounted as read-only (:ro).

Hence when we tried to write new config into file, we got error: memmachine.server.api_v2.config_service - Failed to persist configuration to file: [Errno 30] Read-only file system: 'configuration.yml'

And the conf will be lost when the service restarts.

Steps to reproduce

  1. Start the MemMachine service using the standard Docker setup:
  docker-compose up -d
  1. Call the runtime configuration API to modify a setting. For example, using curl to update memory capacity:
curl -X PUT http://localhost:8000/config/memory/episodic \
  -H "Content-Type: application/json" \
  -d '{"short_term_memory": {"message_capacity": 100}}'
  1. Observe the API response and container logs.

Expected behavior

Persist the changed configs into configuration.yml

Environment

memmachine version: ca2dbf7

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions