-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Webhooks randomly fail with 408 timeout #5470
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
Comments
Anyone at all? @lunny? Someone? |
I'm getting a similar thing sort of randomly
If I try a Test Delivery, it usually works fine, although that could be because the first invocation already did some time-consuming downloads - and the second invocation can complete much quicker. I'm using the same webhook @sbrl is using, although not behind nginx. The script it invokes can take maybe 5-15 seconds, perhaps even longer. It'd be nice to know what the timeout was, and even better if it could be configurable. |
I think the timeout is already configurable, @barryp. It's this in [webhook]
DELIVER_TIMEOUT = 60 ....60 is the value I have set. If I try the "test" delivery, it does work fine some of the time. If I try it manually with |
I can confirm that this is still an issue with the latest v1.7.0 release of Gitea. |
Furthermore, I have a (Note to self: It's in my downloads) |
Can not reproduce on try.gitea.io and my instances. |
@lunny Oh dear. That's awkward. Do you have an email address I can send this packet capture to, if you think it'd help? If further details are needed, I could try doing it over regular http. If you've got any other suggestions as to what could potentially be the cause, I'd love to hear it and I'll investigate. I'm currently investigating using the git post-receive hook instead and writing a bash script as a workaround. |
@sbrl You can send message to me on discord. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Looks like I have issues with GitHub sending Webhooks to the same server, so I think it's probably a network issue - or something else on my end. Thanks for investigating though! |
I am having this same issues on a kubernetes deployment of Gitea with Drone.io. Randomly Delivery: Post https://xxxxx/hook?...: dial tcp: i/o timeout Sometimes it goes smooth, sometimes it stalls. Then if I press "Test Delivery" it goes thru. An auto retry with a X number of tries would probably fix it. |
That could also be network connectivity issues or dns problems |
No. The issue here is that I'm using a small arm cluster with kubernetes. Sometimes the timeout is > 5 secs. I fixed increasing the webhook timeout to 30 secs. But I believe that an automatic retry for a custom number of tries would be very welcome. |
What a co-incidence, @c0h1b4! My situation was something like this: Gitea server ----> [ Internet ] -----> Home router ------> Raspberry Pi If you're having issues with arm, maybe it's a bug in the linux networking stack for arm? I've no clue how to start debugging that though. I'm pretty sure it's a network issue and nothing to do with Gitea. I know this because I setup a GitHub webhook that pointed tot he same place, and it also failed randomly in the exact same fashion. I ended up writing a PHP proxy script that does the automatic retry that I run on a more stable box in the cloud (incidentally, this is the same box that has the Gitea server running). Said script looks a bit like this: https://pastebin.com/Un9B01s1 Very curious indeed. |
I think I have the same issue, in a amd64 Docker environment. Adding the |
Have you tried it with GitHub too, @src386? |
I'm also having this issue and I've tried multiple ways of trying to fix it...
I get the same i/o timeout issue no matter what I do. Of course webhooks are quite important especially with CI/CD. I was hoping to move to Gitea this weekend but after spending hours trying to get this work, I'm not sure now lol Edit: using the latest stable version of Gitea btw which is 1.9.4 Another edit an hour later: I've sorted it. Turns out Drone checks if there's a |
Did you tried playing with the |
Many root causes, 1 symptom. |
^ Yeah my thoughts too |
Glad you fixed it! :D Although for future reference if you see these symptoms, it's almost certainly the particular issue I experienced here. |
This thread helped.
|
[x]
):Description
I've setup a webhook between my server and a server at a remote location, I'm getting random failures. Some webhooks go through fine, and others die for some strange reason.
Setup:
Gitea claims the following in the webhook log:
...but the remote server's nginx claims that it's Gitea's fault for not sending a complete request in time:
The remote server has a good-quality fibre line. The git server has a stable 100mb/sec connection from KimSufi / OVH. Why the timeout?
Annoyingly, it always works if I hit "test delivery" - it's only genuine push events that are causing problems.
Screenshots
Edit: Nope, it doesn't always work with the "test delivery" button. I've just got this:
....clicking the "test delivery" button again causes the next one to succeed though.
The text was updated successfully, but these errors were encountered: