暂无图片
使用docker启动云和恩墨openGauss镜像报错:user configure file is not found, it will be created.
我来答
分享
Wesley
2024-05-10
使用docker启动云和恩墨openGauss镜像报错:user configure file is not found, it will be created.

win10系统使用docker desktop运行

云和恩墨openGauss镜像


https://hub.docker.com/layers/enmotech/opengauss/5.0.0/images/sha256-55a0c6300b84fb79034d2f9d9924557a0d040c2d9d33e51f8ae8a1eb097dad1e?context=repo


docker命令:

docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Enmo@123 enmotech/opengauss:5.0.0



报错信息:


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: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: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.




inspect:

{
	"Id": "272bb2592a5105668d0d93ba2aca1b5751ec75130fc5f7f296274b11ab420ba4",
	"Created": "2024-05-10T06:35:24.478908488Z",
	"Path": "entrypoint.sh",
	"Args": [
		"gaussdb"
	],
	"State": {
		"Status": "exited",
		"Running": false,
		"Paused": false,
		"Restarting": false,
		"OOMKilled": false,
		"Dead": false,
		"Pid": 0,
		"ExitCode": 1,
		"Error": "",
		"StartedAt": "2024-05-10T06:35:24.865559068Z",
		"FinishedAt": "2024-05-10T06:35:41.698546848Z"
	},
	"Image": "sha256:c69c8aebefe8fa32f302d781ea95eea6d0896c1730bc7e988aec2185814cf4ee",
	"ResolvConfPath": "/var/lib/docker/containers/272bb2592a5105668d0d93ba2aca1b5751ec75130fc5f7f296274b11ab420ba4/resolv.conf",
	"HostnamePath": "/var/lib/docker/containers/272bb2592a5105668d0d93ba2aca1b5751ec75130fc5f7f296274b11ab420ba4/hostname",
	"HostsPath": "/var/lib/docker/containers/272bb2592a5105668d0d93ba2aca1b5751ec75130fc5f7f296274b11ab420ba4/hosts",
	"LogPath": "/var/lib/docker/containers/272bb2592a5105668d0d93ba2aca1b5751ec75130fc5f7f296274b11ab420ba4/272bb2592a5105668d0d93ba2aca1b5751ec75130fc5f7f296274b11ab420ba4-json.log",
	"Name": "/opengauss",
	"RestartCount": 0,
	"Driver": "overlay2",
	"Platform": "linux",
	"MountLabel": "",
	"ProcessLabel": "",
	"AppArmorProfile": "",
	"ExecIDs": null,
	"HostConfig": {
		"Binds": null,
		"ContainerIDFile": "",
		"LogConfig": {
			"Type": "json-file",
			"Config": {}
		},
		"NetworkMode": "default",
		"PortBindings": {},
		"RestartPolicy": {
			"Name": "no",
			"MaximumRetryCount": 0
		},
		"AutoRemove": false,
		"VolumeDriver": "",
		"VolumesFrom": null,
		"ConsoleSize": [
			30,
			120
		],
		"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",
		"Isolation": "",
		"CpuShares": 0,
		"Memory": 0,
		"NanoCpus": 0,
		"CgroupParent": "",
		"BlkioWeight": 0,
		"BlkioWeightDevice": [],
		"BlkioDeviceReadBps": [],
		"BlkioDeviceWriteBps": [],
		"BlkioDeviceReadIOps": [],
		"BlkioDeviceWriteIOps": [],
		"CpuPeriod": 0,
		"CpuQuota": 0,
		"CpuRealtimePeriod": 0,
		"CpuRealtimeRuntime": 0,
		"CpusetCpus": "",
		"CpusetMems": "",
		"Devices": [],
		"DeviceCgroupRules": null,
		"DeviceRequests": null,
		"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/dcf581f0ff7264bcd5c1fa0cafada7a0b098d941ed5abb71b8241f3c0ad2b3e5-init/diff:/var/lib/docker/overlay2/e70febfdca4927ead6c679b1180e2db76244ae323a5198707b10cc27f5a34800/diff:/var/lib/docker/overlay2/913b9aa478c2146963a5c22548237b54b0ac3a1a94a3e80b90240f8055b6e4f3/diff:/var/lib/docker/overlay2/c46af204edec990b3973aa40ee006a74e9ed202b39ca552608b56888d16acf5d/diff:/var/lib/docker/overlay2/2cb76da736ed14ac3852b880357794f3574401507646526a00f1e83616e90992/diff:/var/lib/docker/overlay2/a9a446ffadb8ca38650dbaae9eb47d39b6d61b41b51455c26f47ac385c48c49b/diff",
			"MergedDir": "/var/lib/docker/overlay2/dcf581f0ff7264bcd5c1fa0cafada7a0b098d941ed5abb71b8241f3c0ad2b3e5/merged",
			"UpperDir": "/var/lib/docker/overlay2/dcf581f0ff7264bcd5c1fa0cafada7a0b098d941ed5abb71b8241f3c0ad2b3e5/diff",
			"WorkDir": "/var/lib/docker/overlay2/dcf581f0ff7264bcd5c1fa0cafada7a0b098d941ed5abb71b8241f3c0ad2b3e5/work"
		},
		"Name": "overlay2"
	},
	"Mounts": [],
	"Config": {
		"Hostname": "272bb2592a51",
		"Domainname": "",
		"User": "",
		"AttachStdin": false,
		"AttachStdout": false,
		"AttachStderr": false,
		"ExposedPorts": {
			"5432/tcp": {}
		},
		"Tty": false,
		"OpenStdin": false,
		"StdinOnce": false,
		"Env": [
			"GS_PASSWORD=Enmo@123",
			"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
			"LANG=en_US.utf8",
			"GAUSSLOG=/home/omm/pg_log",
			"PGDATA=/var/lib/opengauss/data"
		],
		"Cmd": [
			"gaussdb"
		],
		"Image": "enmotech/opengauss:5.0.0",
		"Volumes": null,
		"WorkingDir": "",
		"Entrypoint": [
			"entrypoint.sh"
		],
		"OnBuild": null,
		"Labels": {
			"org.opencontainers.image.ref.name": "ubuntu",
			"org.opencontainers.image.version": "20.04"
		}
	},
	"NetworkSettings": {
		"Bridge": "",
		"SandboxID": "c4343565f09d30af901945a5b89d2b3891240a614df7a56b8d3d4f56956848b4",
		"HairpinMode": false,
		"LinkLocalIPv6Address": "",
		"LinkLocalIPv6PrefixLen": 0,
		"Ports": {},
		"SandboxKey": "/var/run/docker/netns/c4343565f09d",
		"SecondaryIPAddresses": null,
		"SecondaryIPv6Addresses": null,
		"EndpointID": "",
		"Gateway": "",
		"GlobalIPv6Address": "",
		"GlobalIPv6PrefixLen": 0,
		"IPAddress": "",
		"IPPrefixLen": 0,
		"IPv6Gateway": "",
		"MacAddress": "",
		"Networks": {
			"bridge": {
				"IPAMConfig": null,
				"Links": null,
				"Aliases": null,
				"NetworkID": "a490a25883e3fa7c580f79712b90783a6c42b27312ea50fc5cbd59a8c032d620",
				"EndpointID": "",
				"Gateway": "",
				"IPAddress": "",
				"IPPrefixLen": 0,
				"IPv6Gateway": "",
				"GlobalIPv6Address": "",
				"GlobalIPv6PrefixLen": 0,
				"MacAddress": "",
				"DriverOpts": null
			}
		}
	}
}



