暂无图片
opengauss简易版安装报错
我来答
分享
Asky
2022-07-19
opengauss简易版安装报错

[omm@host134 simpleInstall]$ sh install.sh -w "Gauss@123456" &&source ~/.bashrc
[step 1]: check parameter
[step 2]: check install env and os setting
[step 3]: change_gausshome_owner
[step 4]: set environment variables

/home/omm/.bashrc: line 16: ulimit: open files: cannot modify limit: Operation not permitted
[step 6]: init datanode
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 database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

could not create directory /var/log/omm: Permission denied
creating directory /opt/opengauss/software/data/single_node ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
Begin init undo subsystem meta.
[INIT UNDO] Init undo subsystem meta successfully.
creating template1 database in /opt/opengauss/software/data/single_node/base/1 ... The core dump path is an invalid directory
2022-07-19 13:58:00.740 [unknown] [unknown] localhost 140169086360640 0[0:0#0] [BACKEND] WARNING: macAddr is 21076/13163551, sysidentifier is 1381236936/3693047771, randomNum is 3961352155
ok
initializing pg_authid ... ok
setting password ... ok
initializing dependencies ... ok
loading PL/pgSQL server-side language ... ok
creating system views ... ok
creating performance views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
initialize global configure for bucketmap length ... ok
creating information schema ... ok
loading foreign-data wrapper for distfs access ... ok
loading foreign-data wrapper for hdfs access ... ok
loading foreign-data wrapper for log access ... ok
loading hstore extension ... ok
loading foreign-data wrapper for MOT access ... ok
loading security plugin ... ok
update system tables ... ok
creating snapshots catalog ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
freezing database template0 ... ok
freezing database template1 ... ok
freezing database postgres ... 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 /opt/opengauss/software/data/single_node --single_node
or
gs_ctl start -D /opt/opengauss/software/data/single_node -Z single_node -l logfile

[step 7]: start datanode
could not create directory /var/log/omm: Permission denied
[2022-07-19 13:58:43.914][4252][][gs_ctl]: gs_ctl started,datadir is /opt/opengauss/software/data/single_node
[2022-07-19 13:58:44.034][4252][][gs_ctl]: waiting for server to start...
.0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG: [Alarm Module]Host Name: host134

0 LOG: [Alarm Module]Host IP: 192.168.1.134

0 LOG: [Alarm Module]Cluster Name: dbCluster

0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

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.
The core dump path is an invalid directory
2022-07-19 13:58:44.297 [unknown] [unknown] localhost 140587269000256 0[0:0#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.2022-07-19 13:58:44.304 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

2022-07-19 13:58:44.305 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host Name: host134

2022-07-19 13:58:44.307 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host IP: 192.168.1.134

2022-07-19 13:58:44.307 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Cluster Name: dbCluster

2022-07-19 13:58:44.308 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

2022-07-19 13:58:44.405 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] LOG: loaded library "security_plugin"
2022-07-19 13:58:44.406 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2022-07-19 13:58:44.407 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2022-07-19 13:58:44.407 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] FATAL: could not create lock file "/opt/huawei/tmp/.s.PGSQL.5432.lock": No such file or directory
[2022-07-19 13:58:45.035][4252][][gs_ctl]: waitpid 4255 failed, exitstatus is 256, ret is 2

[2022-07-19 13:58:45.035][4252][][gs_ctl]: stopped waiting
[2022-07-19 13:58:45.035][4252][][gs_ctl]: could not start server
Examine the log output.
import sql file
Would you like to create a demo database (yes/no)? no
Input no, operation skip.

我来答
添加附件
收藏
分享
问题补充
12条回答
默认
最新
Asky

