douhan4812 2017-03-14 20:19
浏览 63
已采纳

BTrDB连接失败

I have a copy of the BTrDB container running on my VM and a Go program that's trying to test it by taking data from a CSV and inserting it. Unfortunately, I get errors when trying to connect

ctx, _ := context.WithDeadline(context.TODO(), time.Now().Add(time.Duration(30)*time.Second))
_, err := btrdb.Connect(ctx, "192.168.99.100:4410")
if err != nil {
    log.Fatal("Unexpected connection error: %v", err)
}

yields

2017/03/14 14:09:17 transport: http2Client.notifyError got notified that the client transport was broken read tcp 192.168.99.1:54212->192.168.99.100:4410: read: connection reset by peer.
2017/03/14 14:09:17 Unexpected connection error: %vCould not connect to cluster via provided endpoints
attempt to obtain MASH from 192.168.99.100:4410 yielded rpc error: code = Internal desc = transport is closing

I have the container installed per the instructions on the GitHub page, with a few modifications

docker network create mynet
docker run -d --net mynet --name btrmongo mongo:3.2
docker run -it --net mynet -v /Users/keithnordstrom/btrdata:/srv -e BTRDB_MONGO_SERVER=btrmongo.mynet btrdb/release:3.4 makedb
docker run -d --name btrdb --net mynet -v /Users/keithnordstrom/btrdata:/srv -p 4410:4410 -e BTRDB_MONGO_SERVER=btrmongo.mynet btrdb/release:3.4

Here's a concurrent sample of the log from the BTrDB side

2017/03/14 20:08:28 main.go:114 ▶ Still alive
2017/03/14 20:08:28 blockcache.go:20 ▶ Cachestats: 0 misses, 0 hits, NaN %
2017/03/14 20:08:28 main.go:47 ▶ Num goroutines: 16
2017/03/14 20:08:29 main.go:47 ▶ Num goroutines: 16
2017/03/14 20:08:30 main.go:47 ▶ Num goroutines: 16
2017/03/14 20:08:31 main.go:47 ▶ Num goroutines: 16
2017/03/14 20:08:32 cpinterface.go:59 ▶ cpnp connection
2017/03/14 20:08:32 cpinterface.go:64 ▶ ERR (%v) :: %v 192.168.99.1:54212 capn: too much data in stream
2017/03/14 20:08:32 cpinterface.go:59 ▶ cpnp connection
2017/03/14 20:08:32 cpinterface.go:64 ▶ ERR (%v) :: %v 192.168.99.1:54213 EOF
2017/03/14 20:08:32 main.go:47 ▶ Num goroutines: 16
2017/03/14 20:08:33 main.go:114 ▶ Still alive

What am I doing wrong?

  • 写回答

1条回答 默认 最新

  • dongmi1663 2017-03-14 21:13
    关注

    It seems like you are using the v3 server container with the v4 binding libraries.

    It is definitely recommended to use v4, so you can try setting up the v4 stack by following the guide at smartgrid.store

    That stack assumes you are using kubernetes and ceph, but you can also set up a development deployment using minikube and no ceph, although the documentation is a little thinner there.

    To get faster responses, you can also email btrdb@googlegroups.com

    EDIT: it does seem like the out of date readme led you astray. I'll update that now. Thanks

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)