Skip to content

Instantly share code, notes, and snippets.

@spro
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spro/84f62bcd66207aa1e136 to your computer and use it in GitHub Desktop.
Save spro/84f62bcd66207aa1e136 to your computer and use it in GitHub Desktop.
Consul panic
2014/08/21 08:52:13 [INFO] consul.fsm: snapshot created in 23.435us
2014/08/21 08:52:13 [INFO] raft: Starting snapshot up to 8232
2014/08/21 08:52:13 [INFO] snapshot: Creating new snapshot at /tmp/consul/raft/snapshots/2-8232-2014-08-21T08:52:13.72566997-07:00.tmp
2014/08/21 08:52:13 [INFO] raft: Compacting logs from 1 to 8232
panic: runtime error: index out of range
goroutine 30 [running]:
runtime.panic(0x9bdc40, 0xf763fc)
/opt/go/src/pkg/runtime/panic.c:279 +0xf5
encoding/binary.bigEndian.Uint64(0xf8f230, 0x0, 0x0, 0xc208201300)
/opt/go/src/pkg/encoding/binary/binary.go:110 +0x122
github.com/hashicorp/raft-mdb.bytesToUint64(0xf8f230, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/raft-mdb/util.go:28 +0x47
github.com/hashicorp/raft-mdb.(*MDBStore).innerDeleteRange(0xc208037520, 0xc208038960, 0xc208308068, 0x1, 0x1, 0x1, 0x2028, 0x19e1, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/raft-mdb/mdb_store.go:286 +0x270
github.com/hashicorp/raft-mdb.(*MDBStore).DeleteRange(0xc208037520, 0x1, 0x2028, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/raft-mdb/mdb_store.go:244 +0x18c
github.com/hashicorp/raft.(*Raft).compactLogs(0xc2080a41c0, 0x2028, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/raft/raft.go:1609 +0x3a1
github.com/hashicorp/raft.(*Raft).takeSnapshot(0xc2080a41c0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/raft/raft.go:1580 +0xa7d
github.com/hashicorp/raft.(*Raft).runSnapshots(0xc2080a41c0)
/opt/gopath/src/github.com/hashicorp/raft/raft.go:1492 +0xbf
github.com/hashicorp/raft.*Raft.(github.com/hashicorp/raft.runSnapshots)·fm()
/opt/gopath/src/github.com/hashicorp/raft/raft.go:227 +0x26
github.com/hashicorp/raft.func·008()
/opt/gopath/src/github.com/hashicorp/raft/state.go:152 +0x4e
created by github.com/hashicorp/raft.(*raftState).goFunc
/opt/gopath/src/github.com/hashicorp/raft/state.go:153 +0x9c
goroutine 16 [select, 1140 minutes]:
github.com/hashicorp/consul/command/agent.(*Command).handleSignals(0xc208050120, 0xc208011180, 0x2e)
/opt/gopath/src/github.com/hashicorp/consul/command/agent/command.go:388 +0x853
github.com/hashicorp/consul/command/agent.(*Command).Run(0xc208050120, 0xc20800e020, 0x8, 0x8, 0x0)
/opt/gopath/src/github.com/hashicorp/consul/command/agent/command.go:377 +0x1645
github.com/mitchellh/cli.(*CLI).Run(0xc20802c540, 0xc20802c540, 0x0, 0x0)
/opt/gopath/src/github.com/mitchellh/cli/cli.go:69 +0x2cb
main.realMain(0x411bbe)
/opt/gopath/src/github.com/hashicorp/consul/main.go:37 +0x2fb
main.main()
/opt/gopath/src/github.com/hashicorp/consul/main.go:12 +0x1e
goroutine 19 [finalizer wait, 1141 minutes]:
runtime.park(0x4245d0, 0xf8e030, 0xf7a4c9)
/opt/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xf8e030, 0xf7a4c9)
/opt/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/opt/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/opt/go/src/pkg/runtime/proc.c:1445
...
@armon
Copy link

armon commented Aug 21, 2014

What version of Consul are you running? This was a known bug in 0.3.0 which should be resolved in 0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment