暂无图片
win11 docker compose enmotech/opengauss:latest 报错 the configure file /usr/local/opengauss/etc/gscgroup_omm.cfg doesn't exist
我来答
分享
TARRY
2024-01-14
win11 docker compose enmotech/opengauss:latest 报错 the configure file /usr/local/opengauss/etc/gscgroup_omm.cfg doesn't exist
docker-compose.yml 如下:version: "3.8" services: opengaussv5: restart: always image: enmotech/opengauss:latest container_name: opengaussv5 hostname: opengaussv5 privileged: true environment: TZ: Asia/Shanghai volumes: - datav5:/var/lib/opengauss/data ports: - 5432:5432 networks: - net_gauss networks: net_gauss: driver: bridge volumes: datav5:错误日志入下:2024-01-14 13:02:29 2024-01-14 13:02:29 Success. You can now start the database server of single node using: 2024-01-14 13:02:29 2024-01-14 13:02:29 gaussdb -D /var/lib/opengauss/data --single_node 2024-01-14 13:02:29 or 2024-01-14 13:02:29 gs_ctl start -D /var/lib/opengauss/data -Z single_node -l logfile 2024-01-14 13:02:29 2024-01-14 13:02:29 [2024-01-14 05:02:29.058][178][][gs_ctl]: gs_ctl started,datadir is /var/lib/opengauss/data 2024-01-14 13:02:29 [2024-01-14 05:02:29.071][178][][gs_ctl]: waiting for server to start... 2024-01-14 13:02:29 .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2024-01-14 13:02:29 2024-01-14 13:02:29 0 LOG: [Alarm Module]Host Name: opengaussv5 2024-01-14 13:02:29 2024-01-14 13:02:29 0 LOG: [Alarm Module]Host IP: opengaussv5. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain 2024-01-14 13:02:29 2024-01-14 13:02:29 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2024-01-14 13:02:30 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2024-01-14 13:02:30 2024-01-14 13:02:30 0 LOG: [Alarm Module]Host Name: opengaussv5 2024-01-14 13:02:30 2024-01-14 13:02:30 0 LOG: [Alarm Module]Host IP: opengaussv5. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain 2024-01-14 13:02:30 2024-01-14 13:02:30 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2024-01-14 13:02:30 2024-01-14 13:02:30 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57 2024-01-14 13:02:30 2024-01-14 13:02:30 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 2024-01-14 13:02:30 0 WARNING: failed to parse feature control file: gaussdb.version. 2024-01-14 13:02:30 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 2024-01-14 13:02:30 2024-01-14 13:02:30.477 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2024-01-14 13:02:30 2024-01-14 13:02:30.477 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: base_page_saved_interval is 400, ori is 400. 2024-01-14 13:02:30 2024-01-14 13:02:30.485 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2024-01-14 13:02:30 2024-01-14 13:02:30 2024-01-14 13:02:30.485 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host Name: opengaussv5 2024-01-14 13:02:30 2024-01-14 13:02:30 2024-01-14 13:02:30.485 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host IP: opengaussv5. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain 2024-01-14 13:02:30 2024-01-14 13:02:30 2024-01-14 13:02:30.485 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2024-01-14 13:02:30 2024-01-14 13:02:30 2024-01-14 13:02:30.485 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57 2024-01-14 13:02:30 2024-01-14 13:02:30 2024-01-14 13:02:30.492 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: loaded library "security_plugin" 2024-01-14 13:02:30 2024-01-14 13:02:30.492 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2024-01-14 13:02:30 2024-01-14 13:02:30.492 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2024-01-14 13:02:30 2024-01-14 13:02:30.502 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2024-01-14 13:02:30 2024-01-14 13:02:30.502 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2024-01-14 13:02:30 2024-01-14 13:02:30.502 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2024-01-14 13:02:30 2024-01-14 13:02:30.502 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 8142 MB 2024-01-14 13:02:30 2024-01-14 13:02:30.502 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: shared memory 3285 Mbytes, memory context 8490 Mbytes, max process memory 12288 Mbytes 2024-01-14 13:02:30 2024-01-14 13:02:30.553 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [CACHE] LOG: set data cache size(402653184) 2024-01-14 13:02:30 2024-01-14 13:02:30.582 [unknown] [unknown] localhost 140408013684992 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 2024-01-14 13:02:30 2024-01-14 13:02:30.592 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2024-01-14 13:02:30 2024-01-14 13:02:30.592 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal), connection index(1) 2024-01-14 13:02:30 2024-01-14 13:02:30.613 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: max_safe_fds = 979, usable_fds = 1000, already_open = 11 2024-01-14 13:02:30 2024-01-14 13:02:30.614 [unknown] [unknown] localhost 140408013684992 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! 2024-01-14 13:02:30 2024-01-14 13:02:30.614 [unknown] [unknown] localhost 140408013684992 0[0:0#0] 0 [BACKEND] LOG: Failed to parse cgroup config file. 2024-01-14 13:02:31 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2024-01-14 13:02:31 2024-01-14 13:02:31 0 LOG: [Alarm Module]Host Name: opengaussv5 2024-01-14 13:02:31 2024-01-14 13:02:31 0 LOG: [Alarm Module]Host IP: opengaussv5. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain 2024-01-14 13:02:31 2024-01-14 13:02:31 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2024-01-14 13:02:31 2024-01-14 13:02:31 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57 2024-01-14 13:02:31 2024-01-14 13:02:31 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 2024-01-14 13:02:31 0 WARNING: failed to parse feature control file: gaussdb.version. 2024-01-14 13:02:31 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 2024-01-14 13:02:31 2024-01-14 13:02:31.099 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2024-01-14 13:02:31 2024-01-14 13:02:31.099 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: base_page_saved_interval is 400, ori is 400. 2024-01-14 13:02:31 2024-01-14 13:02:31.103 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2024-01-14 13:02:31 2024-01-14 13:02:31 2024-01-14 13:02:31.103 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host Name: opengaussv5 2024-01-14 13:02:31 2024-01-14 13:02:31 2024-01-14 13:02:31.103 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host IP: opengaussv5. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain 2024-01-14 13:02:31 2024-01-14 13:02:31 2024-01-14 13:02:31.103 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2024-01-14 13:02:31 2024-01-14 13:02:31 2024-01-14 13:02:31.103 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57 2024-01-14 13:02:31 2024-01-14 13:02:31 2024-01-14 13:02:31.106 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: loaded library "security_plugin" 2024-01-14 13:02:31 2024-01-14 13:02:31.107 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2024-01-14 13:02:31 2024-01-14 13:02:31.107 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2024-01-14 13:02:31 2024-01-14 13:02:31.120 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2024-01-14 13:02:31 2024-01-14 13:02:31.120 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2024-01-14 13:02:31 2024-01-14 13:02:31.120 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2024-01-14 13:02:31 2024-01-14 13:02:31.120 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 8142 MB 2024-01-14 13:02:31 2024-01-14 13:02:31.120 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: shared memory 3285 Mbytes, memory context 8490 Mbytes, max process memory 12288 Mbytes 2024-01-14 13:02:31 2024-01-14 13:02:31.167 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [CACHE] LOG: set data cache size(402653184) 2024-01-14 13:02:31 2024-01-14 13:02:31.199 [unknown] [unknown] localhost 140375133368576 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 2024-01-14 13:02:31 2024-01-14 13:02:31.209 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2024-01-14 13:02:31 2024-01-14 13:02:31.209 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal), connection index(1) 2024-01-14 13:02:31 2024-01-14 13:02:31.224 [unknown] [unknown] localhost 140375133368576 0[0:0#0] 0 [BACKEND] LOG: max_safe_fds = 979, usable_fds = 1000, already_open = 11 2024-01-14 13:02:31 2024-01-14 13:02:31.225 [unknown] [unknown] localhost 140375133368576 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!
我来答
添加附件
收藏
分享
问题补充
3条回答
默认
最新
TARRY
升级问题到: 紧急故障
暂无图片 评论
暂无图片 有用 9
打赏 0
Mjwlan

该错误提示表明在使用enmotech/opengauss:latest镜像时,无法找到配置文件/usr/local/opengauss/etc/gscgroup_omm.cfg

要解决这个问题,你可以尝试以下几个步骤:

  1. 检查镜像是否正确:确保你下载的enmotech/opengauss:latest镜像是完整且正确的。你可以尝试重新下载或使用其他版本的镜像来看是否仍然存在同样的问题。

  2. 查看镜像中的目录结构:使用以下命令可以查看镜像中的目录结构:

    复制代码

    docker run -it enmotech/opengauss:latest ls /usr/local/opengauss/etc
    复制

    确认 /usr/local/opengauss/etc 目录下是否存在 gscgroup_omm.cfg 文件。如果不存在,则可能是镜像本身缺少了该配置文件。

  3. 编写自定义配置文件:如果在镜像中确实没有 gscgroup_omm.cfg 文件,你可以根据OpenGauss官方文档或其他资源,编写一个适当的配置文件,并保存为 gscgroup_omm.cfg。然后,将该文件挂载到容器中,在Docker Compose 中使用 volumes 配置项来完成挂载。

    例如,在 docker-compose.yml 文件中添加以下配置:

    复制代码

    services: your_service_name: image: enmotech/opengauss:latest volumes: - ./path/to/your/gscgroup_omm.cfg:/usr/local/opengauss/etc/gscgroup_omm.cfg
    复制

    ./path/to/your/gscgroup_omm.cfg 替换为你实际的配置文件路径。

暂无图片 评论
暂无图片 有用 0
打赏 0
TARRY
题主
2024-01-17
该镜像降到3.0.0 可用。另外通过本地挂在gscgroup_omm.cfg文件方式,目前不可行,容器启动直接报错。且该镜像换成opengauss/opengauss:latest 同样存在。
DarkAthena

与gscgroup没关系,正常安装用gs_ctl启动也会有这个警告。建议查看数据库的日志文件

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
openGauss 行列混合存储,其场景如何优先选择才能性能最大化?
回答 1
酷哥整理了一份,欢迎参考、补充:
关于华为openGauss,WDR主要组件WDR Reporter的Summary和Detail级别诊断报告,分析性能数据方面有什么区别?
回答 1
Summary更多的是一个概述信息,比如发现最近写IO较高,有可能负载产生了变化,可以在对比异常和正常的Summary报告,其中有数据的写入量的信息,如果发现确实是有写入的差异,再可以比较Detail
opengauss一键安装报错:no such file or directory
回答 1
你好,请问安装过程是按照官方手册进行的吗?从报错来看是用户和路径准备出现了问题。omm用户是否已经创建?参考openGauss2.1.0安装说明
安装opengauss时root互信报错,root密码填写肯定是没问题,麻烦问下问题原因是什么
回答 3
这个模块没找到libpython3.6m.so.1.0,可以看下这个包安装对了么python3libs
openeuler里带的opengauss,怎么用?
回答 3
在服务器操作系统安装的时候,选择组件那一步,可以看到有openGauss,勾选上,就和操作系统一起装好了
enmotech/opengauss root
回答 3
datastudio连接docker里的openGauss,不需要做什么复杂的设置,创建容器的时候用p参数映射一下端口就好了,我目前就是这么连的
opengauss 建立B库
回答 1
3306端口通常是用于MySQL数据库的默认端口,而不是OpenGauss数据库的端口号。如果你正在使用OpenGauss数据库,并且在3306端口上创建了数据库,那么可能导致Navicat无法连接并
opengauss是否支持使用sqlalchemy连接使用呢?
回答 3
已采纳
https://www.modb.pro/db/81268看看这个
docker中运行opengauss,如何查看数据库的运行日志?
回答 1
dockerlogsCONTAINERID可以查看运行日志。如果需要查看数据库的日志,1、进入docker查看dockerexectiCONTAINERID/bin/bash2、做持久化,把数据库目录
opengauss创建的dblink为什么没法持久化保存
回答 1
dblinkconnection是会话级的,如果要方便使用,可以在函数里封装一下dblinkconnect函数。
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~