Skip to content

Instantly share code, notes, and snippets.

@jerith
Created July 5, 2016 10:58
Show Gist options
  • Save jerith/7244a2ca2c8a5449a208dfad5d651fca to your computer and use it in GitHub Desktop.
Save jerith/7244a2ca2c8a5449a208dfad5d651fca to your computer and use it in GitHub Desktop.
mgmt bug?
vagrant@debiancontrib-jessie:~/mgmt$ ./mgmt run
10:57:19 main.go:65: This is: mgmt, version: 0.0.3-52-ge942d71-dirty
10:57:19 main.go:66: Main: Start: 1467716239322452148
10:57:19 main.go:131: Main: Seeds: No seeds specified!
10:57:19 etcd.go:370: Etcd: Bootstrapping...
10:57:19 etcd.go:1313: Etcd: Nominated: debiancontrib-jessie=http://127.0.0.1:2380
10:57:19 etcd.go:1328: Etcd: StartServer(newCluster: true): debiancontrib-jessie=http://127.0.0.1:2380
10:57:19 etcd.go:309: Etcd: Connect: Endpoints: []
10:57:19 etcd.go:565: Etcd: CtxError: No endpoints available yet!
10:57:19 etcd.go:1566: Etcd: StartServer: Initializing connections...
10:57:19 etcd.go:1592: Etcd: StartServer: Starting server...
10:57:19 etcd.go:1596: Etcd: StartServer: Listening...
10:57:19 etcd.go:1347: Etcd: Addresses are: http://127.0.0.1:2379
10:57:19 etcd.go:307: Etcd: Connect: Endpoints: debiancontrib-jessie=http://127.0.0.1:2379
10:57:20 etcd.go:572: Etcd: CtxError: Server is starting up...
10:57:20 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(PUT): debiancontrib-jessie
10:57:20 etcd.go:1313: Etcd: Nominated: debiancontrib-jessie=http://127.0.0.1:2380
10:57:20 etcd.go:380: Etcd: Startup: Volunteering...
10:57:20 etcd.go:1509: Etcd: Ideal cluster size is now: 5
10:57:20 etcd.go:888: Etcd: Set(/_mgmt/idealClusterSize): &{cluster_id:4255616304056076734 member_id:9882886658148554927 revision:4 raft_term:2 }
10:57:20 main.go:247: Main: Running...
10:57:20 main.go:162: Etcd: Starting...
10:57:20 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
10:57:20 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
10:57:20 main.go:166: Main: Waiting...
10:57:20 main.go:198: Config parse failure
10:57:20 main.go:166: Main: Waiting...
10:57:20 etcd.go:1166: Etcd: Volunteers: [debiancontrib-jessie]
10:57:20 etcd.go:1170: Etcd: Quitters: []
10:57:20 etcd.go:1182: Etcd: Candidates: []
10:57:20 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
10:57:20 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
10:57:20 etcd.go:1166: Etcd: Volunteers: [debiancontrib-jessie]
10:57:20 etcd.go:1170: Etcd: Quitters: []
10:57:20 etcd.go:1182: Etcd: Candidates: []
^C10:57:43 main.go:54: Interrupted by ^C
10:57:43 main.go:251: Destroy...
10:57:43 etcd.go:403: Etcd: Destroy: Unvolunteering...
10:57:43 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
10:57:43 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
10:57:43 etcd.go:1166: Etcd: Volunteers: []
10:57:43 etcd.go:1170: Etcd: Quitters: [debiancontrib-jessie]
10:57:43 etcd.go:1174: Etcd: Quitters: Shutting down self...
10:57:43 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(DELETE): debiancontrib-jessie
10:57:43 etcd.go:1315: Etcd: Nominated: []
10:57:43 etcd.go:1386: Etcd: DestroyServer...
10:57:43 etcd.go:1608: Etcd: DestroyServer: Destroying...
10:57:43 etcd.go:1613: Etcd: DestroyServer: Done stopping...
10:57:43 etcd.go:1618: Etcd: DestroyServer: Done closing...
10:57:43 etcd.go:1626: Etcd: DestroyServer: Done removing data...
10:57:43 etcd.go:1630: Etcd: DestroyServer: Unlocking server...
10:57:43 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(DELETE): debiancontrib-jessie
10:57:43 etcd.go:1476: Etcd: Endpoints: []
10:57:43 etcd.go:586: Etcd: CtxError: Reason: CtxReconnectErr: endpoint list changed
10:57:43 etcd.go:610: Etcd: CtxError: Cancelling 5 operations...
10:57:43 etcd.go:617: Etcd: CtxError: Reconnecting...
10:57:43 etcd.go:309: Etcd: Connect: Endpoints: []
10:57:43 etcd.go:565: Etcd: CtxError: No endpoints available yet!
10:57:43 etcd.go:414: Etcd: Destroy: Cancelling 0 operations...
10:57:43 etcd.go:834: Etcd: Exiting loop shortly...
10:57:43 etcd.go:309: Etcd: Connect: Endpoints: []
10:57:43 etcd.go:623: Etcd: CtxError: Reconnected!
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0xd8 pc=0x5814b8]
goroutine 1 [running]:
github.com/urfave/cli.HandleAction.func1(0xc8201270a0)
/home/vagrant/gocode/src/github.com/urfave/cli/app.go:472 +0x417
github.com/coreos/etcd/clientv3.(*Client).Close(0x0, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/coreos/etcd/clientv3/client.go:87 +0x28
main.(*EmbdEtcd).Destroy(0xc8201a6000, 0x0, 0x0)
/home/vagrant/mgmt/etcd.go:423 +0x395
main.run(0xc82000de00, 0x0, 0x0)
/home/vagrant/mgmt/main.go:260 +0x2199
reflect.Value.call(0xd8e1c0, 0x1324138, 0x13, 0x10f0cc0, 0x4, 0xc820127000, 0x1, 0x1, 0x0, 0x0, ...)
/usr/lib/go/src/reflect/value.go:432 +0x120a
reflect.Value.Call(0xd8e1c0, 0x1324138, 0x13, 0xc820127000, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/lib/go/src/reflect/value.go:300 +0xb1
github.com/urfave/cli.HandleAction(0xd8e1c0, 0x1324138, 0xc82000de00, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/urfave/cli/app.go:481 +0x2ee
github.com/urfave/cli.Command.Run(0x10f93d8, 0x3, 0x0, 0x0, 0xc82018a950, 0x1, 0x1, 0x10f93d8, 0x3, 0x0, ...)
/home/vagrant/gocode/src/github.com/urfave/cli/command.go:186 +0x12ff
github.com/urfave/cli.(*App).Run(0xc820001e00, 0xc82000a160, 0x2, 0x2, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/urfave/cli/app.go:235 +0xa99
main.main()
/home/vagrant/mgmt/main.go:402 +0x1742
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 33 [chan receive]:
github.com/coreos/etcd/pkg/logutil.(*MergeLogger).outputLoop(0xc8201765c0)
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/logutil/merge_logger.go:174 +0x7c
created by github.com/coreos/etcd/pkg/logutil.NewMergeLogger
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/logutil/merge_logger.go:92 +0xc0
goroutine 57 [chan receive]:
main.(*converger).Loop(0xc82017b7c0, 0x1)
/home/vagrant/mgmt/converger.go:167 +0x16c
created by main.run
/home/vagrant/mgmt/main.go:127 +0x1b93
goroutine 46 [chan receive]:
github.com/coreos/etcd/pkg/logutil.(*MergeLogger).outputLoop(0xc8201779c0)
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/logutil/merge_logger.go:174 +0x7c
created by github.com/coreos/etcd/pkg/logutil.NewMergeLogger
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/logutil/merge_logger.go:92 +0xc0
goroutine 55 [syscall]:
os/signal.loop()
/usr/lib/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/lib/go/src/os/signal/signal_unix.go:28 +0x37
goroutine 59 [select]:
main.(*EmbdEtcd).CallbackLoop(0xc8201a6000)
/home/vagrant/mgmt/etcd.go:650 +0x456
created by main.(*EmbdEtcd).Startup
/home/vagrant/mgmt/etcd.go:330 +0xa9
goroutine 60 [select]:
main.(*EmbdEtcd).Loop(0xc8201a6000)
/home/vagrant/mgmt/etcd.go:716 +0xd65
created by main.(*EmbdEtcd).Startup
/home/vagrant/mgmt/etcd.go:331 +0xce
goroutine 83 [IO wait]:
net.runtime_pollWait(0x7f98d6c86ec8, 0x72, 0xc82000e190)
/usr/lib/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82018d640, 0x72, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82018d640, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).accept(0xc82018d5e0, 0x0, 0x7f98d6c8dd20, 0xc8203dcb60)
/usr/lib/go/src/net/fd_unix.go:408 +0x27c
net.(*TCPListener).AcceptTCP(0xc8200265c8, 0x10ffb40, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:254 +0x4d
net.(*TCPListener).Accept(0xc8200265c8, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:264 +0x3d
github.com/coreos/etcd/pkg/transport.(*rwTimeoutListener).Accept(0xc8201970c0, 0x0, 0x0, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/transport/timeout_listener.go:45 +0x70
net/http.(*Server).Serve(0xc8203f6480, 0x7f98d6c88030, 0xc8201970c0, 0x0, 0x0)
/usr/lib/go/src/net/http/server.go:1887 +0xb3
main.servePeerHTTP(0x7f98d6c88030, 0xc8201970c0, 0x7f98d6c8db18, 0xc8203e2e10, 0x0, 0x0)
/home/vagrant/mgmt/etcd.go:2513 +0x169
main.(*EtcdConn).Init.func3.1(0x7f98d6c8db18, 0xc8203e2e10, 0xc820151040, 0x7f98d6c88030, 0xc8201970c0)
/home/vagrant/mgmt/etcd.go:2400 +0x4f
created by main.(*EtcdConn).Init.func3
/home/vagrant/mgmt/etcd.go:2406 +0x21d
goroutine 84 [IO wait]:
net.runtime_pollWait(0x7f98d6c86e08, 0x72, 0xc82000e190)
/usr/lib/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82018d720, 0x72, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82018d720, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).accept(0xc82018d6c0, 0x0, 0x7f98d6c8dd20, 0xc820569020)
/usr/lib/go/src/net/fd_unix.go:408 +0x27c
net.(*TCPListener).AcceptTCP(0xc8200265d8, 0xd097c0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:254 +0x4d
net.(*TCPListener).Accept(0xc8200265d8, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:264 +0x3d
github.com/coreos/etcd/pkg/transport.(*limitListener).Accept(0xc820197140, 0x0, 0x0, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/transport/limit_listen.go:46 +0x8c
github.com/coreos/etcd/pkg/transport.(*keepaliveListener).Accept(0xc82018b500, 0x0, 0x0, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/transport/keepalive_listener.go:49 +0x68
github.com/cockroachdb/cmux.(*cMux).Serve(0xc820451640, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/cockroachdb/cmux/cmux.go:110 +0x9d
main.serve(0xc820185d40, 0xc82016db00, 0x0, 0x7f98d6c8db40, 0xc8203dca00, 0x0, 0x0)
/home/vagrant/mgmt/etcd.go:2490 +0x9bd
main.(*EtcdConn).Init.func3.2(0xc82016db00, 0x0, 0x7f98d6c8db40, 0xc8203dca00, 0xc820151040, 0xc820185d40)
/home/vagrant/mgmt/etcd.go:2413 +0x5f
created by main.(*EtcdConn).Init.func3
/home/vagrant/mgmt/etcd.go:2419 +0x2fa
goroutine 109 [chan receive]:
github.com/cockroachdb/cmux.(*muxListener).Accept(0xc8203ddea0, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:9 +0x125
net/http.(*Server).Serve(0xc82046a360, 0x7f98d6c8f018, 0xc8203ddea0, 0x0, 0x0)
/usr/lib/go/src/net/http/server.go:1887 +0xb3
main.serve.func2(0xc82046a360, 0x7f98d6c8f018, 0xc8203ddea0)
/home/vagrant/mgmt/etcd.go:2470 +0x3f
created by main.serve
/home/vagrant/mgmt/etcd.go:2470 +0x4e1
goroutine 108 [chan receive]:
github.com/cockroachdb/cmux.(*muxListener).Accept(0xc8203dde80, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:9 +0x125
google.golang.org/grpc.(*Server).Serve(0xc8204801b0, 0x7f98d6c8f018, 0xc8203dde80, 0x0, 0x0)
/home/vagrant/gocode/src/google.golang.org/grpc/server.go:312 +0x1cf
main.serve.func1(0xc8204801b0, 0x7f98d6c8f018, 0xc8203dde80)
/home/vagrant/mgmt/etcd.go:2463 +0x3f
created by main.serve
/home/vagrant/mgmt/etcd.go:2463 +0x388
goroutine 7778 [chan send]:
main.run.func3(0xc82000de00, 0xc8201a6000, 0xc820242c00, 0xc82017b7c0, 0xc8200265a8, 0xc8200265b0, 0xc820196da0, 0x14, 0x0, 0xc82018b2f0)
/home/vagrant/mgmt/main.go:187 +0xd69
created by main.run
/home/vagrant/mgmt/main.go:245 +0x1f03
goroutine 7779 [select, locked to thread]:
runtime.gopark(0x13247f8, 0xc8203e8728, 0x10f96b8, 0x6, 0x18, 0x2)
/usr/lib/go/src/runtime/proc.go:185 +0x163
runtime.selectgoImpl(0xc8203e8728, 0x0, 0x18)
/usr/lib/go/src/runtime/select.go:392 +0xa64
runtime.selectgo(0xc8203e8728)
/usr/lib/go/src/runtime/select.go:212 +0x12
runtime.ensureSigM.func1()
/usr/lib/go/src/runtime/signal1_unix.go:227 +0x353
runtime.goexit()
/usr/lib/go/src/runtime/asm_amd64.s:1696 +0x1
vagrant@debiancontrib-jessie:~/mgmt$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment