Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error on Mavericks with 0.5.6 #428

Closed
vrou opened this issue Apr 11, 2014 · 3 comments
Closed

panic: runtime error on Mavericks with 0.5.6 #428

vrou opened this issue Apr 11, 2014 · 3 comments

Comments

@vrou
Copy link

vrou commented Apr 11, 2014

Mavericks 10.9.2
Commandline: influxdb -config=/usr/local/etc/influxdb.conf
Using default configuration and installed through homebrew.

The issue below appeared after pressing ctrl-c and starting it again. Subsequent restarts is producing the same panic.

% influxdb -config=/usr/local/etc/influxdb.conf
[04/11/14 09:20:40] [INFO] Redirectoring logging to influxdb.log
[04/11/14 09:20:40] [INFO] Starting Influx Server bound to 0.0.0.0 ...
[04/11/14 09:20:40] [INFO]
+---------------------------------------------+
|  _____        __ _            _____  ____   |
| |_   _|      / _| |          |  __ \|  _ \  |
|   | |  _ __ | |_| |_   ___  _| |  | | |_) | |
|   | | | '_ \|  _| | | | \ \/ / |  | |  _ <  |
|  _| |_| | | | | | | |_| |>  <| |__| | |_) | |
| |_____|_| |_|_| |_|\__,_/_/\_\_____/|____/  |
+---------------------------------------------+


[04/11/14 09:20:40] [INFO] Opening database at /usr/local/var/influxdb/data
[04/11/14 09:20:40] [INFO] Opening wal in /usr/local/var/influxdb/wal
[04/11/14 09:20:40] [INFO] Ssl will be disabled since the ssl port or certificate path weren't set
[04/11/14 09:20:40] [INFO] Initializing Raft HTTP server
[04/11/14 09:20:40] [INFO] ProtobufServer listening on 0.0.0.0:8099
[04/11/14 09:20:40] [INFO] Raft Server Listening at http://bos-macbook-pro:8090
[04/11/14 09:20:40] [INFO] Initializing Raft Server: /usr/local/var/influxdb/raft 8090
[04/11/14 09:20:40] [INFO] Recovered from log
[04/11/14 09:20:40] [INFO] Waiting for local server to be added
[04/11/14 09:20:42] [INFO] (raft:a3083d9) Selected as leader. Starting leader loop.
[04/11/14 09:20:42] [INFO] Added server to cluster config: 1, http://Bos-MacBook-Pro.local:8090, Bos-MacBook-Pro.local:8099
[04/11/14 09:20:42] [INFO] Checking whether this is the local server new: bos-macbook-pro:8099, local: Bos-MacBook-Pro.local:8099

[04/11/14 09:20:42] [INFO] Added the local server
[04/11/14 09:20:42] [INFO] Setting server id to 1 and recovering
[04/11/14 09:20:47] [INFO] Recovering from log...
[04/11/14 09:20:47] [INFO] local: Initializing write buffer with buffer size of 10000
[04/11/14 09:20:47] [INFO] Waiting for servers to recover
[04/11/14 09:20:47] [INFO] Recovering local server
[04/11/14 09:20:47] [INFO] Recovering server 1 from request 0
[04/11/14 09:20:47] [INFO] Recovered local server
[04/11/14 09:20:47] [INFO] recovered
[04/11/14 09:20:47] [INFO] Connecting to other nodes in the cluster
[04/11/14 09:20:47] [INFO] ClusterServer: 1 connecting to: Bos-MacBook-Pro.local:8099
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x40dd7f5]

goroutine 1 [running]:
runtime.panic(0x4446400, 0x49d0cf9)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
cluster.(*ClusterServer).Connect(0xc21006f580)
    /private/tmp/influxdb-gm5n/influxdb/src/cluster/cluster_server.go:89 +0x165
coordinator.(*CoordinatorImpl).ConnectToProtobufServers(0xc2100d5020, 0xc21000a860, 0x14, 0xc2100d5020, 0x0)
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/coordinator.go:912 +0x11d
server.(*Server).ListenAndServe(0xc2100710e0, 0xc2100710e0, 0x0)
    /private/tmp/influxdb-gm5n/influxdb/src/server/server.go:98 +0x26b
main.main()
    /private/tmp/influxdb-gm5n/influxdb/src/daemon/influxd.go:140 +0xa4f

goroutine 3 [syscall]:
os/signal.loop()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [chan receive]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc210067000, 0x4bbb0e8, 0xc210000008)
    /private/tmp/influxdb-gm5n/influxdb/src/code.google.com/p/log4go/termlog.go:27 +0x60
created by code.google.com/p/log4go.NewConsoleLogWriter
    /private/tmp/influxdb-gm5n/influxdb/src/code.google.com/p/log4go/termlog.go:19 +0x67

goroutine 5 [select]:
code.google.com/p/log4go.func·002()
    /private/tmp/influxdb-gm5n/influxdb/src/code.google.com/p/log4go/filelog.go:84 +0x84c
created by code.google.com/p/log4go.NewFileLogWriter
    /private/tmp/influxdb-gm5n/influxdb/src/code.google.com/p/log4go/filelog.go:116 +0x2d1

goroutine 6 [syscall]:
runtime.goexit()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394

goroutine 7 [finalizer wait]:
runtime.park(0x40140d0, 0x49d3d90, 0x49d2208)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394

goroutine 8 [chan receive]:
wal.(*WAL).processEntries(0xc21006fb80)
    /private/tmp/influxdb-gm5n/influxdb/src/wal/wal.go:242 +0x3f
created by wal.NewWAL
    /private/tmp/influxdb-gm5n/influxdb/src/wal/wal.go:103 +0x9f3

goroutine 9 [sleep]:
time.Sleep(0x8bb2c97000)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/time.goc:31 +0x31
cluster.func·001()
    /private/tmp/influxdb-gm5n/influxdb/src/cluster/cluster_configuration.go:131 +0x35
created by cluster.(*ClusterConfiguration).CreateFutureShardsAutomaticallyBeforeTimeComes
    /private/tmp/influxdb-gm5n/influxdb/src/cluster/cluster_configuration.go:136 +0x63

goroutine 11 [chan receive]:
main.waitForSignals(0x4bbd038, 0xc2100710e0)
    /private/tmp/influxdb-gm5n/influxdb/src/daemon/null_profiler.go:23 +0x126
created by main.startProfiler
    /private/tmp/influxdb-gm5n/influxdb/src/daemon/null_profiler.go:15 +0x38

goroutine 12 [IO wait]:
net.runtime_pollWait(0x4bbdfb0, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210071e60, 0x72, 0x4bbaf60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210071e60, 0x23, 0x4bbaf60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).accept(0xc210071e00, 0x45b73a8, 0x0, 0x4bbaf60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:382 +0x2c2
net.(*TCPListener).AcceptTCP(0xc2100c4038, 0xc21009d070, 0x0, 0x4bbd088)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(*TCPListener).Accept(0xc2100c4038, 0xc21009d070, 0x4f9bf38, 0x1, 0x1)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:243 +0x27
coordinator.(*ProtobufServer).ListenAndServe(0xc2100c3080)
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/protobuf_server.go:64 +0x1c7
created by server.(*Server).ListenAndServe
    /private/tmp/influxdb-gm5n/influxdb/src/server/server.go:78 +0x3d

goroutine 13 [IO wait]:
net.runtime_pollWait(0x4bbe058, 0x72, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100713e0, 0x72, 0x4bbaf60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2100713e0, 0x23, 0x4bbaf60)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).accept(0xc210071380, 0x45b73a8, 0x0, 0x4bbaf60, 0x23)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/fd_unix.go:382 +0x2c2
net.(*TCPListener).AcceptTCP(0xc2100c4058, 0x18, 0xc210100010, 0x4188a03)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(*TCPListener).Accept(0xc2100c4058, 0x0, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/tcpsock_posix.go:243 +0x27
net/http.(*Server).Serve(0xc2100d40f0, 0x4bbd0b8, 0xc2100c4058, 0x0, 0x0)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/net/http/server.go:1622 +0x91
coordinator.func·008()
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/raft_server.go:510 +0x3a
created by coordinator.(*RaftServer).Serve
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/raft_server.go:514 +0x519

goroutine 15 [select]:
github.com/goraft/raft.(*server).leaderLoop(0xc21009fb40)
    /private/tmp/influxdb-gm5n/influxdb/src/github.com/goraft/raft/server.go:765 +0x5fe
github.com/goraft/raft.(*server).loop(0xc21009fb40)
    /private/tmp/influxdb-gm5n/influxdb/src/github.com/goraft/raft/server.go:568 +0x33f
created by github.com/goraft/raft.(*server).Start
    /private/tmp/influxdb-gm5n/influxdb/src/github.com/goraft/raft/server.go:472 +0x7af

goroutine 16 [select]:
coordinator.(*RaftServer).CompactLog(0xc210072000)
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/raft_server.go:302 +0x2ef
created by coordinator.(*RaftServer).startRaft
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/raft_server.go:340 +0x38f

goroutine 17 [select]:
coordinator.(*RaftServer).raftLeaderLoop(0xc210072000, 0xc2100a1300)
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/raft_server.go:409 +0x29c
created by coordinator.(*RaftServer).raftEventHandler
    /private/tmp/influxdb-gm5n/influxdb/src/coordinator/raft_server.go:398 +0x1d0

goroutine 19 [select]:
cluster.(*WriteBuffer).handleWrites(0xc210045060)
    /private/tmp/influxdb-gm5n/influxdb/src/cluster/write_buffer.go:59 +0xca
created by cluster.NewWriteBuffer
    /private/tmp/influxdb-gm5n/influxdb/src/cluster/write_buffer.go:37 +0x207```
@jvshahid
Copy link
Contributor

This is similar to issue #412, set your hostname to Bos-MacBook-Pro.local in the config file. There is an open issue to handle the hostname changes in a more robust way #419

I'll go ahead and close this issue, but feel free to reopen it if the above workaround doesn't fix your problem.

@vrou
Copy link
Author

vrou commented Apr 14, 2014

Exactly the issue I was hit by, sorry that I did not look more thoroughly through the issues.

@jvshahid
Copy link
Contributor

glad we could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants