GBase 8c
运维管理
问答

create 报错/ddl 执行报错不能跨cn节点执行(用户gbase)

发表于2026-06-16 18:37:2229次浏览9个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:multiple_nodes GBase8cV5 3.0.0B114 

【操作系统】:CentOS Linux release 7.9.2009 (Core

【CPU】:8c

【问题描述】*:

postgres=# create user admin_dba with password 'admin_dba';
WARNING:  pooler: failed to make connection to datanode[50008] for thread[140387919918848].Detail: thisLoop[1], needConnectNums[1], nodeIdx[0], fragNodeIdx[0]
CONTEXT:  SQL statement "EXECUTE DIRECT ON (cn1) 'SELECT pg_catalog.pg_try_advisory_xact_lock_shared(65535, 65535)'"
ERROR:  pooler: failed to create connections in parallel mode, Error Message: FATAL:  Forbid remote connection with initial user.
FATAL:  Forbid remote connection with initial user.

CONTEXT:  SQL statement "EXECUTE DIRECT ON (cn1) 'SELECT pg_catalog.pg_try_advisory_xact_lock_shared(65535, 65535)'"

评论

登录后才可以发表评论
GBase用户51510发表于 1个月前
建议检查一下配置是否正确,很多类似问题都是配置引起的。
GBase用户21143发表于 1个月前
该报错是初始 gbase 用户被禁止跨节点远程连接。可试下先本地登录,配置 pg_hba.conf 放行节点 IP 再操作
用户头像
大力发表于 1个月前
可以试试看调整参数,有时候参数设置不当会导致此类问题。
GBase用户21020发表于 1个月前
请检查用户权限及连接配置。
李雪洋发表于 1个月前
请检查用户权限及配置文件。
gbase0001发表于 1个月前
用sysadmin 权限管理员账号执行 DDL 操作试试
用户头像
大力发表于 1个月前
可以试试看调整参数
GBase用户21143发表于 1个月前
初始gbase用户禁止跨CN远程执行DDL,新建管理员用户本地或跨节点操作即可规避报错。
用户头像
A杰发表于 1个月前
互信配置是不是有问题?