-
Notifications
You must be signed in to change notification settings - Fork 5
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
GIT error on push #6
Comments
Error 128 from git means "Git did not exit cleanly" can have many different causes. The directory that is created (commit hash folder in tmp) should contain the state of the repository at the commit that dispatched the web hook event - perhaps you can investigate there next time this happens, before you redeliver the event? Side question: when this happens, is the commit that dispatched the event, a force-push? Side question 2: when this happens, I assume it's when you publish a new tag. If so, is the commit that the tag references already pushed - or do you push + push tags together? Could help to do that in two separate actions... |
Thanks for your quick answer!
Already did and the directory contains a valid copy of the repo at the wanted commit.
No. I'm sure as the release I did this morning was definitely not a force push.
I normally push both together, the commit and the tag. Never had any issues with that before. But I could try to push that in two steps next time. I've updated the code base (I was on a8c0382, missing three commits) and updated the vendors. That probably helps too... |
I always push the commit first (then wait for CI to verify) and then publish the tag - I don't know if that makes any difference but I've never had to redispatch requests except in cases where TER was temporarily down/broken. There is one other thing to check: if this happens at times where you've done a lot of pushes, the git client that runs in the gizzle installation may hit the request limiter on GitHub - and when you try manually or redeliver, the limit may have expired. I think there should be a specific error message when that happens, but a lot can change in three years ;) |
Just tried it again with the tag pushed separately and got this in the Webhook UI: |
Pushed another small (file count and overall size) extension (this time tag and commits in a single push) and it worked without issues. |
Pushed another not so tiny extension (again: tag and commits in a single push) and it worked without issues. Mhhh, seems I need to monitor this a little more... |
Pushed a big extension (beautyofcode, comes with two JS libs -- so quite a lot files) in a single push and got a new error:
After hitting the "redeliver" button multiple times (getting the the OP error again, removing the whole tmp folder, hit it again, repeat) but it never worked. First time I needed to use the zip upload on the TER website again :-/ Strange enough, last time I released that extension it worked without issue (even I already had the OP issues at that time). So, this issue is still not really reproducible. |
Oh boy -- it's getting even more strange :-D Pushed another extension. Got an "We couldn’t deliver this payload: Service Timeout" error with no response at all. Checked the server: Repository folder has been created and (a few minutes later) the TER release is public. No "redeliver" button used. Checked error log and found this: |
I assume you use a self-hosted version of gizzle for this. Could you try the following:
|
HMAC validation business logic: https://github.com/NamelessCoder/gizzle/blob/f1980299d9520e13b76c8ddaed8511e81f588d8d/src/Payload.php#L207 |
Yes. And everything worked fine the last few years. Issues tarted a few month ago but I did not change anything at all. But it is possible my hosting provider updated something.
Uhhh, I'm not really sure how to do this. I've added following to my
Limits in my
That is the case.
Not that easy to test the request headers but
No changes here and looks good IMO:
...and thanks for your help! I wish you a good new year! |
Since a few weeks I receive following error via the GitHub hook settings:
Most of the time, the TER release works as expected no matter what, but sometimes I need to hit "redeliver" a few times.
I've updated GIT on that server and check the file permissions. Manual GIT clone commands work without issues.
Any ideas why this is happening?
The text was updated successfully, but these errors were encountered: