Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: pulling environment repo failed to fork GitHub #3896

Closed
2 tasks
udbscience opened this issue May 8, 2019 · 21 comments
Closed
2 tasks

error: pulling environment repo failed to fork GitHub #3896

udbscience opened this issue May 8, 2019 · 21 comments
Labels
area/eks support for AWS EKS area/jenkins area/jenkins indicates the bug was reported against the "Classic Jenkins" installation type kind/bug Issue is a bug lifecycle/rotten priority/important-longterm

Comments

@udbscience
Copy link

Summary

jx promote fails

Steps to reproduce the behavior

jx promote -b --app ${APP} --env ${JX_ENV} --version ${VER}

Expected behavior

app get promoted

Actual behavior

pipeline xxx/xxxx/master
WARNING: Waiting for the fork of xxxx/environment-xx-xxxx to appear...
error: pulling environment repo https://xxxxxxxx into /home/ec2-user/.jx/environments: failed to fork GitHub repo xxxxx/xxxxx to user xxxxx: Gave up waiting for Repository xxxxx/environment-xx-xxxxx to appear: GET https://xxxxxx/api/v3/repos/xxxx/xxxx-xx-xxxxx: 404 Not Found []

Jx version

jx 2.0.102

The output of jx version is:

NAME               VERSION
jx                 2.0.102
jenkins x platform 2.0.191
Kubernetes cluster v1.12.6-eks-d69f1b
kubectl            v1.14.1
helm client        Client: v2.13.1+g618447c
git                git version 2.17.2

Jenkins type

  • Next Generation (Tekton + Prow)
  • [-] Classic Jenkins
  • Serverless Jenkins (JenkinsFileRunner + Prow)

Kubernetes cluster

EKS 1.12

Operating system / Environment

@athilaelhuno
Copy link

I have the same issue, any news about how we can fix

@ruzin
Copy link

ruzin commented May 23, 2019

same issue as well

@ruzin
Copy link

ruzin commented May 23, 2019

@jstrachan

@olektretiak
Copy link

olektretiak commented Jun 20, 2019

I have the same issue

NAME               VERSION
jx                 2.0.310
jenkins x platform 2.0.672
Kubernetes cluster v1.12.6-eks-d69f1b
kubectl            v1.14.3
helm client        Client: v2.14.1+g5270352
git                git version 2.14.5
Operating System   Unkown Linux distribution Linux version 4.9.17-8.31.amzn1.x86_64 (mockbuild@gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Sat Apr 1 01:22:16 UTC 2017

@deanesmith deanesmith added area/jenkins area/jenkins indicates the bug was reported against the "Classic Jenkins" installation type priority/backlog kind/bug Issue is a bug area/eks support for AWS EKS labels Jun 27, 2019
@imp20052904
Copy link

I hava the same issue

NAME VERSION
jx 2.0.329
jenkins x platform 2.0.768
Kubernetes cluster v1.14.3
kubectl v1.15.0
helm client Client: v2.13.1+g618447c
git git version 2.21.0
Operating System Mac OS X 10.12.6 build 16G1918

@ZedYeung
Copy link

Same issue. It is already Aug, any progress?

@oren-icx
Copy link

Same here.

NAME VERSION
jx 2.0.590
jenkins x platform 2.0.948
Kubernetes cluster v1.13.8-eks-a977ba
kubectl v1.13.2
helm client Client: v2.14.3+g0e7f3b6
git 2.7.4
Operating System Ubuntu 16.04.6 LTS

@olektretiak
Copy link

I was used to have it fixed, the issue is related to the GitHub credentials
Just setup a user with password instead of GitHub token

@oren-icx
Copy link

I was used to have it fixed, the issue is related to the GitHub credentials
Just setup a user with password instead of GitHub token

@olektretiak - how do you replace the current token being used by jx to username and password?

@olektretiak
Copy link

After workers nodes updates I was not able to login, I just reinstalled my installation. By the way I believe you can play with jx to remove you git and user settings

@doc-olliday
Copy link

Same issue, but with gitlab.com instead.

@bnerDY
Copy link

bnerDY commented Sep 9, 2019

Same issue, with github enterprise instead.

@jstrachan
Copy link
Member

try using jx boot which sets up and verifies the git token during installation:
https://jenkins-x.io/getting-started/boot/

@jstrachan
Copy link
Member

here's docs on configuring git with jx boot https://jenkins-x.io/getting-started/boot/#git

@bnerDY
Copy link

bnerDY commented Sep 10, 2019

@jstrachan thanks for your help. I will try to use it.

@siddharthkaushal90
Copy link

siddharthkaushal90 commented Sep 16, 2019

Hi,
I am facing the same issue

error: pulling environment repo https://github.com/**********/environment-scribewax-production.git into /home/**************/.jx/environments: git output: usage: git stash list [<options>]
   or: git stash show [<stash>]
   or: git stash drop [-q|--quiet] [<stash>]
   or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
   or: git stash branch <branchname> [<stash>]
   or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
                       [-u|--include-untracked] [-a|--all] [<message>]]
   or: git stash clear: failed to run 'git stash push' command in directory '/home/siddharthkaushal90/.jx/environments/production', output: 'usage: git stash list [<options>]
   or: git stash show [<stash>]
   or: git stash drop [-q|--quiet] [<stash>]
   or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
   or: git stash branch <branchname> [<stash>]
   or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
                       [-u|--include-untracked] [-a|--all] [<message>]]
   or: git stash clear'

any resolution for this instead of reconfiguring git?

Jenkins-x version
NAME VERSION
jx 2.0.668
jenkins x platform 2.0.1182
Kubernetes cluster v1.13.7-gke.8
kubectl v1.13.9-2+4a03651a7e7e04
helm client Client: v2.14.1+g5270352
git 2.11.0
Operating System Debian GNU/Linux 9.11 (stretch)

@prashankprince
Copy link

Upgrading git version to 2.15.0 and later will help resolve this issue

@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

@jenkins-x-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

@jenkins-x-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

@jenkins-x-bot
Copy link
Contributor

@jenkins-x-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/eks support for AWS EKS area/jenkins area/jenkins indicates the bug was reported against the "Classic Jenkins" installation type kind/bug Issue is a bug lifecycle/rotten priority/important-longterm
Projects
None yet
Development

No branches or pull requests