如何解决重新启动后,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 举报,一经查实,本站将立刻删除。