pull
镜像以后执行run
命令
docker run -it --privileged=true --name gaussdb # omm密码 -e GS_PASSWORD=Gaussdb@123 # 指定端口 -p 15432:5432 # 持久化 -v gaussdb:/var/lib/opengauss # root权限 -u root enmotech/opengauss:latest
复制
报出错误
2021-07-22 02:11:43.059 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:11:43.062 [unknown] [unknown] localhost 139704246707968 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! 2021-07-22 02:11:43.062 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Failed to parse cgroup config file.
复制
后进入容器使用root账户手动创建文件
touch /usr/local/opengauss/etc/gscgroup_omm.cfg chmod 777 /usr/local/opengauss/etc/gscgroup_omm.cfg
复制
重启容器后依然报同样的错误
期待大佬们指出错误,谢谢
运行环境试过两个
MacOS 使用Docker Desktop
Windows 使用WSL2安装Debian 同样在Windows中安装Docker Desktop 操作WSL中的Docker

我觉得实际的报错信息可能不是gscgroup,建议在pg_log中寻找更详细的报错信息。


这是完整的启动日志,恳请大佬看一下
感觉是用户权限不够的问题,启动时已经加了-u root
Message: The supplied GS_PASSWORD is meet requirements. The files belonging to this database system will be owned by user "omm". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default text search configuration will be set to "english". fixing permissions on existing directory /var/lib/opengauss/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 32MB creating configuration files ... ok creating template1 database in /var/lib/opengauss/data/base/1 ... The core dump path is an invalid directory 2021-07-22 02:01:03.041 [unknown] [unknown] localhost 139783406647040 0 [BACKEND] WARNING: macAddr is 578/2886795266, sysidentifier is 37923857/160638, randomNum is 4053824382 ok initializing pg_authid ... The core dump path is an invalid directory ok setting password ... The core dump path is an invalid directory ok initializing dependencies ... The core dump path is an invalid directory ok loading PL/pgSQL server-side language ... The core dump path is an invalid directory ok creating system views ... The core dump path is an invalid directory ok creating performance views ... The core dump path is an invalid directory ok loading system objects' descriptions ... The core dump path is an invalid directory ok creating collations ... The core dump path is an invalid directory ok creating conversions ... The core dump path is an invalid directory ok creating dictionaries ... The core dump path is an invalid directory ok setting privileges on built-in objects ... The core dump path is an invalid directory ok initialize global configure for bucketmap length ... The core dump path is an invalid directory ok creating information schema ... The core dump path is an invalid directory The core dump path is an invalid directory ok loading foreign-data wrapper for distfs access ... The core dump path is an invalid directory ok loading foreign-data wrapper for hdfs access ... The core dump path is an invalid directory ok loading foreign-data wrapper for log access ... The core dump path is an invalid directory ok loading hstore extension ... The core dump path is an invalid directory ok loading foreign-data wrapper for MOT access ... The core dump path is an invalid directory ok loading security plugin ... The core dump path is an invalid directory ok update system tables ... The core dump path is an invalid directory ok vacuuming database template1 ... The core dump path is an invalid directory ok copying template1 to template0 ... The core dump path is an invalid directory ok copying template1 to postgres ... The core dump path is an invalid directory ok freezing database template0 ... The core dump path is an invalid directory ok freezing database template1 ... The core dump path is an invalid directory ok freezing database postgres ... The core dump path is an invalid directory ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run gs_initdb. Success. You can now start the database server of single node using: gaussdb -D /var/lib/opengauss/data --single_node or gs_ctl start -D /var/lib/opengauss/data -Z single_node -l logfile [2021-07-22 02:01:20.723][159][][gs_ctl]: gs_ctl started,datadir is /var/lib/opengauss/data [2021-07-22 02:01:20.874][159][][gs_ctl]: waiting for server to start... .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:01:21.128 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. gaussdb.state does not exist, and skipt setting since it is optional.2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:01:21.136 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:01:21.136 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:01:21.173 [unknown] [unknown] localhost 139861180630784 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:01:21.187 [unknown] [unknown] localhost 139861180630784 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:01:21.241 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:01:21.241 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:01:21.243 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: max_safe_fds = 984, usable_fds = 1000, already_open = 6 The core dump path is an invalid directory 2021-07-22 02:01:21.245 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: user configure file is not found, it will be created. 2021-07-22 02:01:21.250 [unknown] [unknown] localhost 139861180630784 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! 2021-07-22 02:01:21.250 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: Failed to parse cgroup config file. [2021-07-22 02:01:21.883][159][][gs_ctl]: done [2021-07-22 02:01:21.883][159][][gs_ctl]: server started (/var/lib/opengauss/data) GS_DB = omm Execute SQL: gsql -v ON_ERROR_STOP=1 --username omm --password Gaussdb@123 --dbname postgres --set db=omm --set passwd=Gaussdb@123 CREATE DATABASE NOTICE: The encrypted password contains MD5 ciphertext, which is not secure. CREATE ROLE ALTER ROLE default user is gaussdb default no repuser created /usr/local/bin/entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* [2021-07-22 02:01:22.250][219][][gs_ctl]: gs_ctl stopped ,datadir is /var/lib/opengauss/data waiting for server to shut down............. done server stopped openGauss init process complete; ready for start up. 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:01:32.523 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:01:32.531 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:01:32.531 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:01:32.565 [unknown] [unknown] localhost 140656983631616 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:01:32.577 [unknown] [unknown] localhost 140656983631616 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:01:32.632 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:01:32.632 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:01:32.633 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:01:32.636 [unknown] [unknown] localhost 140656983631616 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! 2021-07-22 02:01:32.636 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: Failed to parse cgroup config file. ^C openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:05:42.445 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:05:42.445 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:05:42.450 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:05:42.450 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:05:42.484 [unknown] [unknown] localhost 140529964939008 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:05:42.495 [unknown] [unknown] localhost 140529964939008 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:05:42.546 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:05:42.546 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:05:42.547 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:05:42.551 [unknown] [unknown] localhost 140529964939008 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! 2021-07-22 02:05:42.551 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: Failed to parse cgroup config file. openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:08:39.193 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:08:39.201 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:08:39.201 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:08:39.235 [unknown] [unknown] localhost 140180932024064 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:08:39.249 [unknown] [unknown] localhost 140180932024064 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:08:39.313 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:08:39.313 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:08:39.314 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:08:39.317 [unknown] [unknown] localhost 140180932024064 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! 2021-07-22 02:08:39.318 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: Failed to parse cgroup config file. openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:11:42.940 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:11:42.940 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:11:42.940 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:11:42.946 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:11:42.946 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:11:42.981 [unknown] [unknown] localhost 139704246707968 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:11:42.994 [unknown] [unknown] localhost 139704246707968 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:11:43.057 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:11:43.057 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:11:43.059 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:11:43.062 [unknown] [unknown] localhost 139704246707968 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! 2021-07-22 02:11:43.062 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Failed to parse cgroup config file. xonline@DESKTOP-ARJIJDN:/mnt/c/Users/zhang$ docker restart 3bfc41102906 3bfc41102906 xonline@DESKTOP-ARJIJDN:/mnt/c/Users/zhang$ docker logs 3bfc41102906 Message: The supplied GS_PASSWORD is meet requirements. The files belonging to this database system will be owned by user "omm". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default text search configuration will be set to "english". fixing permissions on existing directory /var/lib/opengauss/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 32MB creating configuration files ... ok creating template1 database in /var/lib/opengauss/data/base/1 ... The core dump path is an invalid directory 2021-07-22 02:01:03.041 [unknown] [unknown] localhost 139783406647040 0 [BACKEND] WARNING: macAddr is 578/2886795266, sysidentifier is 37923857/160638, randomNum is 4053824382 ok initializing pg_authid ... The core dump path is an invalid directory ok setting password ... The core dump path is an invalid directory ok initializing dependencies ... The core dump path is an invalid directory ok loading PL/pgSQL server-side language ... The core dump path is an invalid directory ok creating system views ... The core dump path is an invalid directory ok creating performance views ... The core dump path is an invalid directory ok loading system objects' descriptions ... The core dump path is an invalid directory ok creating collations ... The core dump path is an invalid directory ok creating conversions ... The core dump path is an invalid directory ok creating dictionaries ... The core dump path is an invalid directory ok setting privileges on built-in objects ... The core dump path is an invalid directory ok initialize global configure for bucketmap length ... The core dump path is an invalid directory ok creating information schema ... The core dump path is an invalid directory The core dump path is an invalid directory ok loading foreign-data wrapper for distfs access ... The core dump path is an invalid directory ok loading foreign-data wrapper for hdfs access ... The core dump path is an invalid directory ok loading foreign-data wrapper for log access ... The core dump path is an invalid directory ok loading hstore extension ... The core dump path is an invalid directory ok loading foreign-data wrapper for MOT access ... The core dump path is an invalid directory ok loading security plugin ... The core dump path is an invalid directory ok update system tables ... The core dump path is an invalid directory ok vacuuming database template1 ... The core dump path is an invalid directory ok copying template1 to template0 ... The core dump path is an invalid directory ok copying template1 to postgres ... The core dump path is an invalid directory ok freezing database template0 ... The core dump path is an invalid directory ok freezing database template1 ... The core dump path is an invalid directory ok freezing database postgres ... The core dump path is an invalid directory ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run gs_initdb. Success. You can now start the database server of single node using: gaussdb -D /var/lib/opengauss/data --single_node or gs_ctl start -D /var/lib/opengauss/data -Z single_node -l logfile [2021-07-22 02:01:20.723][159][][gs_ctl]: gs_ctl started,datadir is /var/lib/opengauss/data [2021-07-22 02:01:20.874][159][][gs_ctl]: waiting for server to start... .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:01:21.128 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. gaussdb.state does not exist, and skipt setting since it is optional.2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:01:21.129 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:01:21.136 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:01:21.136 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:01:21.147 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:01:21.173 [unknown] [unknown] localhost 139861180630784 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:01:21.187 [unknown] [unknown] localhost 139861180630784 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:01:21.241 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:01:21.241 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:01:21.243 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: max_safe_fds = 984, usable_fds = 1000, already_open = 6 The core dump path is an invalid directory 2021-07-22 02:01:21.245 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: user configure file is not found, it will be created. 2021-07-22 02:01:21.250 [unknown] [unknown] localhost 139861180630784 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! 2021-07-22 02:01:21.250 [unknown] [unknown] localhost 139861180630784 0 0 [BACKEND] LOG: Failed to parse cgroup config file. [2021-07-22 02:01:21.883][159][][gs_ctl]: done [2021-07-22 02:01:21.883][159][][gs_ctl]: server started (/var/lib/opengauss/data) GS_DB = omm Execute SQL: gsql -v ON_ERROR_STOP=1 --username omm --password Gaussdb@123 --dbname postgres --set db=omm --set passwd=Gaussdb@123 CREATE DATABASE NOTICE: The encrypted password contains MD5 ciphertext, which is not secure. CREATE ROLE ALTER ROLE default user is gaussdb default no repuser created /usr/local/bin/entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* [2021-07-22 02:01:22.250][219][][gs_ctl]: gs_ctl stopped ,datadir is /var/lib/opengauss/data waiting for server to shut down............. done server stopped openGauss init process complete; ready for start up. 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 5 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:01:32.523 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:01:32.524 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:01:32.531 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:01:32.531 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:01:32.539 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:01:32.565 [unknown] [unknown] localhost 140656983631616 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:01:32.577 [unknown] [unknown] localhost 140656983631616 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:01:32.632 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:01:32.632 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:01:32.633 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:01:32.636 [unknown] [unknown] localhost 140656983631616 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! 2021-07-22 02:01:32.636 [unknown] [unknown] localhost 140656983631616 0 0 [BACKEND] LOG: Failed to parse cgroup config file. openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:05:42.444 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:05:42.445 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:05:42.445 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:05:42.450 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:05:42.450 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:05:42.459 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:05:42.484 [unknown] [unknown] localhost 140529964939008 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:05:42.495 [unknown] [unknown] localhost 140529964939008 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:05:42.546 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:05:42.546 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:05:42.547 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:05:42.551 [unknown] [unknown] localhost 140529964939008 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! 2021-07-22 02:05:42.551 [unknown] [unknown] localhost 140529964939008 0 0 [BACKEND] LOG: Failed to parse cgroup config file. openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:08:39.193 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:08:39.194 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:08:39.201 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:08:39.201 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:08:39.208 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:08:39.235 [unknown] [unknown] localhost 140180932024064 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:08:39.249 [unknown] [unknown] localhost 140180932024064 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:08:39.313 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:08:39.313 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:08:39.314 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:08:39.317 [unknown] [unknown] localhost 140180932024064 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! 2021-07-22 02:08:39.318 [unknown] [unknown] localhost 140180932024064 0 0 [BACKEND] LOG: Failed to parse cgroup config file. openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-22 02:11:42.940 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-22 02:11:42.940 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-22 02:11:42.940 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-22 02:11:42.941 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-22 02:11:42.946 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-22 02:11:42.946 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-22 02:11:42.954 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-22 02:11:42.981 [unknown] [unknown] localhost 139704246707968 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-22 02:11:42.994 [unknown] [unknown] localhost 139704246707968 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-22 02:11:43.057 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-22 02:11:43.057 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-22 02:11:43.059 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-22 02:11:43.062 [unknown] [unknown] localhost 139704246707968 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! 2021-07-22 02:11:43.062 [unknown] [unknown] localhost 139704246707968 0 0 [BACKEND] LOG: Failed to parse cgroup config file. openGauss Database directory appears to contain a database; Skipping initialization 0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 0 LOG: [Alarm Module]Host Name: 3bfc41102906 0 LOG: [Alarm Module]Host IP: 172.17.0.2 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory. 0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version. 0 LOG: Failed to initialze environment for codegen. The core dump path is an invalid directory 2021-07-23 06:22:00.238 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton. 2021-07-23 06:22:00.238 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env. 2021-07-23 06:22:00.238 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: [Alarm Module]Host Name: 3bfc41102906 2021-07-23 06:22:00.239 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: [Alarm Module]Host IP: 172.17.0.2 2021-07-23 06:22:00.239 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed! 2021-07-23 06:22:00.239 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52 2021-07-23 06:22:00.239 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: Transparent encryption disabled. 2021-07-23 06:22:00.244 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: loaded library "security_plugin" 2021-07-23 06:22:00.244 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets 2021-07-23 06:22:00.252 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC. 2021-07-23 06:22:00.252 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0. 2021-07-23 06:22:00.252 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB 2021-07-23 06:22:00.252 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB 2021-07-23 06:22:00.252 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11097 MB 2021-07-23 06:22:00.252 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: shared memory 330 Mbytes, memory context 11445 Mbytes, max process memory 12288 Mbytes 2021-07-23 06:22:00.279 [unknown] [unknown] localhost 140649269638912 0 0 [CACHE] LOG: set data cache size(402653184) 2021-07-23 06:22:00.292 [unknown] [unknown] localhost 140649269638912 0 0 [CACHE] LOG: set metadata cache size(134217728) 2021-07-23 06:22:00.363 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success 2021-07-23 06:22:00.363 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal) 2021-07-23 06:22:00.364 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: max_safe_fds = 981, usable_fds = 1000, already_open = 9 The core dump path is an invalid directory 2021-07-23 06:22:00.368 [unknown] [unknown] localhost 140649269638912 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! 2021-07-23 06:22:00.368 [unknown] [unknown] localhost 140649269638912 0 0 [BACKEND] LOG: Failed to parse cgroup config file.
复制