我来答
添加附件
收藏
分享
问题补充
7条回答
默认
最新
DarkAthena
2024-05-10

可以使用lite版本镜像enmotech/opengauss_lite,参考https://github.com/enmotech/enmotech-docker-opengauss

暂无图片 评论
暂无图片 有用 1
打赏 0
暂无图片
Wesley
2024-05-10
升级问题到: 紧急故障
暂无图片 评论
暂无图片 有用 0
打赏 0
DarkAthena
2024-05-10

docker desktop 的版本也请提供一下。
我这边发现一个情况,旧版本的docker desktop是可以启动数据库的,但是最新版的docker desktop无法启动数据库

暂无图片 评论
暂无图片 有用 0
打赏 0
Wesley
题主
2024-05-10
docker desktop使用的版本是4.23.0,参加下图
Wesley
2024-05-10

docker desktop使用的版本是4.23.0,参加下图:

暂无图片 评论
暂无图片 有用 0
打赏 0
Wesley
2024-05-11

使用lite版镜像还是报错的:

docker pull enmotech/opengauss-lite:5.0.1

https://hub.docker.com/layers/enmotech/opengauss-lite/5.0.1/images/sha256-13fb89683ae1f45597a79c6037add46c2e2c71cda6d449cac59cd8d343206659?context=explore