2022-07-19 13:58:44.407 [unknown] [unknown] localhost 140587269000256 0[0:0#0] 0 [BACKEND] FATAL: could not create lock file "/opt/huawei/tmp/.s.PGSQL.5432.lock": No such file or directory

暂无图片 评论
暂无图片 有用 0
打赏 0
刘贵宾
暂无图片 评论
暂无图片 有用 0
打赏 0
Asky

你这个文档是采用OM方式部署的,我这里采用的简易版安装的,按照官方文档的步骤安装。


暂无图片 评论
暂无图片 有用 0
打赏 0
Asky
暂无图片 评论
暂无图片 有用 0
打赏 0
严少安
暂无图片

权限问题,

普通用户必须有数据库包解压路径、安装路径的读、写和执行操作权限,并且安装路径必须为空。

暂无图片 评论
暂无图片 有用 0
打赏 0
刘贵宾
1 groupadd dbgrp
2 useradd -g dbgrp -d /home/omm  -m -s /bin/bash omm
3 echo "omm" | passwd  -‐stdin omm
4 mkdir -p /opt/software/openGauss
5 chmod 755 -R /opt/software
6 chown -R omm:dbgrp  /opt/software/openGauss 
授权命令你都执行了么,对你本地创建的目录和用户,授权和改变属组
复制
暂无图片 评论
暂无图片 有用 0
打赏 0
Asky

[omm@host134 opengauss]$ id omm
uid=1007(omm) gid=1010(dbgrp) groups=1010(dbgrp)


[omm@host134 opengauss]$ ls -al
total 4
drwxrwxr-x 5 omm dbgrp 48 Jul 19 10:39 .
drwxr-xr-x. 21 root root 4096 Jul 19 10:27 ..
drwx------ 2 omm dbgrp 6 Jul 19 13:36 data
drwx------ 2 omm dbgrp 6 Jul 19 13:36 pg_log
drwx------ 11 omm dbgrp 142 Jul 19 13:42 software
[omm@host134 opengauss]$ pwd
/opt/opengauss

你说的命令都执行了的,我奇怪的是为什么会报这两个目录的问题,安装都没有涉及到这两个目录的。

/var/log/omm

/opt/huawei/tmp


暂无图片 评论
暂无图片 有用 0
打赏 0
Asky

说明下 我这台机器之前使用OM的方式安装过单机的,后面我就卸载了 现在采用简易版安装

这两个目录好像是跟OM安装的有关的,奇怪的是为什么简易版的会跟这两个目录有关系。

暂无图片 评论
暂无图片 有用 0
打赏 0
刘贵宾

.bashrc截图看一下

暂无图片 评论
暂无图片 有用 0
打赏 0
Asky

问题解决了,我把操作系统omm用户删除重新创建就可以了

暂无图片 评论
暂无图片 有用 1
打赏 0
CloudMan
2023-10-27
你好能说下解决方法吗 我也是同样的错误
刘贵宾

OK

暂无图片 评论
暂无图片 有用 0
打赏 0

我安装轻量版,按照官网教程,也是遇到类似问题,用户权限的检查, 还修改了install.sh脚本

expected instance path: [/opt/openGauss/data/postgresql.conf]
realpath(/opt/openGauss/data/postgresql.conf.lock) failed : 没有那个文件或目录!
gs_guc set: local_bind_address='192.9.200.22': [/opt/openGauss/data/postgresql.conf]
gs_guc set: thread_pool_attr='16,1,(nobind)': [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_asp=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_ustore=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: asp_sample_num=10: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_incremental_checkpoint=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_double_write=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: shared_buffers=64MB: [/opt/openGauss/data/postgresql.conf]
gs_guc set: cstore_buffers=16MB: [/opt/openGauss/data/postgresql.conf]
gs_guc set: num_internal_lock_partitions='CLOG_PART=1,CSNLOG_PART=1,LOG2_LOCKTABLE_PART=4,TWOPHASE_PART=1,FASTPATH_PART=20': [/opt/openGauss/data/postgresql.conf]
gs_guc set: max_locks_per_transaction=64: [/opt/openGauss/data/postgresql.conf]
gs_guc set: max_prepared_transactions=0: [/opt/openGauss/data/postgresql.conf]
gs_guc set: audit_file_remain_threshold=1024: [/opt/openGauss/data/postgresql.conf]
gs_guc set: wal_buffers=16MB: [/opt/openGauss/data/postgresql.conf]
gs_guc set: segment_buffers=16: [/opt/openGauss/data/postgresql.conf]
gs_guc set: max_connections=200: [/opt/openGauss/data/postgresql.conf]
gs_guc set: track_activity_query_size=200: [/opt/openGauss/data/postgresql.conf]
gs_guc set: data_replicate_buffer_size=4096: [/opt/openGauss/data/postgresql.conf]
gs_guc set: max_inner_tool_connections=10: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_stmt_track=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: use_workload_manager=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_instr_rt_percentile=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_wdr_snapshot=off: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_global_syscache=on: [/opt/openGauss/data/postgresql.conf]
gs_guc set: enable_thread_pool=on: [/opt/openGauss/data/postgresql.conf]
gs_guc set: global_syscache_threshold=64MB: [/opt/openGauss/data/postgresql.conf]
gs_guc set: local_syscache_threshold=16MB: [/opt/openGauss/data/postgresql.conf]
gs_guc set: wal_flush_timeout=800: [/opt/openGauss/data/postgresql.conf]
gs_guc set: wal_flush_delay=100: [/opt/openGauss/data/postgresql.conf]

Total instances: 1. Failed instances: 0.
Success to perform gs_guc!

guc config success.
info:cmd: gs_ctl start -D /opt/openGauss/data -Z single_node | tee -a /home/omm/openGauss-lite-5.0/install.log
----------864-----------
0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG: [Alarm Module]Host Name: localhost.localdomain

0 LOG: [Alarm Module]Host IP: localhost.localdomain. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

0 LOG: [Alarm Module]Cluster Name: dbCluster

0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

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.
The core dump path is an invalid directory
[2023-11-10 11:16:01.131][2555][][gs_ctl]: could not determine the data directory using command ""/opt/openGauss/install/bin/gaussdb" -D "/opt/openGauss/data" -C data_directory"
start datanode failed, maybe the database not be properly installed. please refer to install.log for more detailed information.

请问有人遇到吗?如何解决的?

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


请输入正文
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