Skip to content

Instantly share code, notes, and snippets.

@jerith
Created July 8, 2016 13:02
Show Gist options
  • Save jerith/16564c37acd21871d4fa2f3f358e6005 to your computer and use it in GitHub Desktop.
Save jerith/16564c37acd21871d4fa2f3f358e6005 to your computer and use it in GitHub Desktop.
vagrant@debiancontrib-jessie:~/mgmt$ ./mgmt run
13:00:48 main.go:65: This is: mgmt, version: 0.0.3-59-g5d45bcd
13:00:48 main.go:66: Main: Start: 1467982848669801638
13:00:48 main.go:131: Main: Seeds: No seeds specified!
13:00:48 etcd.go:370: Etcd: Bootstrapping...
13:00:48 etcd.go:1313: Etcd: Nominated: debiancontrib-jessie=http://127.0.0.1:2380
13:00:48 etcd.go:1328: Etcd: StartServer(newCluster: true): debiancontrib-jessie=http://127.0.0.1:2380
13:00:48 etcd.go:1566: Etcd: StartServer: Initializing connections...
13:00:48 etcd.go:309: Etcd: Connect: Endpoints: []
13:00:48 etcd.go:565: Etcd: CtxError: No endpoints available yet!
13:00:48 etcd.go:1592: Etcd: StartServer: Starting server...
13:00:48 etcd.go:1596: Etcd: StartServer: Listening...
13:00:48 etcd.go:1347: Etcd: Addresses are: http://127.0.0.1:2379
13:00:49 etcd.go:307: Etcd: Connect: Endpoints: debiancontrib-jessie=http://127.0.0.1:2379
13:00:49 etcd.go:572: Etcd: CtxError: Server is starting up...
13:00:49 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(PUT): debiancontrib-jessie
13:00:49 etcd.go:1313: Etcd: Nominated: debiancontrib-jessie=http://127.0.0.1:2380
13:00:49 etcd.go:380: Etcd: Startup: Volunteering...
13:00:49 etcd.go:1509: Etcd: Ideal cluster size is now: 5
13:00:49 etcd.go:888: Etcd: Set(/_mgmt/idealClusterSize): &{cluster_id:4255616304056076734 member_id:9882886658148554927 revision:4 raft_term:2 }
13:00:49 main.go:247: Main: Running...
13:00:49 main.go:162: Etcd: Starting...
13:00:49 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
13:00:49 main.go:166: Main: Waiting...
13:00:49 main.go:198: Config parse failure
13:00:49 main.go:166: Main: Waiting...
13:00:49 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
13:00:49 etcd.go:1166: Etcd: Volunteers: [debiancontrib-jessie]
13:00:49 etcd.go:1170: Etcd: Quitters: []
13:00:49 etcd.go:1182: Etcd: Candidates: []
13:00:49 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
13:00:49 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
13:00:50 etcd.go:1166: Etcd: Volunteers: [debiancontrib-jessie]
13:00:50 etcd.go:1170: Etcd: Quitters: []
13:00:50 etcd.go:1182: Etcd: Candidates: []
^C13:00:57 main.go:54: Interrupted by ^C
13:00:57 main.go:251: Destroy...
13:00:57 etcd.go:403: Etcd: Destroy: Unvolunteering...
13:00:57 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
13:00:57 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
13:00:57 etcd.go:1166: Etcd: Volunteers: []
13:00:57 etcd.go:1170: Etcd: Quitters: [debiancontrib-jessie]
13:00:57 etcd.go:1174: Etcd: Quitters: Shutting down self...
13:00:57 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(DELETE): debiancontrib-jessie
13:00:57 etcd.go:1315: Etcd: Nominated: []
13:00:57 etcd.go:1386: Etcd: DestroyServer...
13:00:57 etcd.go:1608: Etcd: DestroyServer: Destroying...
13:00:57 etcd.go:1613: Etcd: DestroyServer: Done stopping...
13:00:57 etcd.go:1618: Etcd: DestroyServer: Done closing...
13:00:57 etcd.go:1626: Etcd: DestroyServer: Done removing data...
13:00:57 etcd.go:1630: Etcd: DestroyServer: Unlocking server...
13:00:57 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(DELETE): debiancontrib-jessie
13:00:57 etcd.go:1476: Etcd: Endpoints: []
13:00:57 etcd.go:414: Etcd: Destroy: Cancelling 5 operations...
13:00:57 main.go:273: Goodbye!
vagrant@debiancontrib-jessie:~/mgmt$
vagrant@debiancontrib-jessie:~/mgmt$ ./mgmt run
13:02:01 main.go:65: This is: mgmt, version: 0.0.3-59-g5d45bcd
13:02:01 main.go:66: Main: Start: 1467982921186752211
13:02:01 main.go:131: Main: Seeds: No seeds specified!
13:02:01 etcd.go:370: Etcd: Bootstrapping...
13:02:01 etcd.go:1313: Etcd: Nominated: debiancontrib-jessie=http://127.0.0.1:2380
13:02:01 etcd.go:1328: Etcd: StartServer(newCluster: true): debiancontrib-jessie=http://127.0.0.1:2380
13:02:01 etcd.go:1566: Etcd: StartServer: Initializing connections...
13:02:01 etcd.go:1592: Etcd: StartServer: Starting server...
13:02:01 etcd.go:1596: Etcd: StartServer: Listening...
13:02:01 etcd.go:1347: Etcd: Addresses are: http://127.0.0.1:2379
13:02:01 etcd.go:307: Etcd: Connect: Endpoints: debiancontrib-jessie=http://127.0.0.1:2379
13:02:01 etcd.go:572: Etcd: CtxError: Server is starting up...
13:02:02 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(PUT): debiancontrib-jessie
13:02:02 etcd.go:1313: Etcd: Nominated: debiancontrib-jessie=http://127.0.0.1:2380
13:02:02 etcd.go:380: Etcd: Startup: Volunteering...
13:02:02 etcd.go:1509: Etcd: Ideal cluster size is now: 5
13:02:02 etcd.go:888: Etcd: Set(/_mgmt/idealClusterSize): &{cluster_id:4255616304056076734 member_id:9882886658148554927 revision:4 raft_term:2 }
13:02:02 main.go:247: Main: Running...
13:02:02 main.go:162: Etcd: Starting...
13:02:02 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
13:02:02 main.go:166: Main: Waiting...
13:02:02 main.go:198: Config parse failure
13:02:02 main.go:166: Main: Waiting...
13:02:02 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
13:02:02 etcd.go:1166: Etcd: Volunteers: [debiancontrib-jessie]
13:02:02 etcd.go:1170: Etcd: Quitters: []
13:02:02 etcd.go:1182: Etcd: Candidates: []
13:02:02 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
13:02:02 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
13:02:02 etcd.go:1166: Etcd: Volunteers: [debiancontrib-jessie]
13:02:02 etcd.go:1170: Etcd: Quitters: []
13:02:02 etcd.go:1182: Etcd: Candidates: []
^C13:02:05 main.go:54: Interrupted by ^C
13:02:05 main.go:251: Destroy...
13:02:05 etcd.go:403: Etcd: Destroy: Unvolunteering...
13:02:05 etcd.go:1124: Etcd: Members: List: [debiancontrib-jessie]
13:02:05 etcd.go:1147: Etcd: Leader: debiancontrib-jessie
13:02:05 etcd.go:1166: Etcd: Volunteers: []
13:02:05 etcd.go:1170: Etcd: Quitters: [debiancontrib-jessie]
13:02:05 etcd.go:1174: Etcd: Quitters: Shutting down self...
13:02:05 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(DELETE): debiancontrib-jessie
13:02:05 etcd.go:1315: Etcd: Nominated: []
13:02:05 etcd.go:1386: Etcd: DestroyServer...
13:02:05 etcd.go:1608: Etcd: DestroyServer: Destroying...
13:02:05 etcd.go:1613: Etcd: DestroyServer: Done stopping...
13:02:05 etcd.go:1618: Etcd: DestroyServer: Done closing...
13:02:05 etcd.go:1626: Etcd: DestroyServer: Done removing data...
13:02:05 etcd.go:1630: Etcd: DestroyServer: Unlocking server...
13:02:05 etcd.go:2115: Etcd: ApplyDeltaEvents: Event(DELETE): debiancontrib-jessie
13:02:05 etcd.go:1476: Etcd: Endpoints: []
13:02:05 etcd.go:586: Etcd: CtxError: Reason: CtxReconnectErr: endpoint list changed
13:02:05 etcd.go:610: Etcd: CtxError: Cancelling 5 operations...
13:02:05 etcd.go:617: Etcd: CtxError: Reconnecting...
13:02:05 etcd.go:309: Etcd: Connect: Endpoints: []
13:02:05 etcd.go:565: Etcd: CtxError: No endpoints available yet!
13:02:05 etcd.go:414: Etcd: Destroy: Cancelling 0 operations...
13:02:05 etcd.go:834: Etcd: Exiting loop shortly...
13:02:06 etcd.go:309: Etcd: Connect: Endpoints: []
13:02:06 etcd.go:623: Etcd: CtxError: Reconnected!
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0xd8 pc=0x5814b8]
goroutine 1 [running]:
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(0xc820073cc0, 0x0, 0x0)
/home/vagrant/mgmt/etcd.go:423 +0x395
main.run(0xc820073b80, 0x0, 0x0)
/home/vagrant/mgmt/main.go:260 +0x2199
reflect.Value.call(0xd8dca0, 0x1323b90, 0x13, 0x10f07a0, 0x4, 0xc82011f000, 0x1, 0x1, 0x0, 0x0, ...)
/usr/lib/go/src/reflect/value.go:432 +0x120a
reflect.Value.Call(0xd8dca0, 0x1323b90, 0x13, 0xc82011f000, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/lib/go/src/reflect/value.go:300 +0xb1
github.com/urfave/cli.HandleAction(0xd8dca0, 0x1323b90, 0xc820073b80, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/urfave/cli/app.go:481 +0x294
github.com/urfave/cli.Command.Run(0x10f8eb8, 0x3, 0x0, 0x0, 0xc82017e980, 0x1, 0x1, 0x10f8eb8, 0x3, 0x0, ...)
/home/vagrant/gocode/src/github.com/urfave/cli/command.go:186 +0x12ff
github.com/urfave/cli.(*App).Run(0xc820001b00, 0xc82000a180, 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(0xc820170640)
/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 46 [chan receive]:
github.com/coreos/etcd/pkg/logutil.(*MergeLogger).outputLoop(0xc820171a20)
/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 56 [chan receive]:
main.(*converger).Loop(0xc820173860, 0x1)
/home/vagrant/mgmt/converger.go:167 +0x16c
created by main.run
/home/vagrant/mgmt/main.go:127 +0x1b93
goroutine 58 [select]:
main.(*EmbdEtcd).CallbackLoop(0xc820073cc0)
/home/vagrant/mgmt/etcd.go:650 +0x456
created by main.(*EmbdEtcd).Startup
/home/vagrant/mgmt/etcd.go:330 +0xa9
goroutine 59 [select]:
main.(*EmbdEtcd).Loop(0xc820073cc0)
/home/vagrant/mgmt/etcd.go:716 +0xd65
created by main.(*EmbdEtcd).Startup
/home/vagrant/mgmt/etcd.go:331 +0xce
goroutine 81 [IO wait]:
net.runtime_pollWait(0x7f995438eec8, 0x72, 0xc82000e1a0)
/usr/lib/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc820181640, 0x72, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc820181640, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).accept(0xc8201815e0, 0x0, 0x7f9954395d30, 0xc8203c2cc0)
/usr/lib/go/src/net/fd_unix.go:408 +0x27c
net.(*TCPListener).AcceptTCP(0xc8200265d0, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:254 +0x4d
net.(*TCPListener).Accept(0xc8200265d0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:264 +0x3d
github.com/coreos/etcd/pkg/transport.(*rwTimeoutListener).Accept(0xc820187040, 0x0, 0x0, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/coreos/etcd/pkg/transport/timeout_listener.go:45 +0x70
net/http.(*Server).Serve(0xc82040a6c0, 0x7f995438ff98, 0xc820187040, 0x0, 0x0)
/usr/lib/go/src/net/http/server.go:1887 +0xb3
main.servePeerHTTP(0x7f995438ff98, 0xc820187040, 0x7f9954395938, 0xc8203ccab0, 0x0, 0x0)
/home/vagrant/mgmt/etcd.go:2513 +0x169
main.(*EtcdConn).Init.func3.1(0x7f9954395938, 0xc8203ccab0, 0xc82014af00, 0x7f995438ff98, 0xc820187040)
/home/vagrant/mgmt/etcd.go:2400 +0x4f
created by main.(*EtcdConn).Init.func3
/home/vagrant/mgmt/etcd.go:2406 +0x21d
goroutine 82 [IO wait]:
net.runtime_pollWait(0x7f995438ee08, 0x72, 0xc82000e1a0)
/usr/lib/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc820181720, 0x72, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc820181720, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).accept(0xc8201816c0, 0x0, 0x7f9954395d30, 0xc8205508a0)
/usr/lib/go/src/net/fd_unix.go:408 +0x27c
net.(*TCPListener).AcceptTCP(0xc8200265e0, 0xd092a0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:254 +0x4d
net.(*TCPListener).Accept(0xc8200265e0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/net/tcpsock_posix.go:264 +0x3d
github.com/coreos/etcd/pkg/transport.(*limitListener).Accept(0xc8201870c0, 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(0xc82017f510, 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(0xc820437180, 0x0, 0x0)
/home/vagrant/gocode/src/github.com/cockroachdb/cmux/cmux.go:110 +0x9d
main.serve(0xc820179d10, 0xc820167b00, 0x0, 0x7f9954395960, 0xc8203c27e0, 0x0, 0x0)
/home/vagrant/mgmt/etcd.go:2490 +0x9bd
main.(*EtcdConn).Init.func3.2(0xc820167b00, 0x0, 0x7f9954395960, 0xc8203c27e0, 0xc82014af00, 0xc820179d10)
/home/vagrant/mgmt/etcd.go:2413 +0x5f
created by main.(*EtcdConn).Init.func3
/home/vagrant/mgmt/etcd.go:2419 +0x2fa
goroutine 107 [chan receive]:
github.com/cockroachdb/cmux.(*muxListener).Accept(0xc8203c3da0, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:9 +0x125
google.golang.org/grpc.(*Server).Serve(0xc820472120, 0x7f9954396f38, 0xc8203c3da0, 0x0, 0x0)
/home/vagrant/gocode/src/google.golang.org/grpc/server.go:312 +0x1cf
main.serve.func1(0xc820472120, 0x7f9954396f38, 0xc8203c3da0)
/home/vagrant/mgmt/etcd.go:2463 +0x3f
created by main.serve
/home/vagrant/mgmt/etcd.go:2463 +0x388
goroutine 108 [chan receive]:
github.com/cockroachdb/cmux.(*muxListener).Accept(0xc8203c3dc0, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:9 +0x125
net/http.(*Server).Serve(0xc820474180, 0x7f9954396f38, 0xc8203c3dc0, 0x0, 0x0)
/usr/lib/go/src/net/http/server.go:1887 +0xb3
main.serve.func2(0xc820474180, 0x7f9954396f38, 0xc8203c3dc0)
/home/vagrant/mgmt/etcd.go:2470 +0x3f
created by main.serve
/home/vagrant/mgmt/etcd.go:2470 +0x4e1
goroutine 8546 [chan send]:
main.run.func3(0xc820073b80, 0xc820073cc0, 0xc8203bf980, 0xc820173860, 0xc8200265b0, 0xc8200265b8, 0xc820186dc0, 0x14, 0x0, 0xc82017f310)
/home/vagrant/mgmt/main.go:187 +0xd69
created by main.run
/home/vagrant/mgmt/main.go:245 +0x1f03
goroutine 8550 [select, locked to thread]:
runtime.gopark(0x1324250, 0xc8202abf28, 0x10f9198, 0x6, 0x18, 0x2)
/usr/lib/go/src/runtime/proc.go:185 +0x163
runtime.selectgoImpl(0xc8202abf28, 0x0, 0x18)
/usr/lib/go/src/runtime/select.go:392 +0xa64
runtime.selectgo(0xc8202abf28)
/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