{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry-incubator/garden-linux/issues/31","labels_url":"https://api.github.com/repos/cloudfoundry-incubator/garden-linux/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/garden-linux/issues/31/comments","events_url":"https://api.github.com/repos/cloudfoundry-incubator/garden-linux/issues/31/events","html_url":"https://github.com/cloudfoundry-incubator/garden-linux/issues/31","id":66255711,"number":31,"title":"Garden should work with a private registry that has a CA signed cert","user":{"login":"onsi","id":558230,"avatar_url":"https://avatars.githubusercontent.com/u/558230?v=3","gravatar_id":"","url":"https://api.github.com/users/onsi","html_url":"https://github.com/onsi","followers_url":"https://api.github.com/users/onsi/followers","following_url":"https://api.github.com/users/onsi/following{/other_user}","gists_url":"https://api.github.com/users/onsi/gists{/gist_id}","starred_url":"https://api.github.com/users/onsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onsi/subscriptions","organizations_url":"https://api.github.com/users/onsi/orgs","repos_url":"https://api.github.com/users/onsi/repos","events_url":"https://api.github.com/users/onsi/events{/privacy}","received_events_url":"https://api.github.com/users/onsi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-04T00:25:30Z","updated_at":"2015-05-22T17:50:40Z","closed_at":null,"body":"It currently explodes.  Someone running a private registry tried to fetch the Docker image using Lattice and got:\r\n\r\n```\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] 2015/03/29 12:51:18 http: panic serving 127.0.0.1:41233: runtime error: invalid memory address or nil pointer dereference\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] goroutine 2028 [running]:\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] net/http.func·011()\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/usr/local/go/src/net/http/server.go:1130 +0xbb\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/docker/docker/registry.NewSession(0x0, 0x0, 0xc20821e240, 0x1, 0xc2081bb3e0, 0x0, 0x0)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/Godeps/_workspace/src/github.com/docker/docker/registry/session.go:58 +0x75a\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher.registryProvider.ProvideRegistry(0xa72110, 0x1b, 0xc208160960, 0x1, 0x1, 0xc20820ae19, 0x23, 0x0, 0x0, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher/repository_provider.go:49 +0x2ff\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher.(*registryProvider).ProvideRegistry(0xc2081688a0, 0xc20820ae19, 0x23, 0x0, 0x0, 0x0, 0x0)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t<autogenerated>:14 +0xe1\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher.(*DockerRepositoryFetcher).Fetch(0xc2081688d0, 0x7f0f92528ad8, 0xc208310840, 0xc20815ef50, 0xc20820ae4d, 0x6, 0x0, 0x0, 0xc208205660, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher/repository_fetcher.go:101 +0x324\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher.Retryable.Fetch(0x7f0f9252a260, 0xc2081688d0, 0x7f0f92528ad8, 0xc208310840, 0xc20815ef50, 0xc20820ae4d, 0x6, 0x0, 0x0, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher/retryable.go:21 +0x15b\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/repository_fetcher.(*Retryable).Fetch(0xc208160970, 0x7f0f92528ad8, 0xc208310840, 0xc20815ef50, 0xc20820ae4d, 0x6, 0x0, 0x0, 0x7f0f92516000, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t<autogenerated>:15 +0x141\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/rootfs_provider.(*dockerRootFSProvider).ProvideRootFS(0xc2080314a0, 0x7f0f92528ad8, 0xc208310840, 0xc2082a8ed0, 0xb, 0xc20815ef50, 0x0, 0x0, 0xc20808e660, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/rootfs_provider/docker_rootfs_provider.go:56 +0x13e\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/container_pool.(*LinuxContainerPool).acquireSystemResources(0xc20816e000, 0xc2082a8ed0, 0xb, 0xc2083af040, 0x34, 0xc208326a20, 0x25, 0xc20820ae10, 0x43, 0xc2083107e0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/container_pool/container_pool.go:567 +0x6c9\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/container_pool.(*LinuxContainerPool).Create(0xc20816e000, 0xc2083af040, 0x34, 0x34630b8a000, 0xc20820ae10, 0x43, 0x0, 0x0, 0x0, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/container_pool/container_pool.go:252 +0x4b6\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden-linux/old/linux_backend.(*LinuxBackend).Create(0xc208031540, 0xc2083af040, 0x34, 0x34630b8a000, 0xc20820ae10, 0x43, 0x0, 0x0, 0x0, 0x0, ...)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/old/linux_backend/linux_backend.go:151 +0x1a3\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden/server.(*GardenServer).handleCreate(0xc208066800, 0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/Godeps/_workspace/src/github.com/cloudfoundry-incubator/garden/server/request_handling.go:61 +0x309\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden/server.*GardenServer.(github.com/cloudfoundry-incubator/garden/server.handleCreate)·fm(0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/Godeps/_workspace/src/github.com/cloudfoundry-incubator/garden/server/server.go:79 +0x45\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] net/http.HandlerFunc.ServeHTTP(0xc208160d60, 0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/usr/local/go/src/net/http/server.go:1265 +0x41\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP(0xc20802e160, 0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/Godeps/_workspace/src/github.com/bmizerany/pat/mux.go:109 +0x21c\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] github.com/cloudfoundry-incubator/garden/server.func·002(0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/workspace/diego-release/src/github.com/cloudfoundry-incubator/garden-linux/Godeps/_workspace/src/github.com/cloudfoundry-incubator/garden/server/server.go:115 +0x57\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] net/http.HandlerFunc.ServeHTTP(0xc208160f90, 0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/usr/local/go/src/net/http/server.go:1265 +0x41\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] net/http.serverHandler.ServeHTTP(0xc208066810, 0x7f0f9252ab28, 0xc20812a1e0, 0xc2081c5d40)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/usr/local/go/src/net/http/server.go:1703 +0x19a\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] net/http.(*conn).serve(0xc20812a140)\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/usr/local/go/src/net/http/server.go:1204 +0xb57\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] created by net/http.(*Server).Serve\r\n29 Mar 13:51 [garden-linux|lattice-cell-01] \t/usr/local/go/src/net/http/server.go:1751 +0x35e\r\n29 Mar 13:51 [executor|lattice-cell-01] {\"timestamp\":\"1427633478.838733673\",\"source\":\"executor\",\"message\":\"executor.request.depot-client.run-container.create-in-garden.failed-creating-garden-container\",\"log_level\":2,\"data\":{\"container-guid\":\"affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1\",\"error\":\"Posthttp://api/containers: EOF\",\"guid\":\"affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1\",\"method\":\"POST\",\"request\":\"/containers/affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1/run?%3Aguid=affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1\\u0026\",\"session\":\"405.1.1.1\"}}\r\n29 Mar 13:51 [executor|lattice-cell-01] {\"timestamp\":\"1427633478.838890076\",\"source\":\"executor\",\"message\":\"executor.request.depot-client.run-container.failed-creating-container-in-garden\",\"log_level\":2,\"data\":{\"error\":\"Post http://api/containers: EOF\",\"guid\":\"affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1\",\"method\":\"POST\",\"request\":\"/containers/affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1/run?%3Aguid=affiliate-sales-0d26596a-08fe-40e3-715e-5b30d5517fe1\\u0026\",\"session\":\"405.1.1\"}}\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudfoundry-incubator/garden-linux/issues/comments/104727572","html_url":"https://github.com/cloudfoundry-incubator/garden-linux/issues/31#issuecomment-104727572","issue_url":"https://api.github.com/repos/cloudfoundry-incubator/garden-linux/issues/31","id":104727572,"user":{"login":"julz","id":354013,"avatar_url":"https://avatars.githubusercontent.com/u/354013?v=3","gravatar_id":"","url":"https://api.github.com/users/julz","html_url":"https://github.com/julz","followers_url":"https://api.github.com/users/julz/followers","following_url":"https://api.github.com/users/julz/following{/other_user}","gists_url":"https://api.github.com/users/julz/gists{/gist_id}","starred_url":"https://api.github.com/users/julz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julz/subscriptions","organizations_url":"https://api.github.com/users/julz/orgs","repos_url":"https://api.github.com/users/julz/repos","events_url":"https://api.github.com/users/julz/events{/privacy}","received_events_url":"https://api.github.com/users/julz/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T17:50:40Z","updated_at":"2015-05-22T17:50:40Z","body":"hi @caseyhadden I added a comment on the linked commit, but looks pretty close to me"}}