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
- Start the MemMachine service using the standard Docker setup:
- 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}}'
- Observe the API response and container logs.
Expected behavior
Persist the changed configs into configuration.yml
Environment
memmachine version: ca2dbf7
Additional context
No response