{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/854","repository_url":"https://api.github.com/repos/openshift/source-to-image","labels_url":"https://api.github.com/repos/openshift/source-to-image/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/openshift/source-to-image/issues/854/comments","events_url":"https://api.github.com/repos/openshift/source-to-image/issues/854/events","html_url":"https://github.com/openshift/source-to-image/issues/854","id":301826603,"number":854,"title":"GitHub clone failing","user":{"login":"cvschleich","id":609017,"avatar_url":"https://avatars2.githubusercontent.com/u/609017?v=4","gravatar_id":"","url":"https://api.github.com/users/cvschleich","html_url":"https://github.com/cvschleich","followers_url":"https://api.github.com/users/cvschleich/followers","following_url":"https://api.github.com/users/cvschleich/following{/other_user}","gists_url":"https://api.github.com/users/cvschleich/gists{/gist_id}","starred_url":"https://api.github.com/users/cvschleich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvschleich/subscriptions","organizations_url":"https://api.github.com/users/cvschleich/orgs","repos_url":"https://api.github.com/users/cvschleich/repos","events_url":"https://api.github.com/users/cvschleich/events{/privacy}","received_events_url":"https://api.github.com/users/cvschleich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-02T16:33:23Z","updated_at":"2018-03-02T21:56:25Z","closed_at":null,"author_association":"NONE","body":"Hello! I've tried a number of times to get the S2I working with my private GitHub repository. I've followed a few tutorials, and have thus far failed to successfully have it clone. I have my deploy key at github, and it's configured as the source secret in OpenShift, but still fails. Here's a level 5 log excerpt:\r\n\r\n`I0302 16:13:58.914761       1 builder.go:74] redacted build: {\"kind\":\"Build\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"teamtextingalpha-4\",\"namespace\":\"teamtextingalpha\",\"selfLink\":\"/apis/build.openshift.io/v1/namespaces/teamtextingalpha/builds/teamtextingalpha-4\",\"uid\":\"b187054b-1e34-11e8-84c7-122631632f42\",\"resourceVersion\":\"2292019676\",\"creationTimestamp\":\"2018-03-02T16:13:50Z\",\"labels\":{\"app\":\"teamtextingalpha\",\"buildconfig\":\"teamtextingalpha\",\"openshift.io/build-config.name\":\"teamtextingalpha\",\"openshift.io/build.start-policy\":\"Serial\"},\"annotations\":{\"openshift.io/build-config.name\":\"teamtextingalpha\",\"openshift.io/build.number\":\"4\"},\"ownerReferences\":[{\"apiVersion\":\"build.openshift.io/v1\",\"kind\":\"BuildConfig\",\"name\":\"teamtextingalpha\",\"uid\":\"07aa9014-1e33-11e8-9f6d-1250f17a13c8\",\"controller\":true}]},\"spec\":{\"serviceAccount\":\"builder\",\"source\":{\"type\":\"Git\",\"git\":{\"uri\":\"https://github.com/cvschleich/WebTexting.git\",\"ref\":\"master\"},\"sourceSecret\":{\"name\":\"repo-at-github\"}},\"strategy\":{\"type\":\"Source\",\"sourceStrategy\":{\"from\":{\"kind\":\"DockerImage\",\"name\":\"registry.access.redhat.com/rhscl/nodejs-4-rhel7@sha256:8301eefce7dd846a943b4b01f351b1baadee28c897ce38bf4564c87c6d0c9c45\"},\"env\":[{\"name\":\"BUILD_LOGLEVEL\",\"value\":\"5\"}],\"forcePull\":true}},\"output\":{\"to\":{\"kind\":\"DockerImage\",\"name\":\"172.30.208.107:5000/teamtextingalpha/teamtextingalpha:latest\"},\"pushSecret\":{\"name\":\"builder-dockercfg-dhrxq\"}},\"resources\":{},\"postCommit\":{},\"nodeSelector\":null,\"triggeredBy\":[{\"message\":\"Manually  triggered\"}]},\"status\":{\"phase\":\"New\",\"outputDockerImageReference\":\"172.30.208.107:5000/teamtextingalpha/teamtextingalpha:latest\",\"config\":{\"kind\":\"BuildConfig\",\"namespace\":\"teamtextingalpha\",\"name\":\"teamtextingalpha\"},\"output\":{}}}\r\nI0302 16:13:58.930521       1 builder.go:85] Master version \"v3.7.23\", Builder version \"v3.7.23\"\r\nI0302 16:13:58.931089       1 scmauths.go:29] Finding auth for \"..3983_02_03_16_13_52.190249061\"\r\nI0302 16:13:58.931100       1 scmauths.go:29] Finding auth for \"..data\"\r\nI0302 16:13:58.931105       1 scmauths.go:29] Finding auth for \"ssh-privatekey\"\r\nI0302 16:13:58.931111       1 scmauths.go:32] Found SCMAuth \"ssh-privatekey\" to handle \"ssh-privatekey\"\r\nI0302 16:13:58.931121       1 scmauths.go:47] Setting up SCMAuth \"ssh-privatekey\"\r\nI0302 16:13:58.931965       1 sshkey.go:30] Adding Private SSH Auth:\r\n#!/bin/sh\r\nssh -i /var/run/secrets/openshift.io/source/ssh-privatekey -o StrictHostKeyChecking=false \"$@\"\r\n\r\nCloning \"https://github.com/cvschleich/WebTexting.git \" ...\r\nI0302 16:13:58.932744       1 source.go:167] git ls-remote --heads https://github.com/cvschleich/WebTexting.git \r\nI0302 16:13:58.932763       1 repository.go:385] Executing git ls-remote --heads https://github.com/cvschleich/WebTexting.git \r\nI0302 16:13:59.353941       1 repository.go:453] Error executing command: exit status 128\r\nI0302 16:13:59.354056       1 source.go:173] remote: Repository not found.\r\nfatal: Authentication failed for 'https://github.com/cvschleich/WebTexting.git/' \r\nF0302 16:13:59.463665       1 helpers.go:120] error: failed to fetch requested repository \"https://github.com/cvschleich/WebTexting.git \" with provided credentials\r\n`\r\n\r\nAny idea what I'm doing wrong?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/comments/370064264","html_url":"https://github.com/openshift/source-to-image/issues/854#issuecomment-370064264","issue_url":"https://api.github.com/repos/openshift/source-to-image/issues/854","id":370064264,"user":{"login":"cvschleich","id":609017,"avatar_url":"https://avatars2.githubusercontent.com/u/609017?v=4","gravatar_id":"","url":"https://api.github.com/users/cvschleich","html_url":"https://github.com/cvschleich","followers_url":"https://api.github.com/users/cvschleich/followers","following_url":"https://api.github.com/users/cvschleich/following{/other_user}","gists_url":"https://api.github.com/users/cvschleich/gists{/gist_id}","starred_url":"https://api.github.com/users/cvschleich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvschleich/subscriptions","organizations_url":"https://api.github.com/users/cvschleich/orgs","repos_url":"https://api.github.com/users/cvschleich/repos","events_url":"https://api.github.com/users/cvschleich/events{/privacy}","received_events_url":"https://api.github.com/users/cvschleich/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T21:56:25Z","updated_at":"2018-03-02T21:56:25Z","author_association":"NONE","body":"Ah. Sorry about that. I followed the instructions as in the link above. Namely: \r\n\r\n> Click on the Create Secret button in the top right corner. This will bring up a form to enter in the details of the secret corresponding to the SSH private key.\r\n> \r\n> On this form you need to set the following:\r\n> \r\n> Ensure that the Secret Type is Source Secret.\r\n> Set the Secret Name. In this case, we are using repo-at-github.\r\n> Ensure that the Authentication Type is SSH Key.\r\n> Upload or paste in the contents of the private key file. This is the file without the .pub extension. In this case, the repo-at-github file.\r\n> Enable the Link secret to a service account option.\r\n> Ensure that the Service Account is set to builder.\r\n\r\nAnd yes, it clones locally just fine. Just reconfirmed. Thanks so much for your help!"}}
{"actor":{"display_login":"cvschleich"}}