MaxKB
MaxKB copied to clipboard
postgresql启动不了
联系方式
No response
MaxKB 版本
最新
问题描述
wsl2 for windows11
重现步骤
docker run -d --name=maxkb -p 8080:8080 -v ./psdata:/var/lib/postgresql/data --privileged=true 1panel/maxkb
期待的正确结果
No response
相关日志输出
chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted The files belonging to this database system will be owned by user "postgres". This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english".
Data page checksums are disabled.
initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted fixing permissions on existing directory /var/lib/postgresql/data ... 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response waiting for postgres 127.0.0.1:5432 - no response
No response
附加信息
No response
感谢反馈,PgSQL启动不了,请参考一下 issue #46 的解决方案
感谢反馈,PgSQL启动不了,请参考一下 issue #46 的解决方案
不适用当前报错,
改成了docker-compose
`version: '3.1'
services: maxkb: image: 1panel/maxkb ports: - "8080:8080" restart: always volumes: - maxkb_data:/var/lib/postgresql/data
volumes: maxkb_data: `
compose文件在 image: 1panel/maxkb 下面加privileged: true
win11 wsl2下无效
如果没有问题,该 issue 先关闭了
wsl2 下解决了吗?
wsl2 下解决了吗?
WSL2运行没问题,volume不要挂载windows主机的目录,挂载wsl里的。
win11 wsl2下无效
升级docker desktop