【发布时间】:2016-04-27 09:26:15
【问题描述】:
我正在尝试将数据库从本地 CouchDB 安装复制到 IBM Cloudant。我为此使用了 curl,就像这样 -
curl -X POST 'http://10.88.201.198:5984/_replicate'
-d '{
"source":"http://10.88.201.198:5984/temperature-db",
"target":"username:password@username.cloudant.com/temperature-db"
}'
-H "Content-Type: application/json"
-v
尝试超时,我收到以下消息 -
upload completely sent off: 255 out of 255 bytes
< HTTP/1.1 500 Internal Server Error
* Server CouchDB/1.6.1 (Erlang OTP/R16B03) is not blacklisted
< Server: CouchDB/1.6.1 (Erlang OTP/R16B03)
< Date: Wed, 27 Apr 2016 09:18:34 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 20
< Cache-Control: must-revalidate
< Proxy-Connection: Keep-Alive
< Connection: Keep-Alive
<
{"error":"timeout"}
我该如何解决这个问题?
【问题讨论】:
-
运行在 10.88.201.198 上的 couchdb 实例似乎无法连接到您的 Cloudant 实例。您是否能够通过 Web 或 telnet (telnet username.cloudant.com 443) 从位于 10.88.201.198 的机器连接到 Cloudant?
-
@MarkWatson 是的,我可以使用来自
10.88.201.198的 curl 访问 Cloudant。我刚刚在 Cloudant 上查询了一个搜索索引,得到了正确的结果。
标签: couchdb database-replication cloudant