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

Force push breaks webhook #1397

Open
yelhouti opened this issue Dec 14, 2021 · 1 comment
Open

Force push breaks webhook #1397

yelhouti opened this issue Dec 14, 2021 · 1 comment

Comments

@yelhouti
Copy link
Contributor

When amending a commit a force pushing the webhook fails because pulling in the cache fails:

{"Branch":"master",...,"Webhook":"push","error":"failed to create agent: failed to calculate in repo config: failed to load trigger config for repository repo/repo for ref : failed to switch to ref : failed to fetch repository repo/repo: error pulling: exit status 128 warning: redirecting to https://gitlab.com/repo/repo.git/\nFrom https://gitlab.com/repo/repo\n + 79c7a40...9a8e4da master     -\u003e origin/master  (forced update)\n\n*** Please tell me who you are.\n\nRun\n\n  git config --global user.email \"you@example.com\"\n  git config --global user.name \"Your Name\"\n\nto set your account's default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: unable to auto-detect email address (got 'jx@lighthouse-webhooks-7846886d7d-lwl7b.(none)')\n","head":"9a8e4dadcc316ce34e36b0bbcdb18ccf2a875b66","level":"error","msg":"Error creating agent for PushEvent.","org":"repo","ref":"refs/heads/master","repo":"repo","time":"2021-12-14T01:59:01Z"}

It is not easy to spot, but the error seems to be: forced update and seemed to happen only when I forced push, maybe the webhook should force pull in that case instead of using the cache.

@indigostar-kr
Copy link

When I create a release branch (release/v1.0.0) based on the development branch and push it, I get the following error:

failed to create agent: failed to calculate in repo config: failed to load trigger config for repository <ORG>/<REPO> for ref 0000000000000000000000000000000000000000: failed to switch to ref 0000000000000000000000000000000000000000: failed to fetch repository <ORG>/<REPO>: error fetching \"0000000000000000000000000000000000000000\": exit status 128 fatal: remote error: upload-pack: not our ref 0000000000000000000000000000000000000000\n","head":"0000000000000000000000000000000000000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants