cpacker / MemGPT

Letta (fka MemGPT) is a framework for creating stateful LLM services.
https://letta.com
Apache License 2.0
11.88k stars 1.3k forks source link

Potential docker compose portability issue #1345

Open d3287t328 opened 5 months ago

d3287t328 commented 5 months ago

Describe the bug On a Windows 11 host running wsl and ubuntu I had the issue that the memgpt_db-1 would fail to start correctly. I had to modify the compose.yaml file to get it to work a new volume with the lines:

volumes:
      - pgdata:/var/lib/postgresql/data
...
volumes:
  pgdata:

fixed the issue. I realize this may be a Windows specific issue in WSL but it would be good to document a solution to this issue.

Please describe your setup

Bash shell ubuntu wsl.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context The error messages I was getting from docker is this:

memgpt_db-1      | chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
memgpt_db-1      | The files belonging to this database system will be owned by user "postgres".
memgpt_db-1      | This user must also own the server process.
memgpt_db-1      |
memgpt_db-1      | The database cluster will be initialized with locale "en_US.utf8".
memgpt_db-1      | The default database encoding has accordingly been set to "UTF8".
memgpt_db-1      | The default text search configuration will be set to "english".
memgpt_db-1      |
memgpt_db-1      | Data page checksums are disabled.
memgpt_db-1      |
memgpt_db-1      | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
memgpt_db-1      | fixing permissions on existing directory /var/lib/postgresql/data ...
xlbljz commented 3 months ago

I have the same problem.Thanks for your solution.