{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/640","repository_url":"https://api.github.com/repos/openshift/source-to-image","labels_url":"https://api.github.com/repos/openshift/source-to-image/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/openshift/source-to-image/issues/640/comments","events_url":"https://api.github.com/repos/openshift/source-to-image/issues/640/events","html_url":"https://github.com/openshift/source-to-image/issues/640","id":190877543,"number":640,"title":"panic: runtime error: invalid memory address or nil pointer dereference on Linux x86_64","user":{"login":"rafaeltuelho","id":39063,"avatar_url":"https://avatars.githubusercontent.com/u/39063?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaeltuelho","html_url":"https://github.com/rafaeltuelho","followers_url":"https://api.github.com/users/rafaeltuelho/followers","following_url":"https://api.github.com/users/rafaeltuelho/following{/other_user}","gists_url":"https://api.github.com/users/rafaeltuelho/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaeltuelho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaeltuelho/subscriptions","organizations_url":"https://api.github.com/users/rafaeltuelho/orgs","repos_url":"https://api.github.com/users/rafaeltuelho/repos","events_url":"https://api.github.com/users/rafaeltuelho/events{/privacy}","received_events_url":"https://api.github.com/users/rafaeltuelho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T00:43:43Z","updated_at":"2016-11-22T14:38:50Z","closed_at":null,"body":"using release `v1.1.3`...\r\n\r\n`s2i build https://github.com/pmorie/simple-ruby.git openshift/ruby-20-centos7 test-ruby-app`\r\n\r\nI get...\r\n\r\n```\r\nerror: Unable to load docker config\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4ef3a0]\r\n\r\ngoroutine 1 [running]:\r\npanic(0x7c26e0, 0xc420012160)\r\n\t/usr/local/go/src/runtime/panic.go:500 +0x1a1\r\ngithub.com/openshift/source-to-image/pkg/docker.GetImageRegistryAuth(0x0, 0x7fff89f4c978, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n\t/home/rsoares/Downloads/gocode/src/github.com/openshift/source-to-image/_output/local/go/src/github.com/openshift/source-to-image/pkg/docker/util.go:67 +0x250\r\nmain.newCmdBuild.func1(0xc420097200, 0xc4202a41e0, 0x3, 0x3)\r\n\t/home/rsoares/Downloads/gocode/src/github.com/openshift/source-to-image/_output/local/go/src/github.com/openshift/source-to-image/cmd/s2i/main.go:118 +0x1003\r\ngithub.com/openshift/source-to-image/vendor/github.com/spf13/cobra.(*Command).execute(0xc420097200, 0xc4202a4150, 0x3, 0x3, 0xc420097200, 0xc4202a4150)\r\n\t/home/rsoares/Downloads/gocode/src/github.com/openshift/source-to-image/_output/local/go/src/github.com/openshift/source-to-image/vendor/github.com/spf13/cobra/command.go:603 +0x439\r\ngithub.com/openshift/source-to-image/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420096d80, 0xc420183eb0, 0xc4202593d0, 0xc420097b00)\r\n\t/home/rsoares/Downloads/gocode/src/github.com/openshift/source-to-image/_output/local/go/src/github.com/openshift/source-to-image/vendor/github.com/spf13/cobra/command.go:689 +0x367\r\ngithub.com/openshift/source-to-image/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420096d80, 0xc420183ea8, 0x1)\r\n\t/home/rsoares/Downloads/gocode/src/github.com/openshift/source-to-image/_output/local/go/src/github.com/openshift/source-to-image/vendor/github.com/spf13/cobra/command.go:648 +0x2b\r\nmain.main()\r\n\t/home/rsoares/Downloads/gocode/src/github.com/openshift/source-to-image/_output/local/go/src/github.com/openshift/source-to-image/cmd/s2i/main.go:415 +0x660\r\n```\r\n\r\nMy env is:\r\n\r\n```\r\nuname -a                                                                                                                                                               2 ↵\r\nLinux rsoares 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\n```\r\nlsb_release -a\r\nLSB Version:\t:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch\r\nDistributor ID:\tRedHatEnterpriseWorkstation\r\nDescription:\tRed Hat Enterprise Linux Workstation release 7.3 (Maipo)\r\nRelease:\t7.3\r\nCodename:\tMaipo\r\n```\r\n\r\n```\r\ndocker version\r\nClient:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n```\r\n\r\nI tested with the linux binary s2i and tried to compile manually. Both fails."},"comment":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/comments/262257213","html_url":"https://github.com/openshift/source-to-image/issues/640#issuecomment-262257213","issue_url":"https://api.github.com/repos/openshift/source-to-image/issues/640","id":262257213,"user":{"login":"rafaeltuelho","id":39063,"avatar_url":"https://avatars.githubusercontent.com/u/39063?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaeltuelho","html_url":"https://github.com/rafaeltuelho","followers_url":"https://api.github.com/users/rafaeltuelho/followers","following_url":"https://api.github.com/users/rafaeltuelho/following{/other_user}","gists_url":"https://api.github.com/users/rafaeltuelho/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaeltuelho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaeltuelho/subscriptions","organizations_url":"https://api.github.com/users/rafaeltuelho/orgs","repos_url":"https://api.github.com/users/rafaeltuelho/repos","events_url":"https://api.github.com/users/rafaeltuelho/events{/privacy}","received_events_url":"https://api.github.com/users/rafaeltuelho/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T14:38:50Z","updated_at":"2016-11-22T14:38:50Z","body":"My docker config has only this:\r\n\r\n```\r\ncat ~/.docker/config.json \r\n{\r\n\t\"auths\": {}\r\n}%\r\n```\r\n\r\nThe docker unit on Systemd:\r\n\r\n```\r\ncat /usr/lib/systemd/system/docker.service\r\n[Unit]\r\nDescription=Docker Application Container Engine\r\nDocumentation=https://docs.docker.com\r\nAfter=network.target\r\n\r\n[Service]\r\nType=notify\r\n# the default is not to use systemd for cgroups because the delegate issues still\r\n# exists and systemd currently does not support the cgroup feature set required\r\n# for containers run by docker\r\n#ExecStart=/usr/bin/dockerd\r\nExecStart=/usr/bin/dockerd --insecure-registry 172.30.0.0/16 --bip=172.17.42.1/16 -g /docker-storage\r\nExecReload=/bin/kill -s HUP $MAINPID\r\n# Having non-zero Limit*s causes performance problems due to accounting overhead\r\n# in the kernel. We recommend using cgroups to do container-local accounting.\r\nLimitNOFILE=infinity\r\nLimitNPROC=infinity\r\nLimitCORE=infinity\r\n# Uncomment TasksMax if your systemd version supports it.\r\n# Only systemd 226 and above support this version.\r\n#TasksMax=infinity\r\nTimeoutStartSec=0\r\n# set delegate yes so that systemd does not reset the cgroups of docker containers\r\nDelegate=yes\r\n# kill only the docker process, not all processes in the cgroup\r\nKillMode=process\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```"}}
{"actor":{"display_login":"rafaeltuelho"}}