{"action":"opened","issue":{"url":"https://api.github.com/repos/coreos/flannel/issues/242","labels_url":"https://api.github.com/repos/coreos/flannel/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/coreos/flannel/issues/242/comments","events_url":"https://api.github.com/repos/coreos/flannel/issues/242/events","html_url":"https://github.com/coreos/flannel/issues/242","id":93971022,"number":242,"title":"panic: runtime error: invalid memory address or nil pointer dereference","user":{"login":"Pensu","id":4402424,"avatar_url":"https://avatars.githubusercontent.com/u/4402424?v=3","gravatar_id":"","url":"https://api.github.com/users/Pensu","html_url":"https://github.com/Pensu","followers_url":"https://api.github.com/users/Pensu/followers","following_url":"https://api.github.com/users/Pensu/following{/other_user}","gists_url":"https://api.github.com/users/Pensu/gists{/gist_id}","starred_url":"https://api.github.com/users/Pensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pensu/subscriptions","organizations_url":"https://api.github.com/users/Pensu/orgs","repos_url":"https://api.github.com/users/Pensu/repos","events_url":"https://api.github.com/users/Pensu/events{/privacy}","received_events_url":"https://api.github.com/users/Pensu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-09T06:48:16Z","updated_at":"2015-07-09T06:48:16Z","closed_at":null,"body":"So, I am trying to run flanneld on my ubuntu 15.04 system. I have build etcd and it is running fine:\r\n\r\n```pensu@ubuntu:~/etcd$ ./bin/etcd\r\n2015/07/9 01:21:01 etcdmain: setting maximum number of CPUs to 1, total number of available CPUs is 1\r\n2015/07/9 01:21:01 etcdmain: no data-dir provided, using default data-dir ./default.etcd\r\n2015/07/9 01:21:01 etcdmain: the server is already initialized as member before, starting as etcd member...\r\n2015/07/9 01:21:01 etcdmain: listening for peers on http://localhost:2380\r\n2015/07/9 01:21:01 etcdmain: listening for peers on http://localhost:7001\r\n2015/07/9 01:21:01 etcdmain: listening for client requests on http://localhost:2379\r\n2015/07/9 01:21:01 etcdmain: listening for client requests on http://localhost:4001\r\n2015/07/9 01:21:01 etcdserver: recovered store from snapshot at index 60006\r\n2015/07/9 01:21:01 etcdserver: name = default\r\n2015/07/9 01:21:01 etcdserver: data dir = default.etcd\r\n2015/07/9 01:21:01 etcdserver: member dir = default.etcd/member\r\n2015/07/9 01:21:01 etcdserver: heartbeat = 100ms\r\n2015/07/9 01:21:01 etcdserver: election = 1000ms\r\n2015/07/9 01:21:01 etcdserver: snapshot count = 10000\r\n2015/07/9 01:21:01 etcdserver: advertise client URLs = http://localhost:2379,http://localhost:4001\r\n2015/07/9 01:21:01 etcdserver: loaded cluster information from store: <nil>\r\n2015/07/9 01:21:01 etcdserver: restarting member ce2a822cea30bfca in cluster 7e27652122e8b2ae at commit index 63939\r\n2015/07/9 01:21:01 raft: ce2a822cea30bfca became follower at term 7\r\n2015/07/9 01:21:01 raft: newRaft ce2a822cea30bfca [peers: [ce2a822cea30bfca], term: 7, commit: 63939, applied: 60006, lastindex: 63939, lastterm: 7]\r\n2015/07/9 01:21:01 etcdserver: starting server... [version: 2.1.0-rc.0+git, cluster version: 2.1.0]\r\n2015/07/9 01:21:02 raft: ce2a822cea30bfca is starting a new election at term 7\r\n2015/07/9 01:21:02 raft: ce2a822cea30bfca became candidate at term 8\r\n2015/07/9 01:21:02 raft: ce2a822cea30bfca received vote from ce2a822cea30bfca at term 8\r\n2015/07/9 01:21:02 raft: ce2a822cea30bfca became leader at term 8\r\n2015/07/9 01:21:02 raft: raft.node: ce2a822cea30bfca elected leader ce2a822cea30bfca at term 8\r\n2015/07/9 01:21:02 etcdserver: published {Name:default ClientURLs:[http://localhost:2379 http://localhost:4001]} to cluster 7e27652122e8b2ae```\r\n\r\nNow, I build flannel and ran sudo ./bin/flanneld and I am getting run time error along with a bunch of goroutines:\r\n\r\n```go-etcd2015/07/09 01:40:23 DEBUG: recv.response.from \r\ngo-etcd2015/07/09 01:40:23 DEBUG: recv.success \r\nI0709 01:40:23.355832 02558 udp.go:247] Subnet added: 10.14.32.0/20\r\ngo-etcd2015/07/09 01:40:23 DEBUG: rawWatch /coreos.com/network/subnets []\r\ngo-etcd2015/07/09 01:40:23 DEBUG: get /coreos.com/network/subnets [http://127.0.0.1:4001]\r\ngo-etcd2015/07/09 01:40:23 DEBUG: Connecting to etcd: attempt 1 for keys/coreos.com/network/subnets?recursive=true&wait=true&waitIndex=129\r\ngo-etcd2015/07/09 01:40:23 DEBUG: send.request.to http://127.0.0.1:4001/v2/keys/coreos.com/network/subnets?recursive=true&wait=true&waitIndex=129 | method GET\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0]\r\n\r\ngoroutine 28 [running]:\r\nudp.setRoute\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/cproxy.go:66\r\ngithub_com_coreos_flannel_backend_udp.processSubnetEvents.pN48_github_com_coreos_flannel_backend_udp.UdpBackend\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:249\r\ngithub_com_coreos_flannel_backend_udp.monitorEvents.pN48_github_com_coreos_flannel_backend_udp.UdpBackend\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:235\r\ngithub_com_coreos_flannel_backend_udp.Run.pN48_github_com_coreos_flannel_backend_udp.UdpBackend\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:141\r\nnetwork.$nested4\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/network/network.go:109\r\ncreated by github_com_coreos_flannel_network.Run.pN41_github_com_coreos_flannel_network.Network\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/network/network.go:108\r\n\r\ngoroutine 16 [chan receive]:\r\nmain.main\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/main.go:288\r\ncreated by main\r\n\t../../../src/libgo/runtime/go-main.c:42\r\n\r\ngoroutine 18 [finalizer wait]:\r\ncreated by runtime_createfing\r\n\t../../../src/libgo/runtime/mgc0.c:2572\r\n\r\ngoroutine 19 [syscall]:\r\n\tgoroutine in C code; stack unavailable\r\ncreated by os_signal..import\r\n\t../../../src/libgo/go/os/signal/signal_unix.go:25\r\n\r\ngoroutine 20 [chan receive]:\r\ngithub_com_coreos_flannel_Godeps__workspace_src_github_com_golang_glog.flushDaemon.pN79_github_com_coreos_flannel_Godeps__workspace_src_github_com_golang_glog.loggingT\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog/glog.go:839\r\ncreated by glog.$init0\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog/glog.go:406\r\n\r\ngoroutine 24 [chan receive]:\r\ngithub_com_coreos_flannel_network.Run.pN41_github_com_coreos_flannel_network.Network\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/network/network.go:113\r\nmain.$nested2\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/main.go:217\r\ncreated by main.initAndRun\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/main.go:199\r\n\r\ngoroutine 26 [IO wait]:\r\nnet.runtime_pollWait\r\n\t../../../src/libgo/runtime/netpoll.goc:151\r\nnet.Wait.pN12_net.pollDesc\r\n\t../../../src/libgo/go/net/fd_poll_runtime.go:84\r\nnet.WaitRead.pN12_net.pollDesc\r\n\t../../../src/libgo/go/net/fd_poll_runtime.go:89\r\nnet.Read.pN9_net.netFD\r\n\t../../../src/libgo/go/net/fd_unix.go:242\r\nnet.Read.pN8_net.conn\r\n\t../../../src/libgo/go/net/net.go:121\r\nnet.Read.pN11_net.TCPConn\r\n\t../../../src/libgo/go/net/tcpsock_posix.go:57\r\nnet_http.Read.N22_net_http.noteEOFReader\r\n\t../../../src/libgo/go/net/http/transport.go:1270\r\nbufio.fill.pN12_bufio.Reader\r\n\t../../../src/libgo/go/bufio/bufio.go:97\r\nbufio.Peek.pN12_bufio.Reader\r\n\t../../../src/libgo/go/bufio/bufio.go:132\r\nnet_http.readLoop.pN20_net_http.persistConn\r\n\t../../../src/libgo/go/net/http/transport.go:842\r\ncreated by net_http.dialConn.pN18_net_http.Transport\r\n\t../../../src/libgo/go/net/http/transport.go:660\r\n\r\ngoroutine 27 [runnable]:\r\nnet_http.writeLoop.pN20_net_http.persistConn\r\n\t../../../src/libgo/go/net/http/transport.go:945\r\ncreated by net_http.dialConn.pN18_net_http.Transport\r\n\t../../../src/libgo/go/net/http/transport.go:661\r\n\r\ngoroutine 29 [syscall]:\r\n\tgoroutine in C code; stack unavailable\r\ncreated by github_com_coreos_flannel_backend_udp.Run.pN48_github_com_coreos_flannel_backend_udp.UdpBackend\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:131\r\n\r\ngoroutine 30 [select]:\r\ngithub_com_coreos_flannel_subnet.LeaseRenewer\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/subnet/renew.go:32\r\nudp.$nested1\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:137\r\ncreated by github_com_coreos_flannel_backend_udp.Run.pN48_github_com_coreos_flannel_backend_udp.UdpBackend\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:136\r\n\r\ngoroutine 31 [select]:\r\ngithub_com_coreos_flannel_subnet.watchSubnets.pN51_github_com_coreos_flannel_subnet.etcdSubnetRegistry\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/subnet/registry.go:151\r\ngithub_com_coreos_flannel_subnet.WatchLeases.pN44_github_com_coreos_flannel_subnet.EtcdManager\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/subnet/etcd.go:313\r\ngithub_com_coreos_flannel_subnet.WatchLeases\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/subnet/watch.go:33\r\nudp.$nested2\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:228\r\ncreated by github_com_coreos_flannel_backend_udp.monitorEvents.pN48_github_com_coreos_flannel_backend_udp.UdpBackend\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/backend/udp/udp.go:227\r\n\r\ngoroutine 33 [select]:\r\nnet_http.roundTrip.pN20_net_http.persistConn\r\n\t../../../src/libgo/go/net/http/transport.go:1082\r\nnet_http.RoundTrip.pN18_net_http.Transport\r\n\t../../../src/libgo/go/net/http/transport.go:235\r\nhttp.send\r\n\t../../../src/libgo/go/net/http/client.go:219\r\nnet_http.send.pN15_net_http.Client\r\n\t../../../src/libgo/go/net/http/client.go:142\r\nnet_http.doFollowingRedirects.pN15_net_http.Client\r\n\t../../../src/libgo/go/net/http/client.go:367\r\nnet_http.Do.pN15_net_http.Client\r\n\t../../../src/libgo/go/net/http/client.go:174\r\ngithub_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.SendRequest.pN85_github_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.Client\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/requests.go:238\r\ngithub_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.getCancelable.pN85_github_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.Client\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/requests.go:51\r\ngithub_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.watchOnce.pN85_github_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.Client\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/watch.go:96\r\ngithub_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.RawWatch.pN85_github_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.Client\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/watch.go:61\r\nsubnet.$nested0\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/subnet/registry.go:132\r\ncreated by github_com_coreos_flannel_subnet.watchSubnets.pN51_github_com_coreos_flannel_subnet.etcdSubnetRegistry\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/subnet/registry.go:129\r\n\r\ngoroutine 34 [runnable]:\r\ncreated by github_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.SendRequest.pN85_github_com_coreos_flannel_Godeps__workspace_src_github_com_coreos_go_etcd_etcd.Client\r\n\t/home/pensu/work/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/requests.go:146```\r\n\r\nI have created the config file too, any idea what could be causing this problem?\r\n"}}