docker 装不上opengauss,pull了最新版的image之后,run命令创建container并不能正常启动
docker 装不上opengauss,pull了最新版的image之后,run命令创建container并不能正常启动
我来答
添加附件
收藏
复制链接
微信扫码分享

在小程序上查看
分享
添加附件
问题补充
6条回答
默认
最新
2023-05-09 19:09:42 WARNING: enabling "trust" authentication for local connections
2023-05-09 19:09:42 You can change this by editing pg_hba.conf or using the option -A, or
2023-05-09 19:09:42 --auth-local and --auth-host, the next time you run gs_initdb.
2023-05-09 19:09:42
2023-05-09 19:09:42 Success. You can now start the database server of single node using:
2023-05-09 19:09:42
2023-05-09 19:09:42 gaussdb -D /var/lib/opengauss/data --single_node
2023-05-09 19:09:42 or
2023-05-09 19:09:42 gs_ctl start -D /var/lib/opengauss/data -Z single_node -l logfile
2023-05-09 19:09:42
2023-05-09 19:09:42 [2023-05-09 11:09:42.469][179][][gs_ctl]: gs_ctl started,datadir is /var/lib/opengauss/data
2023-05-09 19:09:42 [2023-05-09 11:09:42.484][179][][gs_ctl]: waiting for server to start...
2023-05-09 19:09:42 .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2023-05-09 19:09:42
2023-05-09 19:09:42 0 LOG: [Alarm Module]Host Name: 8984a3a5bcc0
2023-05-09 19:09:42
2023-05-09 19:09:42 0 LOG: [Alarm Module]Host IP: 8984a3a5bcc0. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>
2023-05-09 19:09:42
2023-05-09 19:09:42 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed!
2023-05-09 19:09:42
2023-05-09 19:09:42 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2023-05-09 19:09:42
2023-05-09 19:09:42 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory.
2023-05-09 19:09:42 0 WARNING: failed to parse feature control file: gaussdb.version.
2023-05-09 19:09:42 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version.
2023-05-09 19:09:42 The core dump path is an invalid directory
2023-05-09 19:09:42 2023-05-09 11:09:42.519 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton.
2023-05-09 19:09:42 gaussdb.state does not exist, and skipt setting since it is optional.2023-05-09 11:09:42.523 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2023-05-09 19:09:42
2023-05-09 19:09:42 2023-05-09 11:09:42.523 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host Name: 8984a3a5bcc0
2023-05-09 19:09:42
2023-05-09 19:09:42 2023-05-09 11:09:42.523 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host IP: 8984a3a5bcc0. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>
2023-05-09 19:09:42
2023-05-09 19:09:42 2023-05-09 11:09:42.523 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed!
2023-05-09 19:09:42
2023-05-09 19:09:42 2023-05-09 11:09:42.523 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2023-05-09 19:09:42
2023-05-09 19:09:42 2023-05-09 11:09:42.526 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: loaded library "security_plugin"
2023-05-09 19:09:42 2023-05-09 11:09:42.526 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2023-05-09 19:09:42 2023-05-09 11:09:42.526 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2023-05-09 19:09:42 2023-05-09 11:09:42.532 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2023-05-09 19:09:42 2023-05-09 11:09:42.532 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB
2023-05-09 19:09:42 2023-05-09 11:09:42.532 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB
2023-05-09 19:09:42 2023-05-09 11:09:42.532 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 8143 MB
2023-05-09 19:09:42 2023-05-09 11:09:42.532 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: shared memory 3284 Mbytes, memory context 8491 Mbytes, max process memory 12288 Mbytes
2023-05-09 19:09:42 2023-05-09 11:09:42.575 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [CACHE] LOG: set data cache size(402653184)
2023-05-09 19:09:42 2023-05-09 11:09:42.602 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [SEGMENT_PAGE] LOG: Segment-page constants: DF_MAP_SIZE: 8156, DF_MAP_BIT_CNT: 65248, DF_MAP_GROUP_EXTENTS: 4175872, IPBLOCK_SIZE: 8168, EXTENTS_PER_IPBLOCK: 1021, IPBLOCK_GROUP_SIZE: 4090, BMT_HEADER_LEVEL0_TOTAL_PAGES: 8323072, BktMapEntryNumberPerBlock: 2038, BktMapBlockNumber: 25, BktBitMaxMapCnt: 512
2023-05-09 19:09:42 2023-05-09 11:09:42.618 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success
2023-05-09 19:09:42 2023-05-09 11:09:42.618 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal), connection index(1)
2023-05-09 19:09:42 2023-05-09 11:09:42.798 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: max_safe_fds = 978, usable_fds = 1000, already_open = 12
2023-05-09 19:09:42 The core dump path is an invalid directory
2023-05-09 19:09:42 2023-05-09 11:09:42.799 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: user configure file is not found, it will be created.
2023-05-09 19:09:42 2023-05-09 11:09:42.802 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: the configure file /usr/local/opengauss/etc/gscgroup_omm.cfg doesn't exist or the size of configure file has changed. Please create it by root user!
2023-05-09 19:09:42 2023-05-09 11:09:42.802 [unknown] [unknown] localhost 139790372319168 0[0:0#0] 0 [BACKEND] LOG: Failed to parse cgroup config file.
2023-05-09 19:09:48 [2023-05-09 11:09:48.491][179][][gs_ctl]: gaussDB state is Coredump
2023-05-09 19:09:48
2023-05-09 19:09:48 [2023-05-09 11:09:48.491][179][][gs_ctl]: stopped waiting
2023-05-09 19:09:48 [2023-05-09 11:09:48.491][179][][gs_ctl]: could not start server
2023-05-09 19:09:48 Examine the log output.
复制
有一大长串错误信息。


打赏 0
采纳答案后不可修改和取消
把完整的pull和run命令发出来下


打赏 0
docker pull enmotech/opengauss:5.0.0
docker run --hostname=6253b0d31973 --env=GS_PASSWORD=Euler@1234 --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=LANG=en_US.utf8 --env=GAUSSLOG=/home/omm/pg_log --env=PGDATA=/var/lib/opengauss/data --privileged -p 5432:5432 --restart=no --label='org.opencontainers.image.ref.name=ubuntu' --label='org.opencontainers.image.version=20.04' --runtime=runc -d enmotech/opengauss:5.0.0
直接用文档里的run命令能启动么? https://github.com/enmotech/enmotech-docker-opengauss
docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Secretpassword@123 \
-v /enmotech/opengauss:/var/lib/opengauss -u root -p 15432:5432 \
enmotech/opengauss:5.0.0
遇到了同样的错误。环境MacOS 13.4,docker 4.20.1 (110738)
使用https://hub.docker.com/r/opengauss/opengauss的opengauss/opengauss 5.0.0可以正常初始化和启动


打赏 0
可以尝试把容器里的 PGDATA (/var/lib/opengauss/data) 目录映射到宿主机上,当失败后,看下数据目录下 pg_log 里实例的启动日志,应该可以找到 coredump 的原因。


打赏 0
应该是虚拟化的原因,镜像在虚拟机以及云主机中测试都是正常的,在 WSL 会发生 coredump。可以尝试关闭虚拟化。


打赏 0
采纳答案后不可修改和取消
我也有同样问题!!现在解决了嘛!我用docker desktop 安装opengauss 5.0.0版本 时也遇到了同样的问题,请问你是否解决呢 可以说一下解决办法嘛


打赏 0
回答交流
Markdown
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
添加图片链接
上传图片
导航目录
Markdown语法参考
请输入正文
提示
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
