couchdb - Hyperledger Fabric native 对等二进制文件无法与 couchdb 通信

标签 couchdb hyperledger-fabric

我遇到一个问题。我正在尝试在 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/

相关文章:

couchdb - 在应用过滤器时提高 CouchDB 的 _changes 提要的速度

couchdb - CouchDB如何知道文档的修订历史?

hyperledger-fabric - super 账本的 fabcar.go 链码不接受更改和修改,始终运行以前的链码

javascript - putState() 和 putPrivateData() 可以在同一个链代码中使用吗?

docker - 无法连接到 unix :///var/run/docker. socks 上的 Docker 守护进程。 docker 守护进程是否正在运行?在 Dockerfile 中

docker - Hyperledger:尝试登录并获取用户上下文时出错。错误:尝试注册用户或加载 channel 配置时出错。错误:注册失败

replication - CouchDB 冲突解决

couchdb - 复制到 iriscouch 失败

database-design - 离线模式下的 NoSQL 数据库和向前兼容性

node.js - 是否可以在 Hyperledger Fabrics 的生产阶段使用第三方 CA