Description
First off, thanks so much for this wonderful tool. I've been using it over the last days integrated with gmond (ganglia)+grafana.
Now, today morning I was going to check grafana and noted it was having problem in connecting to influxdb. After checking influxdb I noted it was not running and it was failing to start.
I'm using 0.6.5.
When I try to start it I get:
[05/21/14 18:07:36] [INFO] Loading configuration file config.toml
+---------------------------------------------+
| _____ __ _ _____ ____ |
| |_ | / | | | __ | _ \ |
| | | _ __ | || | ___ | | | | |) | |
| | | | '_ | | | | | \ / / | | | _ < |
| | || | | | | | | || |> <| || | |_) | |
| ||| ||| ||,//_____/|____/ |
+---------------------------------------------+
panic: runtime error: index out of range
goroutine 23 [running]:
runtime.panic(0x88d2e0, 0x1012e97)
/home/vagrant/bin/go/src/pkg/runtime/panic.c:266 +0xb6
cluster.(_ClusterConfiguration).GetShardToWriteToBySeriesAndTime(0xc21006dc40, 0xc210000718, 0x7, 0x0, 0x0, ...)
/home/vagrant/influxdb/src/cluster/cluster_configuration.go:660 +0x583
coordinator.(_CoordinatorImpl).CommitSeriesData(0xc2100cd860, 0xc210000718, 0x7, 0xc210000080, 0x1, ...)
/home/vagrant/influxdb/src/coordinator/coordinator.go:644 +0x299
coordinator.(_CoordinatorImpl).WriteSeriesData(0xc2100cd860, 0x7f37f9ac1c00, 0xc210070e40, 0xc210000718, 0x7, ...)
/home/vagrant/influxdb/src/coordinator/coordinator.go:480 +0x13f
api/udp.(_Server).HandleSocket(0xc2100ce410, 0xc21017d010)
/home/vagrant/influxdb/src/api/udp/api.go:94 +0x50f
api/udp.(_Server).ListenAndServe(0xc2100ce410)
/home/vagrant/influxdb/src/api/udp/api.go:62 +0x2ac
created by server.(_Server).ListenAndServe
/home/vagrant/influxdb/src/server/server.go:146 +0x6aa
goroutine 1 [IO wait]:
net.runtime_pollWait(0x7f37f9ab6fd0, 0x72, 0x0)
/tmp/makerelease886106415/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc210141060, 0x72, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitRead(0xc210141060, 0xb, 0x7f37f9aacf88)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(_netFD).accept(0xc210141000, 0xa00be0, 0x0, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_unix.go:382 +0x2c2
net.(_TCPListener).AcceptTCP(0xc2101c8070, 0x18, 0xc210039038, 0x5cdd03)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(_TCPListener).Accept(0xc2101c8070, 0x50, 0x8dbc60, 0x7f37f9ac1b50, 0x0)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(_Server).Serve(0xc2101d1050, 0x7f37f9ab6200, 0xc2101c8070, 0x0, 0x0)
/home/vagrant/bin/go/src/pkg/net/http/server.go:1622 +0x91
api/http.(_HttpServer).serveListener(0xc21008fd20, 0x7f37f9ab6200, 0xc2101c8070, 0xc2101c8078)
/home/vagrant/influxdb/src/api/http/api.go:186 +0x98
api/http.(_HttpServer).Serve(0xc21008fd20, 0x7f37f9ab6200, 0xc2101c8070)
/home/vagrant/influxdb/src/api/http/api.go:156 +0xc7c
api/http.(_HttpServer).ListenAndServe(0xc21008fd20)
/home/vagrant/influxdb/src/api/http/api.go:79 +0x16c
server.(_Server).ListenAndServe(0xc2100501c0, 0xc2100501c0, 0x0)
/home/vagrant/influxdb/src/server/server.go:154 +0x7a6
main.main()
/home/vagrant/influxdb/src/daemon/influxd.go:158 +0xd17
goroutine 3 [syscall]:
os/signal.loop()
/home/vagrant/bin/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/home/vagrant/bin/go/src/pkg/os/signal/signal_unix.go:27 +0x31
goroutine 4 [chan receive]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc210069000, 0x7f37f9aad0e8, 0xc210000008)
/home/vagrant/influxdb/src/code.google.com/p/log4go/termlog.go:27 +0x60
created by code.google.com/p/log4go.NewConsoleLogWriter
/home/vagrant/influxdb/src/code.google.com/p/log4go/termlog.go:19 +0x67
goroutine 5 [syscall]:
runtime.goexit()
/home/vagrant/bin/go/src/pkg/runtime/proc.c:1394
goroutine 6 [select]:
code.google.com/p/log4go.func·002()
/home/vagrant/influxdb/src/code.google.com/p/log4go/filelog.go:84 +0x84c
created by code.google.com/p/log4go.NewFileLogWriter
/home/vagrant/influxdb/src/code.google.com/p/log4go/filelog.go:116 +0x2d1
goroutine 7 [runnable]:
wal.(*WAL).processEntries(0xc210072e00)
/home/vagrant/influxdb/src/wal/wal.go:252 +0x3f
created by wal.NewWAL
/home/vagrant/influxdb/src/wal/wal.go:103 +0x9f3
goroutine 8 [sleep]:
time.Sleep(0x8bb2c97000)
/tmp/makerelease886106415/go/src/pkg/runtime/time.goc:31 +0x31
cluster.func·001()
/home/vagrant/influxdb/src/cluster/cluster_configuration.go:132 +0x35
created by cluster.(*ClusterConfiguration).CreateFutureShardsAutomaticallyBeforeTimeComes
/home/vagrant/influxdb/src/cluster/cluster_configuration.go:137 +0x63
goroutine 10 [chan receive]:
main.waitForSignals(0x7f37f9ab6180, 0xc2100501c0)
/home/vagrant/influxdb/src/daemon/null_profiler.go:23 +0x126
created by main.startProfiler
/home/vagrant/influxdb/src/daemon/null_profiler.go:15 +0x38
goroutine 11 [IO wait]:
net.runtime_pollWait(0x7f37f9ab71c8, 0x72, 0x0)
/tmp/makerelease886106415/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc210050290, 0x72, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitRead(0xc210050290, 0xb, 0x7f37f9aacf88)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(_netFD).accept(0xc210050230, 0xa00be0, 0x0, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_unix.go:382 +0x2c2
net.(_TCPListener).AcceptTCP(0xc2100fdf00, 0x18, 0xc21010c810, 0x5cdd03)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(_TCPListener).Accept(0xc2100fdf00, 0x0, 0x0, 0x0, 0x0)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(_Server).Serve(0xc2100ce460, 0x7f37f9ab6200, 0xc2100fdf00, 0x0, 0x0)
/home/vagrant/bin/go/src/pkg/net/http/server.go:1622 +0x91
coordinator.func·007()
/home/vagrant/influxdb/src/coordinator/raft_server.go:526 +0x3a
created by coordinator.(*RaftServer).Serve
/home/vagrant/influxdb/src/coordinator/raft_server.go:530 +0x4d9
goroutine 13 [finalizer wait]:
runtime.park(0x4518e0, 0x1029db8, 0x10147e8)
/home/vagrant/bin/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
/home/vagrant/bin/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
/home/vagrant/bin/go/src/pkg/runtime/proc.c:1394
goroutine 14 [select]:
github.com/goraft/raft.(_server).leaderLoop(0xc210119240)
/home/vagrant/influxdb/src/github.com/goraft/raft/server.go:765 +0x5fe
github.com/goraft/raft.(_server).loop(0xc210119240)
/home/vagrant/influxdb/src/github.com/goraft/raft/server.go:568 +0x33f
created by github.com/goraft/raft.(*server).Start
/home/vagrant/influxdb/src/github.com/goraft/raft/server.go:472 +0x7af
goroutine 15 [select]:
coordinator.(_RaftServer).CompactLog(0xc2100af790)
/home/vagrant/influxdb/src/coordinator/raft_server.go:316 +0x2ef
created by coordinator.(_RaftServer).startRaft
/home/vagrant/influxdb/src/coordinator/raft_server.go:370 +0x375
goroutine 17 [select]:
coordinator.(_RaftServer).raftLeaderLoop(0xc2100af790, 0xc210070d80)
/home/vagrant/influxdb/src/coordinator/raft_server.go:426 +0x29c
created by coordinator.(_RaftServer).raftEventHandler
/home/vagrant/influxdb/src/coordinator/raft_server.go:415 +0x1d0
goroutine 19 [IO wait]:
net.runtime_pollWait(0x7f37f9ab7120, 0x72, 0x0)
/tmp/makerelease886106415/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc210113bc0, 0x72, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitRead(0xc210113bc0, 0xb, 0x7f37f9aacf88)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(_netFD).accept(0xc210113b60, 0xa00be0, 0x0, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_unix.go:382 +0x2c2
net.(_TCPListener).AcceptTCP(0xc2101890c8, 0xc2100c8fe0, 0x0, 0x7f37f9ab61d0)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(_TCPListener).Accept(0xc2101890c8, 0xc2100c8fe0, 0x7f37f9919f38, 0x1, 0x1)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:243 +0x27
coordinator.(_ProtobufServer).ListenAndServe(0xc2100709c0)
/home/vagrant/influxdb/src/coordinator/protobuf_server.go:64 +0x1c7
created by server.(*Server).ListenAndServe
/home/vagrant/influxdb/src/server/server.go:117 +0x218
goroutine 20 [chan receive]:
wal.(_WAL).Commit(0xc210072e00, 0x1059f4715, 0x59f471500000002, 0x0)
/home/vagrant/influxdb/src/wal/wal.go:121 +0xa2
cluster.(_WriteBuffer).write(0xc210132ee0, 0xc2101b9b00)
/home/vagrant/influxdb/src/cluster/write_buffer.go:95 +0x13c
cluster.(*WriteBuffer).handleWrites(0xc210132ee0)
/home/vagrant/influxdb/src/cluster/write_buffer.go:78 +0xb7
created by cluster.NewWriteBuffer
/home/vagrant/influxdb/src/cluster/write_buffer.go:43 +0x24f
goroutine 22 [IO wait]:
net.runtime_pollWait(0x7f37f9ab7078, 0x72, 0x0)
/tmp/makerelease886106415/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc21014d5a0, 0x72, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitRead(0xc21014d5a0, 0xb, 0x7f37f9aacf88)
/home/vagrant/bin/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(_netFD).accept(0xc21014d540, 0xa00be0, 0x0, 0x7f37f9aacf88, 0xb)
/home/vagrant/bin/go/src/pkg/net/fd_unix.go:382 +0x2c2
net.(_TCPListener).AcceptTCP(0xc2101c8cb8, 0x18, 0xc2100b2810, 0x5cdd03)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(_TCPListener).Accept(0xc2101c8cb8, 0x50, 0x1035c00, 0x18, 0x0)
/home/vagrant/bin/go/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(_Server).Serve(0xc2101d1320, 0x7f37f9ab6200, 0xc2101c8cb8, 0x0, 0x0)
/home/vagrant/bin/go/src/pkg/net/http/server.go:1622 +0x91
net/http.Serve(0x7f37f9ab6200, 0xc2101c8cb8, 0x7f37f9ac1a80, 0xc2101cda10, 0x7, ...)
/home/vagrant/bin/go/src/pkg/net/http/server.go:1561 +0x70
admin.(_HttpServer).ListenAndServe(0xc210070a40)
/home/vagrant/influxdb/src/admin/http_server.go:35 +0x170
created by server.(_Server).ListenAndServe
/home/vagrant/influxdb/src/server/server.go:131 +0x460