我遇到一个问题。我正在尝试在 AWS Cloud 上运行对等 native 二进制文件。我的 couchdb 已经在同一个 AWS 实例上工作。我已经导出了所有必要的变量,例如
CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=0.0.0.0:5984
CORE_LEDGER_STATE_STATEDATABASE=CouchDB
还有用户名和密码。
但是我在运行命令peer node start
时遇到错误。
2018-12-07 08:26:08.622 UTC [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 005 Error during CouchDB CreateDatabaseIfNotExist() for system dbName: _users error: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int
2018-12-07 08:26:08.622 UTC [couchdb] VerifyCouchConfig -> ERRO 006 Unable to connect to CouchDB, error: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int Check the admin username and password.
panic: Error in instantiating ledger provider: Unable to connect to CouchDB, error: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int Check the admin username and password.
我尝试使用具有相同凭据的 fauxton 从浏览器访问 couchdb。它工作正常。
即使我在自己的系统上使用这个二进制文件,它也能正常工作。但在 AWS 云实例上出现错误。
coucdb版本2.0
对等二进制版本 1.2
编辑:现在每台 ubuntu 机器上都会发生这种情况,无论是云还是机器。
请提出任何建议。
最佳答案
我在使用最新版本的 couchdb 即 3.2 时遇到了这个问题
请尝试 couchdb v2.1.1。它会工作得很好。
关于couchdb - Hyperledger Fabric native 对等二进制文件无法与 couchdb 通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53666330/