Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential docker compose portability issue #1345

Open
2 tasks
d3287t328 opened this issue May 6, 2024 · 0 comments
Open
2 tasks

Potential docker compose portability issue #1345

d3287t328 opened this issue May 6, 2024 · 0 comments
Assignees

Comments

@d3287t328
Copy link

d3287t328 commented May 6, 2024

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

  • How did you install memgpt?
    git clone and latest sources

  • Describe your setup

    • What's your OS (Windows/MacOS/Linux)?
    • How are you running memgpt? (cmd.exe/Powershell/Anaconda Shell/Terminal)

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 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

2 participants