docker-compose内容如下:

version: '3'
services:
  opengauss:
    image: enmotech/opengauss-lite:5.0.1
    container_name: opengauss-lite-enmotech-5.0.1
    privileged: true
    ports:
      - 5432:5432
    volumes:
      - ./data:/var/lib/opengauss/data
    environment:
      - GS_NODENAME=gaussdb
      - GS_USERNAME=gaussdb
      - GS_PASSWORD=Enmo@123
    networks:
      - opengauss_net

networks:
  opengauss_net:
    driver: bridge


启动后报错:

2024-05-11 14:11:58 
2024-05-11 14:11:58                         Message: The supplied GS_PASSWORD is meet requirements.
2024-05-11 14:11:58 
2024-05-11 14:11:58 The files belonging to this database system will be owned by user "omm".
2024-05-11 14:11:58 This user must also own the server process.
2024-05-11 14:11:58 
2024-05-11 14:11:58 The database cluster will be initialized with locale "C".
2024-05-11 14:11:58 The default text search configuration will be set to "english".
2024-05-11 14:11:58 
2024-05-11 14:11:58 fixing permissions on existing directory /var/lib/opengauss/data ... ok
2024-05-11 14:11:58 creating subdirectories ... in ordinary occasionok
2024-05-11 14:11:58 creating configuration files ... ok
2024-05-11 14:11:58 selecting default max_connections ... 100
2024-05-11 14:12:07 selecting default shared_buffers ... 1024MB
2024-05-11 14:12:07 Begin init undo subsystem meta.
2024-05-11 14:12:07 [INIT UNDO] Init undo subsystem meta successfully.
2024-05-11 14:12:07 creating template1 database in /var/lib/opengauss/data/base/1 ... The core dump path is an invalid directory
2024-05-11 14:12:07 2024-05-11 06:12:07.656 [unknown] [unknown] localhost 139865813451136 0[0:0#0]  [BACKEND] WARNING:  macAddr is 578/2887122946, sysidentifier is 37923862/153191, randomNum is 3613546087
2024-05-11 14:12:12 ok
2024-05-11 14:12:12 initializing pg_authid ... ok
2024-05-11 14:12:13 setting password ... ok
2024-05-11 14:12:14 initializing dependencies ... ok
2024-05-11 14:12:14 loading PL/pgSQL server-side language ... ok
2024-05-11 14:12:16 creating system views ... ok
2024-05-11 14:12:16 creating performance views ... ok
2024-05-11 14:12:17 loading system objects' descriptions ... ok
2024-05-11 14:12:18 creating collations ... ok
2024-05-11 14:12:19 creating conversions ... ok
2024-05-11 14:12:19 creating dictionaries ... ok
2024-05-11 14:12:20 setting privileges on built-in objects ... ok
2024-05-11 14:12:21 initialize global configure for bucketmap length ... ok
2024-05-11 14:12:22 creating information schema ... ok
2024-05-11 14:12:23 loading foreign-data wrapper for distfs access ... ok
2024-05-11 14:12:23 loading foreign-data wrapper for log access ... ok
2024-05-11 14:12:23 loading hstore extension ... ok
2024-05-11 14:12:24 loading security plugin ... ok
2024-05-11 14:12:25 update system tables ... ok
2024-05-11 14:12:28 creating snapshots catalog ... ok
2024-05-11 14:12:35 vacuuming database template1 ... ok
2024-05-11 14:12:37 copying template1 to template0 ... ok
2024-05-11 14:12:39 copying template1 to postgres ... ok
2024-05-11 14:12:41 freezing database template0 ... ok
2024-05-11 14:12:42 freezing database template1 ... ok
2024-05-11 14:12:43 freezing database postgres ... ok
2024-05-11 14:12:48 syncing data to disk ... ok
2024-05-11 14:12:48 
2024-05-11 14:12:48 WARNING: enabling "trust" authentication for local connections
2024-05-11 14:12:48 You can change this by editing pg_hba.conf or using the option -A, or
2024-05-11 14:12:48 --auth-local and --auth-host, the next time you run gs_initdb.
2024-05-11 14:12:48 
2024-05-11 14:12:48 Success. You can now start the database server of single node using:
2024-05-11 14:12:48 
2024-05-11 14:12:48     gaussdb -D /var/lib/opengauss/data --single_node
2024-05-11 14:12:48 or
2024-05-11 14:12:48     gs_ctl start -D /var/lib/opengauss/data -Z single_node -l logfile
2024-05-11 14:12:48 
2024-05-11 14:12:48 [2024-05-11 06:12:48.811][176][][gs_ctl]: gs_ctl started,datadir is /var/lib/opengauss/data 
2024-05-11 14:12:48 [2024-05-11 06:12:48.831][176][][gs_ctl]: waiting for server to start...
2024-05-11 14:12:48 .0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2024-05-11 14:12:48 
2024-05-11 14:12:48 0 LOG:  [Alarm Module]Host Name: aabbb8de2b99 
2024-05-11 14:12:48 
2024-05-11 14:12:48 0 LOG:  [Alarm Module]Host IP: aabbb8de2b99. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>
2024-05-11 14:12:48 
2024-05-11 14:12:48 0 LOG:  [Alarm Module]Get ENV GS_CLUSTER_NAME failed!
2024-05-11 14:12:48 
2024-05-11 14:12:48 0 LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2024-05-11 14:12:48 
2024-05-11 14:12:48 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-11 14:12:48 0 WARNING:  failed to parse feature control file: gaussdb.version.
2024-05-11 14:12:48 0 WARNING:  Failed to load the product control file, so gaussdb cannot distinguish product version.
2024-05-11 14:12:48 The core dump path is an invalid directory
2024-05-11 14:12:48 2024-05-11 06:12:48.856 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  when starting as multi_standby mode, we couldn't support data replicaton.
2024-05-11 14:12:48 gaussdb.state does not exist, and skipt setting since it is optional.2024-05-11 06:12:48.868 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2024-05-11 14:12:48 
2024-05-11 14:12:48 2024-05-11 06:12:48.868 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  [Alarm Module]Host Name: aabbb8de2b99 
2024-05-11 14:12:48 
2024-05-11 14:12:48 2024-05-11 06:12:48.868 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  [Alarm Module]Host IP: aabbb8de2b99. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>
2024-05-11 14:12:48 
2024-05-11 14:12:48 2024-05-11 06:12:48.868 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  [Alarm Module]Get ENV GS_CLUSTER_NAME failed!
2024-05-11 14:12:48 
2024-05-11 14:12:48 2024-05-11 06:12:48.868 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2024-05-11 14:12:48 
2024-05-11 14:12:48 2024-05-11 06:12:48.876 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  loaded library "security_plugin"
2024-05-11 14:12:48 2024-05-11 06:12:48.878 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2024-05-11 14:12:48 2024-05-11 06:12:48.878 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2024-05-11 14:12:48 2024-05-11 06:12:48.896 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2024-05-11 14:12:48 2024-05-11 06:12:48.896 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  reserved memory for backend threads is: 220 MB
2024-05-11 14:12:48 2024-05-11 06:12:48.896 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  reserved memory for WAL buffers is: 128 MB
2024-05-11 14:12:48 2024-05-11 06:12:48.896 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  Set max backend reserve memory is: 348 MB, max dynamic memory is: 8150 MB
2024-05-11 14:12:48 2024-05-11 06:12:48.896 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  shared memory 3277 Mbytes, memory context 8498 Mbytes, max process memory 12288 Mbytes
2024-05-11 14:12:48 2024-05-11 06:12:48.944 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [CACHE] LOG:  set data cache  size(402653184)
2024-05-11 14:12:48 2024-05-11 06:12:48.987 [unknown] [unknown] localhost 140433535594880 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-11 14:12:49 2024-05-11 06:12:49.023 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  gaussdb: fsync file "/var/lib/opengauss/data/gaussdb.state.temp" success
2024-05-11 14:12:49 2024-05-11 06:12:49.028 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  create gaussdb state file success: db state(STARTING_STATE), server mode(Normal), connection index(1)
2024-05-11 14:12:49 2024-05-11 06:12:49.197 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  max_safe_fds = 981, usable_fds = 1000, already_open = 9
2024-05-11 14:12:49 The core dump path is an invalid directory
2024-05-11 14:12:49 2024-05-11 06:12:49.220 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  user configure file is not found, it will be created.
2024-05-11 14:12:49 2024-05-11 06:12:49.344 [unknown] [unknown] localhost 140433535594880 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-11 14:12:49 2024-05-11 06:12:49.344 [unknown] [unknown] localhost 140433535594880 0[0:0#0]  0 [BACKEND] LOG:  Failed to parse cgroup config file.
2024-05-11 14:12:49 
2024-05-11 14:12:49 [2024-05-11 06:12:49.839][176][][gs_ctl]:  done
2024-05-11 14:12:49 [2024-05-11 06:12:49.839][176][][gs_ctl]: server started (/var/lib/opengauss/data)
2024-05-11 14:12:49 GS_DB = omm
2024-05-11 14:12:49 Execute SQL: gsql -v ON_ERROR_STOP=1 --username omm --password Enmo@123 --dbname postgres --set db=omm --set passwd=Enmo@123
2024-05-11 14:12:53 CREATE DATABASE
2024-05-11 14:12:54 CREATE ROLE
2024-05-11 14:12:54 ALTER ROLE
2024-05-11 14:12:54 
2024-05-11 14:12:54 Execute SQL: gsql -v ON_ERROR_STOP=1 --username omm --password Enmo@123 --dbname postgres --set db=omm --set passwd=Enmo@123 --set user=gaussdb
2024-05-11 14:12:54 NOTICE:  The encrypted password contains MD5 ciphertext, which is not secure.
2024-05-11 14:12:54 ERROR:  role "gaussdb" already exists
暂无图片 评论
暂无图片 有用 0
打赏 0
DarkAthena
2024-05-11
直接用docker run是可以一次性启动成功的,如果用docker compose ,会错误地重复执行create user ,但实际上此时数据库已经初始化并启动成功过了,所以首次启动导致退出后,不要清除数据目录,再启动一次容器即可正常启动数据库
Wesley
题主
2024-05-11
是这个问题,感谢@DarkAthena,问题已解决
Wesley
2024-05-11

感谢@DarkAthena 问题已解决!

另外用DBeaver的时候,驱动需要用postgresql.jar,opengauss的jar会报错!使用pg的驱动就ok了

暂无图片 评论
暂无图片 有用 0
打赏 0
手机用户9840
2024-10-16
请问如何解决,我下面的也不行 ``` docker run -d \ --name opengauss \ --privileged \ -e GS_PASSWORD="实际密码" \ -p 5432:5432 \ -v ./data:/var/lib/opengauss/data \ enmotech/opengauss-lite:latest \ -u root ```
手机用户9840
2024-10-20

命令写错了,-u 要放在前面,放在后面会在容器内执行docker run -d --name opengauss --privileged -e GS_PASSWORD="实际密码" -p 5432:5432 -v ./data:/var/lib/opengauss/data -u root enmotech/opengauss-lite:latest这条命令测试后没问题


暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