coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.78k stars 172 forks source link

agromount: error while using flexvolume #145

Open philips opened 8 years ago

philips commented 8 years ago
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: couldn't dial: dial tcp 10.2.57.5:40000: getsockopt: connection refused
May 13 13:39:01 localhost agro[20293]: error WriteAll to peer c88654ce-190f-11e6-a8bf-faef23e236fc: agro: block cannot be retrieved
May 13 13:39:01 localhost agro[20293]: panic: runtime error: slice bounds out of range
May 13 13:39:01 localhost agro[20293]: goroutine 70 [running]:
May 13 13:39:01 localhost agro[20293]: panic(0xc04cc0, 0xc82000c030)
May 13 13:39:01 localhost agro[20293]:         /usr/lib/go/src/runtime/panic.go:481 +0x3e6
May 13 13:39:01 localhost agro[20293]: github.com/coreos/agro/distributor.(*Distributor).GetBlock(0xc82006bc20, 0x7f0c4fd90510, 0xc820280b10, 0x3, 0x4, 0x1, 0x0, 0x0, 0x0, 0x0, .
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/distributor/storage.go:37 +0xec3
May 13 13:39:01 localhost agro[20293]: github.com/coreos/agro/blockset.(*baseBlockset).GetBlock(0xc820283a40, 0x7f0c4fd90510, 0xc820280b10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/blockset/base.go:55 +0x41a
May 13 13:39:01 localhost agro[20293]: github.com/coreos/agro/blockset.(*crcBlockset).GetBlock(0xc82027b1d0, 0x7f0c4fd90510, 0xc820280b10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/blockset/crc.go:58 +0x25a
May 13 13:39:01 localhost agro[20293]: github.com/coreos/agro.(*File).openBlock(0xc82022c960, 0x0, 0x0, 0x0)
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/file.go:151 +0x725
May 13 13:39:01 localhost agro[20293]: github.com/coreos/agro.(*File).WriteAt(0xc82022c960, 0xc8203ca01c, 0x1000, 0xfffe4, 0x0, 0x0, 0x0, 0x0)
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/file.go:296 +0x1e38
May 13 13:39:01 localhost agro[20293]: github.com/coreos/agro/internal/nbd.(*NBD).handle(0xc820283a80, 0xc8202962a0)
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/internal/nbd/nbd.go:240 +0x95e
May 13 13:39:01 localhost agro[20293]: created by github.com/coreos/agro/internal/nbd.(*NBD).Serve
May 13 13:39:01 localhost agro[20293]:         /home/barak/src/agro/src/github.com/coreos/agro/internal/nbd/nbd.go:176 +0x2bd
philips commented 8 years ago

Starting/stopping it doesn't help:

May 13 13:42:16 localhost systemd[1]: Started agro-dev-nbd0.service.
May 13 13:42:16 localhost agro[22078]: panic: runtime error: slice bounds out of range
May 13 13:42:16 localhost agro[22078]: goroutine 1 [running]:
May 13 13:42:16 localhost agro[22078]: panic(0xc04cc0, 0xc82000c030)
May 13 13:42:16 localhost agro[22078]:         /usr/lib/go/src/runtime/panic.go:481 +0x3e6
May 13 13:42:16 localhost agro[22078]: github.com/coreos/agro/distributor.(*Distributor).GetBlock(0xc82006bc20, 0x7f6e682da178, 0xc82000c770, 0x10000000003, 0x4, 0x1, 0x0, 0x0, 0
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/coreos/agro/distributor/storage.go:37 +0xec3
May 13 13:42:16 localhost agro[22078]: github.com/coreos/agro.(*INodeStore).GetINode(0xc82022ea60, 0x7f6e682da178, 0xc82000c770, 0x3, 0x4, 0x30, 0x0, 0x0)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/coreos/agro/inode.go:90 +0x1a3
May 13 13:42:16 localhost agro[22078]: github.com/coreos/agro/block.(*BlockVolume).getOrCreateBlockINode(0xc82022f3a0, 0x3, 0x4, 0x0, 0x0, 0x0)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/coreos/agro/block/volume.go:76 +0x164
May 13 13:42:16 localhost agro[22078]: github.com/coreos/agro/block.(*BlockVolume).OpenBlockFile(0xc82022f3a0, 0x7ffe7f8ebf75, 0x0, 0x0)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/coreos/agro/block/blockfile.go:26 +0x1b5
May 13 13:42:16 localhost agro[22078]: main.nbdAction(0x1137520, 0xc82022a240, 0x2, 0x4)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/coreos/agro/cmd/agromount/nbd.go:52 +0x397
May 13 13:42:16 localhost agro[22078]: github.com/spf13/cobra.(*Command).execute(0x1137520, 0xc82022a0c0, 0x4, 0x4, 0x0, 0x0)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/spf13/cobra/command.go:565 +0x85a
May 13 13:42:16 localhost agro[22078]: github.com/spf13/cobra.(*Command).ExecuteC(0x1137320, 0x1137520, 0x0, 0x0)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/spf13/cobra/command.go:651 +0x55c
May 13 13:42:16 localhost agro[22078]: github.com/spf13/cobra.(*Command).Execute(0x1137320, 0x0, 0x0)
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/spf13/cobra/command.go:610 +0x2d
May 13 13:42:16 localhost agro[22078]: main.main()
May 13 13:42:16 localhost agro[22078]:         /home/barak/src/agro/src/github.com/coreos/agro/cmd/agromount/main.go:136 +0x38
May 13 13:42:16 localhost systemd[1]: agro-dev-nbd0.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 13 13:42:16 localhost systemd[1]: agro-dev-nbd0.service: Unit entered failed state.
May 13 13:42:16 localhost systemd[1]: agro-dev-nbd0.service: Failed with result 'exit-code'.
betawaffle commented 8 years ago

Hmm, that line number doesn't make sense to me. If peers was nil, it would have failed on line 32.