微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Docbase 无法连接到文档内容服务器安装中的数据库错误

如何解决Docbase 无法连接到文档内容服务器安装中的数据库错误

当我在 AWS EKS 上安装 Documentum 内容服务器时,我收到此错误Postgress DB 安装在 EC2 虚拟机上。

14:20:47,013  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerModifyDocbaseDirectory
- The installer will create the folder structure for repository postgres. 14:20:47,021  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerPasswordFileGenerator
- The installer is generating database password file... 14:20:47,111  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerIniGenerator
- The installer will create server.in file for repository postgres. 14:20:47,152  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerCreateTableSpaceScriptGenerator
- The installer will create scripts to for Postgresql Database. 14:20:47,152  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerCreateTableSpaceScriptGenerator
- The URL is jar:file:/tmp/install.dir.208/InstallerData/installer.zip!/dm_CreateTableSpace.sql 14:20:47,209  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServercopyDeleteTableSpaceScript
- The installer will move file /opt/dctm/dba/config/postgres/dm_DeleteTableSpace.sql to a new location /opt/dctm/server_uninstall/delete_db/postgres/dm_DeleteTableSpace.sql. 14:20:47,214  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerCreateTableSpace
- The installer is executing the : Creating the database script. 14:20:47,355  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerWebcacheIniGenerator
- The installer will create webcache.ini file for the repository. 14:20:47,394  INFO [main] com.documentum.install.server.installanywhere.actions.DiWAServerTestServerIni
- The installer is testing the database connection information 14:20:47,395  INFO [main] com.documentum.install.server.common.services.db.diserverPostgresqlServer
- The installer is validating the database connection information in the server.ini file. 14:20:47,563 ERROR [main] com.documentum.install.server.installanywhere.actions.DiWAServerTestServerIni
- Docbase Could not connect to the database. Please check output file for more information: /tmp/291406.tmp/DBTestResult18051870723865753931.tmp com.documentum.install.shared.common.error.DiException: Docbase Could not connect to the database. Please check output file for more information: /tmp/291406.tmp/DBTestResult18051870723865753931.tmp 

这是dm_CreateTableSpace.out

的日志
psql:/opt/dctm/dba/config/postgres/dm_CreateTableSpace.sql:1: ERROR:  role "postgres" already exists
psql:/opt/dctm/dba/config/postgres/dm_CreateTableSpace.sql:3: ERROR:  zero-length delimited identifier at or near """"
LINE 1: GRANT "postgres" TO "";
                            ^
psql:/opt/dctm/dba/config/postgres/dm_CreateTableSpace.sql:6: ERROR:  database "dm_postgres_docbase" already exists
ALTER DATABASE
GRANT
psql:/opt/dctm/dba/config/postgres/dm_CreateTableSpace.sql:9: ERROR:  zero-length delimited identifier at or near """"
LINE 1: REVOKE "postgres" FROM "";
                               ^
You are Now connected to database "dm_postgres_docbase" as user "postgres".
CREATE SCHEMA
SET
GRANT
GRANT
GRANT

我不明白如何让它工作。 甚至我也面临 Postgres RDS Instant 的问题,即

GRANT "postgres" TO "" 

正在 Postgresql ec2 实例上生成日志

2021-07-20 11:53:46.434 UTC [7854] dctm@dm_dctm_docbase 致命: 密码认证失败
用户“dctm”编辑 2021-07-20 11:53:46.434 UTC [7854] dctm@dm_dctm_docbase 详细信息:角色“dctm”不存在。 连接匹配 pg_hba.conf 第 99 行:“host all all all 172
.16.0.0/16 md5" 2021-07-20 11:53:46.436 UTC [7855] dctm@dm_dctm_docbase 致命:密码认证失败
用户“dctm”编辑 2021-07-20 11:53:46.436 UTC [7855] dctm@dm_dctm_docbase 详细信息:角色“dctm”不存在。 连接匹配 pg_hba.conf 第 99 行:“host all all all 172
.16.0.0/16 md5" 2021-07-20 11:53:49.056 UTC [7857] postgres@postgres 错误:零长度分隔标识符
r 位于或靠近字符 17 2021-07-20 11:53:49.056 UTC [7857] postgres@postgres 声明:将“dctm”授予“”; 2021-07-20 11:53:49.145 UTC [7857] postgres@postgres 错误:零长度 分隔标识符
r 位于或靠近字符 20 20 2021-07-20 11:53:49.145 UTC [7857] postgres@postgres 声明:从“”中撤销“dctm”;密码 用户“dctm”的身份验证失败 2021-07-20 11:53:46.434 UTC [7854] dctm@dm_dctm_docbase 详细信息:角色“dctm”确实如此 不存在。

我正在使用 Postgresql 超级用户登录并且在 cli 上工作正常。 更新了 heml 图表中的值,即文档的 values.yaml :内容服务器。

解决方法

每次尝试重新运行安装时,您都应该完全删除所有内容。看起来 Postgres 已经创建了表空间,这就是测试失败的原因

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。