这是docker的inspact
[ { "Id": "3bfc41102906fa389f08125b9d762bf58a017b0043600ab65bf4a37ba7f98bca", "Created": "2021-07-22T02:01:01.4891006Z", "Path": "entrypoint.sh", "Args": [ "gaussdb" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 7681, "ExitCode": 0, "Error": "", "StartedAt": "2021-07-23T06:21:59.8516539Z", "FinishedAt": "2021-07-23T06:21:59.0878289Z" }, "Image": "sha256:39eb4c00127d6917813a323805da5b2f27a46f7c83308b691f92a51fd8578b18", "ResolvConfPath": "/var/lib/docker/containers/3bfc41102906fa389f08125b9d762bf58a017b0043600ab65bf4a37ba7f98bca/resolv.conf", "HostnamePath": "/var/lib/docker/containers/3bfc41102906fa389f08125b9d762bf58a017b0043600ab65bf4a37ba7f98bca/hostname", "HostsPath": "/var/lib/docker/containers/3bfc41102906fa389f08125b9d762bf58a017b0043600ab65bf4a37ba7f98bca/hosts", "LogPath": "/var/lib/docker/containers/3bfc41102906fa389f08125b9d762bf58a017b0043600ab65bf4a37ba7f98bca/3bfc41102906fa389f08125b9d762bf58a017b0043600ab65bf4a37ba7f98bca-json.log", "Name": "/gaussdb", "RestartCount": 0, "Driver": "overlay2", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [ "gaussdb:/var/lib/opengauss" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "default", "PortBindings": { "5432/tcp": [ { "HostIp": "", "HostPort": "15432" } ] }, "RestartPolicy": { "Name": "no", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": null, "CgroupnsMode": "host", "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": null, "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": true, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": [ "label=disable" ], "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": [], "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DeviceCgroupRules": null, "DeviceRequests": null, "KernelMemory": 0, "KernelMemoryTCP": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": false, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": null, "ReadonlyPaths": null }, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/346f1756ecca9528cd11fc9c561f01c5f8267bf12a5ba25cdc1a9913dbe8dcb5-init/diff:/var/lib/docker/overlay2/92eef5daa45921fd7129b1b1e63375abca10e21108a0909e2cfab9ef07c29f53/diff:/var/lib/docker/overlay2/a846a7331e697b2f54741a5d39da769abba170cacab4e52f460a0f908decb1f8/diff:/var/lib/docker/overlay2/2ba428c7011208f9456fef7772d57f8554751b230a4ed969d72feba218f7a1a4/diff:/var/lib/docker/overlay2/1ab9f7cb83765b91741b783d1011f0e55797cda4738244f1ad493435f39cd56f/diff:/var/lib/docker/overlay2/d4702e073058d89bebcf7f57d5323f2d7fe46880466dfe78a5dea46e88b038a1/diff:/var/lib/docker/overlay2/5e5f7afef8b9b739a0eadf0afb7a0d2c8cd857df875dc2dbb3fbc841fecef476/diff:/var/lib/docker/overlay2/099b0f6a7cc7a371b751553187be010466cb469395fcace29d8cb07706791852/diff:/var/lib/docker/overlay2/4e4dd3bf3db4d920ce3071170b5dc80706f6d407483d276dddb087de79f761d4/diff:/var/lib/docker/overlay2/0558a8231214cf6321533589e9fe0a5b23803f45942d21a218d564b0094e1711/diff:/var/lib/docker/overlay2/facceb8379811c34c6476cff336bd149c5fbebebe7120018842867f641347aae/diff:/var/lib/docker/overlay2/597351538de9c4e2a68db6493385ff251d044bbcd9afcfecde4cc977ae892818/diff", "MergedDir": "/var/lib/docker/overlay2/346f1756ecca9528cd11fc9c561f01c5f8267bf12a5ba25cdc1a9913dbe8dcb5/merged", "UpperDir": "/var/lib/docker/overlay2/346f1756ecca9528cd11fc9c561f01c5f8267bf12a5ba25cdc1a9913dbe8dcb5/diff", "WorkDir": "/var/lib/docker/overlay2/346f1756ecca9528cd11fc9c561f01c5f8267bf12a5ba25cdc1a9913dbe8dcb5/work" }, "Name": "overlay2" }, "Mounts": [ { "Type": "volume", "Name": "gaussdb", "Source": "/var/lib/docker/volumes/gaussdb/_data", "Destination": "/var/lib/opengauss", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" } ], "Config": { "Hostname": "3bfc41102906", "Domainname": "", "User": "root", "AttachStdin": true, "AttachStdout": true, "AttachStderr": true, "ExposedPorts": { "5432/tcp": {} }, "Tty": true, "OpenStdin": true, "StdinOnce": true, "Env": [ "GS_PASSWORD=Gaussdb@123", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=en_US.utf8", "GOSU_VERSION=1.12", "PGDATA=/var/lib/opengauss/data" ], "Cmd": [ "gaussdb" ], "Image": "enmotech/opengauss:latest", "Volumes": null, "WorkingDir": "", "Entrypoint": [ "entrypoint.sh" ], "OnBuild": null, "Labels": { "desktop.docker.io/wsl-distro": "Debian" } }, "NetworkSettings": { "Bridge": "", "SandboxID": "fce141512ddb9d342ac897773829231714ea5f55c9d2385ca4d00a7c0916c8e5", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "5432/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "15432" }, { "HostIp": "::", "HostPort": "15432" } ] }, "SandboxKey": "/var/run/docker/netns/fce141512ddb", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "8754ab9978a2ab3e93b5920c347f17d863ddbdd936218d60df811674f25ce7d8", "Gateway": "172.17.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "172.17.0.2", "IPPrefixLen": 16, "IPv6Gateway": "", "MacAddress": "02:42:ac:11:00:02", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "NetworkID": "6380f17b24d8d6049c3e6714bdae965b6484eb2c0e10a6fad7c380abebd0943a", "EndpointID": "8754ab9978a2ab3e93b5920c347f17d863ddbdd936218d60df811674f25ce7d8", "Gateway": "172.17.0.1", "IPAddress": "172.17.0.2", "IPPrefixLen": 16, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:11:00:02", "DriverOpts": null } } } } ]
复制


