重新启动后,Fabric-ca-server 无法初始化 postgres 数据库

问题描述

有人可以帮我解决这个问题吗?我在生产网络上遇到了这个错误

我必须重新启动fabric-ca-server,当我启动它时,我从fabric ca服务器收到以下错误,这里无法初始化Postgres数据库

2020/12/22 12:35:07 [DEBUG] Initializing DB
2020/12/22 12:35:07 [DEBUG] Initializing 'postgres' database at 'host=postgres.example.com port=5432 user=** password=** dbname=fabriccaserver sslmode=verify-full'
2020/12/22 12:35:07 [DEBUG] Using postgres database,connecting to database...
2020/12/22 12:35:07 [DEBUG] Database Name: fabriccaserver
2020/12/22 12:35:07 [DEBUG] Connecting to Postgresql server,using connection string: host=postgres.example.com port=5432 user=** password=** dbname=fabriccaserver sslmode=verify-full sslrootcert=/tmp/postgresCerts/root.crt sslcert=/tmp/postgresCerts/server.crt sslkey=/tmp/postgresCerts/server.key
2020/12/22 12:35:07 [WARNING] Failed to connect to database 'fabriccaserver'
2020/12/22 12:35:07 [DEBUG] Connecting to Postgresql server,using connection string: host=postgres.example.com port=5432 user=** password=** dbname=postgres sslmode=verify-full sslrootcert=/tmp/postgresCerts/root.crt sslcert=/tmp/postgresCerts/server.crt sslkey=/tmp/postgresCerts/server.key
2020/12/22 12:35:07 [WARNING] Failed to connect to database 'postgres'
2020/12/22 12:35:07 [DEBUG] Connecting to Postgresql server,using connection string: host=postgres.example.com port=5432 user=** password=** dbname=template1 sslmode=verify-full sslrootcert=/tmp/postgresCerts/root.crt sslcert=/tmp/postgresCerts/server.crt sslkey=/tmp/postgresCerts/server.key
2020/12/22 12:35:07 [WARNING] Failed to connect to database 'template1'
2020/12/22 12:35:07 [ERROR] Error occurred initializing database: Failed to connect to Postgres database. Postgres requires connecting to a specific database,the following databases were tried: [fabriccaserver postgres template1]. Please create one of these database before continuing

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)