{"action":"opened","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1015","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1015/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1015/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1015/events","html_url":"https://github.com/couchbase/sync_gateway/issues/1015","id":98375984,"number":1015,"title":"Syncgateway is not getting started. panic: runtime error: assignment to entry in nil map","user":{"login":"keshavkatwe","id":4088314,"avatar_url":"https://avatars.githubusercontent.com/u/4088314?v=3","gravatar_id":"","url":"https://api.github.com/users/keshavkatwe","html_url":"https://github.com/keshavkatwe","followers_url":"https://api.github.com/users/keshavkatwe/followers","following_url":"https://api.github.com/users/keshavkatwe/following{/other_user}","gists_url":"https://api.github.com/users/keshavkatwe/gists{/gist_id}","starred_url":"https://api.github.com/users/keshavkatwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keshavkatwe/subscriptions","organizations_url":"https://api.github.com/users/keshavkatwe/orgs","repos_url":"https://api.github.com/users/keshavkatwe/repos","events_url":"https://api.github.com/users/keshavkatwe/events{/privacy}","received_events_url":"https://api.github.com/users/keshavkatwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T11:53:37Z","updated_at":"2015-07-31T11:53:37Z","closed_at":null,"body":"11:43:43.742135 Starting admin server on 127.0.0.1:4985\r\n11:43:43.749574 Starting server on :4984 ...\r\npanic: runtime error: assignment to entry in nil map\r\n\r\ngoroutine 50 [running]:\r\nruntime.panic(0x903120, 0x11cb93d)\r\n\t/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6\r\ngithub.com/couchbaselabs/sync_gateway/db.func·019(0xc21021d600, 0x58, 0xc210266004, 0x257)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/shadower.go:121 +0x3b0\r\ngithub.com/couchbaselabs/sync_gateway/db.func·013(0xc210266004, 0x257, 0x257, 0x0, 0x0, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/crud.go:472 +0x283\r\ngithub.com/couchbaselabs/sync_gateway/base.func·001(0xc210266004, 0x257, 0x257, 0x0, 0x0, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/bucket.go:67 +0x7a\r\ngithub.com/couchbaselabs/go-couchbase.func·013(0xc210266004, 0x257, 0x257, 0x0, 0x0, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/client.go:584 +0x92\r\ngithub.com/couchbaselabs/go-couchbase.(*Bucket).update(0xc2100ac780, 0xc21024fc00, 0x58, 0x0, 0x7ffaca7a6aa8, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/client.go:565 +0xac\r\ngithub.com/couchbaselabs/go-couchbase.(*Bucket).WriteUpdate(0xc2100ac780, 0xc21024fc00, 0x58, 0x0, 0x7ffaca7a6b08, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/client.go:589 +0xa6\r\ngithub.com/couchbaselabs/sync_gateway/base.couchbaseBucket.WriteUpdate(0xc2100ac780, 0xc21024fc00, 0x58, 0x0, 0xc21029f700, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/bucket.go:71 +0x7a\r\ngithub.com/couchbaselabs/sync_gateway/db.(*Database).updateDoc(0xc2101c2280, 0xc21024fc00, 0x58, 0x928200, 0xc2102a3e40, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/crud.go:596 +0x369\r\ngithub.com/couchbaselabs/sync_gateway/db.(*Shadower).pullDocument(0xc2101a1a40, 0xc21024fc00, 0x58, 0xc2102b39f1, 0x4, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/shadower.go:132 +0x20a\r\ngithub.com/couchbaselabs/sync_gateway/db.(*Shadower).readTapFeed(0xc2101a1a40)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/shadower.go:77 +0x275\r\ncreated by github.com/couchbaselabs/sync_gateway/db.NewShadower\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/shadower.go:36 +0x117\r\n\r\ngoroutine 1 [IO wait]:\r\nnet.runtime_pollWait(0x7ffaca94db78, 0x72, 0x0)\r\n\t/usr/local/go/src/pkg/runtime/netpoll.goc:116 +0x6a\r\nnet.(*pollDesc).Wait(0xc2101bbed0, 0x72, 0x7ffaca94c0c0, 0xb)\r\n\t/usr/local/go/src/pkg/net/fd_poll_runtime.go:81 +0x34\r\nnet.(*pollDesc).WaitRead(0xc2101bbed0, 0xb, 0x7ffaca94c0c0)\r\n\t/usr/local/go/src/pkg/net/fd_poll_runtime.go:86 +0x30\r\nnet.(*netFD).accept(0xc2101bbe70, 0xab9170, 0x0, 0x7ffaca94c0c0, 0xb)\r\n\t/usr/local/go/src/pkg/net/fd_unix.go:382 +0x2c2\r\nnet.(*TCPListener).AcceptTCP(0xc2101bea78, 0x18, 0xc210043050, 0x473f43)\r\n\t/usr/local/go/src/pkg/net/tcpsock_posix.go:233 +0x47\r\nnet.(*TCPListener).Accept(0xc2101bea78, 0x50, 0x9b6800, 0x3, 0x998900)\r\n\t/usr/local/go/src/pkg/net/tcpsock_posix.go:243 +0x27\r\nnet/http.(*Server).Serve(0xc2101bc0a0, 0x7ffaca9573d8, 0xc2101bea78, 0x0, 0x0)\r\n\t/usr/local/go/src/pkg/net/http/server.go:1622 +0x91\r\ngithub.com/couchbaselabs/sync_gateway/base.ListenAndServeHTTP(0x998900, 0x5, 0x0, 0x0, 0x0, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/http_listener.go:52 +0x3ee\r\ngithub.com/couchbaselabs/sync_gateway/rest.(*ServerConfig).serve(0xc210083300, 0x998900, 0x5, 0x7ffaca94c2e0, 0xc2101d32c0)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/rest/config.go:390 +0xa7\r\ngithub.com/couchbaselabs/sync_gateway/rest.RunServer(0xc210083300)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/rest/config.go:430 +0x6e9\r\ngithub.com/couchbaselabs/sync_gateway/rest.ServerMain()\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/rest/config.go:436 +0x2b\r\nmain.main()\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/main.go:16 +0x1a\r\n\r\ngoroutine 23 [sleep]:\r\ntime.Sleep(0x9502f900)\r\n\t/usr/local/go/src/pkg/runtime/time.goc:31 +0x31\r\ngithub.com/couchbaselabs/sync_gateway/db.func·003()\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/change_cache.go:68 +0x62\r\ncreated by github.com/couchbaselabs/sync_gateway/db.(*changeCache).Init\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/change_cache.go:70 +0x1be\r\n\r\ngoroutine 24 [select]:\r\ngithub.com/couchbaselabs/go-couchbase.(*TapFeed).run(0xc21007eec0)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:55 +0x2f9\r\ncreated by github.com/couchbaselabs/go-couchbase.(*Bucket).StartTapFeed\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:39 +0x14a\r\n\r\ngoroutine 25 [chan receive]:\r\ngithub.com/couchbaselabs/sync_gateway/base.func·002()\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/bucket.go:94 +0x53\r\ncreated by github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.StartTapFeed\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/bucket.go:104 +0x1bd\r\n\r\ngoroutine 26 [chan receive]:\r\ngithub.com/couchbaselabs/sync_gateway/db.func·006()\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/change_listener.go:49 +0xb5\r\ncreated by github.com/couchbaselabs/sync_gateway/db.(*changeListener).Start\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/change_listener.go:66 +0x25e\r\n\r\ngoroutine 27 [chan receive]:\r\ngithub.com/couchbaselabs/sync_gateway/db.(*DatabaseContext).watchDocChanges(0xc2100b2b40)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/assimilator.go:16 +0xa5\r\ncreated by github.com/couchbaselabs/sync_gateway/db.NewDatabaseContext\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/db/database.go:114 +0x339\r\n\r\ngoroutine 29 [IO wait]:\r\nnet.runtime_pollWait(0x7ffaca94dc20, 0x72, 0x0)\r\n\t/usr/local/go/src/pkg/runtime/netpoll.goc:116 +0x6a\r\nnet.(*pollDesc).Wait(0xc2100d08b0, 0x72, 0x7ffaca94c0c0, 0xb)\r\n\t/usr/local/go/src/pkg/net/fd_poll_runtime.go:81 +0x34\r\nnet.(*pollDesc).WaitRead(0xc2100d08b0, 0xb, 0x7ffaca94c0c0)\r\n\t/usr/local/go/src/pkg/net/fd_poll_runtime.go:86 +0x30\r\nnet.(*netFD).Read(0xc2100d0850, 0xc21016eda0, 0x18, 0x18, 0x0, ...)\r\n\t/usr/local/go/src/pkg/net/fd_unix.go:204 +0x2a0\r\nnet.(*conn).Read(0xc21016b298, 0xc21016eda0, 0x18, 0x18, 0x25, ...)\r\n\t/usr/local/go/src/pkg/net/net.go:122 +0xc5\r\nio.ReadAtLeast(0x7ffaca94dcf0, 0xc21016b298, 0xc21016eda0, 0x18, 0x18, ...)\r\n\t/usr/local/go/src/pkg/io/io.go:288 +0xf6\r\nio.ReadFull(0x7ffaca94dcf0, 0xc21016b298, 0xc21016eda0, 0x18, 0x18, ...)\r\n\t/usr/local/go/src/pkg/io/io.go:306 +0x71\r\ngithub.com/dustin/gomemcached.(*MCRequest).Receive(0xc21017d900, 0x7ffaca94dcf0, 0xc21016b298, 0xc21016eda0, 0x18, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/dustin/gomemcached/mc_req.go:129 +0xdf\r\ngithub.com/dustin/gomemcached/client.(*Client).runFeed(0xc210082810, 0xc21017d300, 0xc21016ed60)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/dustin/gomemcached/client/tap_feed.go:270 +0x11c\r\ncreated by github.com/dustin/gomemcached/client.(*Client).StartTapFeed\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/dustin/gomemcached/client/tap_feed.go:251 +0x215\r\n\r\ngoroutine 30 [select]:\r\ngithub.com/couchbaselabs/go-couchbase.(*TapFeed).forwardTapEvents(0xc21007eec0, 0xc21016ed60, 0xc21005f240, 0xc2100fc8c0, 0x11)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:101 +0x249\r\ncreated by github.com/couchbaselabs/go-couchbase.(*TapFeed).connectToNodes\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:93 +0x367\r\n\r\ngoroutine 48 [select]:\r\ngithub.com/couchbaselabs/go-couchbase.(*TapFeed).run(0xc2101a1a00)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:55 +0x2f9\r\ncreated by github.com/couchbaselabs/go-couchbase.(*Bucket).StartTapFeed\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:39 +0x14a\r\n\r\ngoroutine 49 [runnable]:\r\ngithub.com/couchbaselabs/sync_gateway/base.func·002()\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/bucket.go:102 +0x15e\r\ncreated by github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.StartTapFeed\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/bucket.go:104 +0x1bd\r\n\r\ngoroutine 51 [IO wait]:\r\nnet.runtime_pollWait(0x7ffaca94dad0, 0x72, 0x0)\r\n\t/usr/local/go/src/pkg/runtime/netpoll.goc:116 +0x6a\r\nnet.(*pollDesc).Wait(0xc210151060, 0x72, 0x7ffaca94c0c0, 0xb)\r\n\t/usr/local/go/src/pkg/net/fd_poll_runtime.go:81 +0x34\r\nnet.(*pollDesc).WaitRead(0xc210151060, 0xb, 0x7ffaca94c0c0)\r\n\t/usr/local/go/src/pkg/net/fd_poll_runtime.go:86 +0x30\r\nnet.(*netFD).accept(0xc210151000, 0xab9170, 0x0, 0x7ffaca94c0c0, 0xb)\r\n\t/usr/local/go/src/pkg/net/fd_unix.go:382 +0x2c2\r\nnet.(*TCPListener).AcceptTCP(0xc2101beaa0, 0x18, 0xc2101ec050, 0x473f43)\r\n\t/usr/local/go/src/pkg/net/tcpsock_posix.go:233 +0x47\r\nnet.(*TCPListener).Accept(0xc2101beaa0, 0x50, 0x9b6800, 0x3, 0x9bf210)\r\n\t/usr/local/go/src/pkg/net/tcpsock_posix.go:243 +0x27\r\nnet/http.(*Server).Serve(0xc2101bc0f0, 0x7ffaca9573d8, 0xc2101beaa0, 0x0, 0x0)\r\n\t/usr/local/go/src/pkg/net/http/server.go:1622 +0x91\r\ngithub.com/couchbaselabs/sync_gateway/base.ListenAndServeHTTP(0x9bf210, 0xe, 0x0, 0x0, 0x0, ...)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/base/http_listener.go:52 +0x3ee\r\ngithub.com/couchbaselabs/sync_gateway/rest.(*ServerConfig).serve(0xc210083300, 0x9bf210, 0xe, 0x7ffaca94c2e0, 0xc2101e3cc0)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/rest/config.go:390 +0xa7\r\ncreated by github.com/couchbaselabs/sync_gateway/rest.RunServer\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/src/github.com/couchbaselabs/sync_gateway/rest/config.go:428 +0x5ce\r\n\r\ngoroutine 52 [runnable]:\r\ngithub.com/dustin/gomemcached/client.(*Client).runFeed(0xc2101a0600, 0xc210199ae0, 0xc2101d34c0)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/dustin/gomemcached/client/tap_feed.go:297 +0x5c3\r\ncreated by github.com/dustin/gomemcached/client.(*Client).StartTapFeed\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/dustin/gomemcached/client/tap_feed.go:251 +0x215\r\n\r\ngoroutine 53 [select]:\r\ngithub.com/couchbaselabs/go-couchbase.(*TapFeed).forwardTapEvents(0xc2101a1a00, 0xc2101d34c0, 0xc2102159c0, 0xc2101b4d80, 0x11)\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:101 +0x249\r\ncreated by github.com/couchbaselabs/go-couchbase.(*TapFeed).connectToNodes\r\n\t/data/jenkins/workspace/build_sync_gateway_103_centos-x64/app-under-test/sync_gateway/vendor/src/github.com/couchbaselabs/go-couchbase/tap.go:93 +0x367\r\n"}}