MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

postgresql启动不了

Open zmm1996 opened this issue 10 months ago • 4 comments

联系方式

No response

MaxKB 版本

最新

问题描述

wsl2 for windows11

image

image

重现步骤

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

zmm1996 avatar Apr 24 '24 13:04 zmm1996

感谢反馈,PgSQL启动不了,请参考一下 issue #46 的解决方案

baixin513 avatar Apr 25 '24 02:04 baixin513

感谢反馈,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: `

image

zmm1996 avatar Apr 25 '24 02:04 zmm1996

compose文件在 image: 1panel/maxkb 下面加privileged: true

baixin513 avatar Apr 25 '24 02:04 baixin513

win11 wsl2下无效

limxc avatar Apr 26 '24 02:04 limxc

如果没有问题,该 issue 先关闭了

baixin513 avatar Apr 30 '24 05:04 baixin513

wsl2 下解决了吗?

ChaoII avatar May 07 '24 02:05 ChaoII

wsl2 下解决了吗?

WSL2运行没问题,volume不要挂载windows主机的目录,挂载wsl里的。

xinkeng0 avatar Jun 07 '24 08:06 xinkeng0

win11 wsl2下无效

升级docker desktop

ldm457872020 avatar Jun 08 '24 14:06 ldm457872020