我的mac 也是这样,我怀疑是和openguass 的缓存设计和容器分配到的内存有关,我在云服务器上8g内存启动就没问题,我启动了一些应用占用了一些内存后再启动openguass 就报错启动不了了。


请问问题解决了吗?现在我win10用docker desktop跑这个镜像也出现这个问题了:
docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Enmo@123 enmotech/opengauss:5.0.0
报错异常:
2024-05-10 14:35:24 The files belonging to this database system will be owned by user "omm".
2024-05-10 14:35:24 This user must also own the server process.
2024-05-10 14:35:24
2024-05-10 14:35:24 The database cluster will be initialized with locale "C".
2024-05-10 14:35:24 The default text search configuration will be set to "english".
2024-05-10 14:35:24
2024-05-10 14:35:24 fixing permissions on existing directory /var/lib/opengauss/data ... ok
2024-05-10 14:35:24 creating subdirectories ... in ordinary occasionok
2024-05-10 14:35:25 creating configuration files ... ok
2024-05-10 14:35:25 selecting default max_connections ... 100
2024-05-10 14:35:25 selecting default shared_buffers ... 1024MB
2024-05-10 14:35:25 Begin init undo subsystem meta.
2024-05-10 14:35:25 [INIT UNDO] Init undo subsystem meta successfully.
2024-05-10 14:35:25 creating template1 database in /var/lib/opengauss/data/base/1 ... The core dump path is an invalid directory
2024-05-10 14:35:25 2024-05-10 06:35:25.602 [unknown] [unknown] localhost 139718079479744 0[0:0#0] [BACKEND] WARNING: macAddr is 578/2886795266, sysidentifier is 37923857/187412, randomNum is 3549813780
2024-05-10 14:35:27 ok
2024-05-10 14:35:27 initializing pg_authid ... ok
2024-05-10 14:35:27 setting password ... ok
2024-05-10 14:35:27 initializing dependencies ... ok
2024-05-10 14:35:28 loading PL/pgSQL server-side language ... ok
2024-05-10 14:35:28 creating system views ... ok
2024-05-10 14:35:24
2024-05-10 14:35:24 Message: The supplied GS_PASSWORD is meet requirements.
2024-05-10 14:35:24
2024-05-10 14:35:29 creating performance views ... ok
2024-05-10 14:35:29 loading system objects' descriptions ... ok
2024-05-10 14:35:29 creating collations ... ok
2024-05-10 14:35:29 creating conversions ... ok
2024-05-10 14:35:30 creating dictionaries ... ok
2024-05-10 14:35:30 setting privileges on built-in objects ... ok
2024-05-10 14:35:30 initialize global configure for bucketmap length ... ok
2024-05-10 14:35:30 creating information schema ... ok
2024-05-10 14:35:31 loading foreign-data wrapper for distfs access ... ok
2024-05-10 14:35:31 loading foreign-data wrapper for log access ... ok
2024-05-10 14:35:31 loading hstore extension ... ok
2024-05-10 14:35:31 loading foreign-data wrapper for MOT access ... ok
2024-05-10 14:35:32 loading security plugin ... ok
2024-05-10 14:35:32 update system tables ... ok
2024-05-10 14:35:33 creating snapshots catalog ... ok
2024-05-10 14:35:34 vacuuming database template1 ... ok
2024-05-10 14:35:34 copying template1 to template0 ... ok
2024-05-10 14:35:34 copying template1 to postgres ... ok
2024-05-10 14:35:35 freezing database template0 ... ok
2024-05-10 14:35:35 freezing database template1 ... ok
2024-05-10 14:35:35 freezing database postgres ... ok
2024-05-10 14:35:35
2024-05-10 14:35:35 WARNING: enabling "trust" authentication for local connections
2024-05-10 14:35:35 You can change this by editing pg_hba.conf or using the option -A, or
2024-05-10 14:35:35 --auth-local and --auth-host, the next time you run gs_initdb.
2024-05-10 14:35:35
2024-05-10 14:35:35 Success. You can now start the database server of single node using:
2024-05-10 14:35:35
2024-05-10 14:35:35 gaussdb -D /var/lib/opengauss/data --single_node
2024-05-10 14:35:35 or
2024-05-10 14:35:35 gs_ctl start -D /var/lib/opengauss/data -Z single_node -l logfile
2024-05-10 14:35:35
2024-05-10 14:35:35 [2024-05-10 06:35:35.609][180][][gs_ctl]: gs_ctl started,datadir is /var/lib/opengauss/data
2024-05-10 14:35:35 [2024-05-10 06:35:35.625][180][][gs_ctl]: waiting for server to start...
2024-05-10 14:35:35 .0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2024-05-10 14:35:35
2024-05-10 14:35:35 0 LOG: [Alarm Module]Host Name: 272bb2592a51
2024-05-10 14:35:35
2024-05-10 14:35:35 0 LOG: [Alarm Module]Host IP: 272bb2592a51. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>
2024-05-10 14:35:35
2024-05-10 14:35:35 0 LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed!
2024-05-10 14:35:35
2024-05-10 14:35:35 0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2024-05-10 14:35:35
2024-05-10 14:35:35 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-05-10 14:35:35 0 WARNING: failed to parse feature control file: gaussdb.version.
2024-05-10 14:35:35 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version.
2024-05-10 14:35:35 The core dump path is an invalid directory
2024-05-10 14:35:35 2024-05-10 06:35:35.660 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: when starting as multi_standby mode, we couldn't support data replicaton.
2024-05-10 14:35:35 gaussdb.state does not exist, and skipt setting since it is optional.2024-05-10 06:35:35.665 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2024-05-10 14:35:35
2024-05-10 14:35:35 2024-05-10 06:35:35.665 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host Name: 272bb2592a51
2024-05-10 14:35:35
2024-05-10 14:35:35 2024-05-10 06:35:35.665 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host IP: 272bb2592a51. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>
2024-05-10 14:35:35
2024-05-10 14:35:35 2024-05-10 06:35:35.665 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Get ENV GS_CLUSTER_NAME failed!
2024-05-10 14:35:35
2024-05-10 14:35:35 2024-05-10 06:35:35.665 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2024-05-10 14:35:35
2024-05-10 14:35:35 2024-05-10 06:35:35.671 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: loaded library "security_plugin"
2024-05-10 14:35:35 2024-05-10 06:35:35.672 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2024-05-10 14:35:35 2024-05-10 06:35:35.672 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2024-05-10 14:35:35 2024-05-10 06:35:35.686 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2024-05-10 14:35:35 2024-05-10 06:35:35.686 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB
2024-05-10 14:35:35 2024-05-10 06:35:35.686 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB
2024-05-10 14:35:35 2024-05-10 06:35:35.686 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 8143 MB
2024-05-10 14:35:35 2024-05-10 06:35:35.686 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: shared memory 3284 Mbytes, memory context 8491 Mbytes, max process memory 12288 Mbytes
2024-05-10 14:35:35 2024-05-10 06:35:35.731 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [CACHE] LOG: set data cache size(402653184)
2024-05-10 14:35:35 2024-05-10 06:35:35.760 [unknown] [unknown] localhost 140211540156352 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-05-10 14:35:35 2024-05-10 06:35:35.775 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success
2024-05-10 14:35:35 2024-05-10 06:35:35.776 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal), connection index(1)
2024-05-10 14:35:35 2024-05-10 06:35:35.931 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: max_safe_fds = 978, usable_fds = 1000, already_open = 12
2024-05-10 14:35:35 The core dump path is an invalid directory
2024-05-10 14:35:35 2024-05-10 06:35:35.932 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: user configure file is not found, it will be created.
2024-05-10 14:35:35 2024-05-10 06:35:35.936 [unknown] [unknown] localhost 140211540156352 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-05-10 14:35:35 2024-05-10 06:35:35.936 [unknown] [unknown] localhost 140211540156352 0[0:0#0] 0 [BACKEND] LOG: Failed to parse cgroup config file.
2024-05-10 14:35:41 [2024-05-10 06:35:41.629][180][][gs_ctl]: gaussDB state is Coredump
2024-05-10 14:35:41
2024-05-10 14:35:41 [2024-05-10 06:35:41.630][180][][gs_ctl]: stopped waiting
2024-05-10 14:35:41 [2024-05-10 06:35:41.630][180][][gs_ctl]: could not start server
2024-05-10 14:35:41 Examine the log output.


我也遇到了这个问题


请问如何解决,我下面的也不行
```
docker run -d \
--name opengauss \
--privileged \
-e GS_PASSWORD="实际密码" \
-p 5432:5432 \
-v ./data:/var/lib/opengauss/data \
enmotech/opengauss-lite:latest \
-u root
```


