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:
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 ...
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:
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
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: