-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Drone-Webhook fails after update to 1.22.3 #32241
Comments
Just FYI: it means that Gitea can't make a connection to |
Uh, ping works from gitea to the ci server, so that's probably not it? |
Yup, that's weird (and doesn't seem to be related to Gitea at the moment). Ping works doesn't mean "https" also works. I think you could try to figure out why the https request failed, eg:
|
ps: and there is a setting |
Returns "405 method not allowed" after adding
There are no proxies as far as I am aware.
I'll need to check that later, sorry about that!
Just to make sure, you think that the operation is taking too long and runs into timeout? Also, I've added a bit more log entries I found - hope that helps more. |
Yup, that's also a possible problem.
|
By reading the new logs, if I understand correct, a best guess is like this:
If the guess is right, the key problem is in step 2 |
There's a 500 logged by Drone for the POST to /hook?secret. This could be caused by Drone not being able to access
Well, Drone uses a service account and is authenticated through oauth - and there's no way to actually change the permissions assigned to an oath app, is there? |
"Fix bug when a token is given public only (#32204) #32218" fixed a permission (security) bug, that's the only possible related change I can recall but I didn't read the details about it. Maybe others could have some ideas ..... |
Making the repo public sadly does not change anything - it's still not working :( |
That's really strange .... to be honest I have no idea at the moment either. Could you try to downgrade to 1.22.2 or the last usable version? Maybe finding the breaking point would help. |
I am pretty sure that the breaking point is the last version 1.22.3, since the upgrade was made on the 9th and the webhook still worked on the 8th. I'll need to clear a downgrade with my admin, if the points above don't convince you :) |
Yup, I agree that's the most suspicious part, while there could still be a small chance that other unknown bugs or operations causes the problem (eg: unfortunately downgrading to 1.22.2 doesn't work either now) Think about some cases:
I am not expert and could just guess, and I do not use Drone, maybe there could be some experts to provide more ideas. Actually, "Drone CI/CD stopping working" is a strong reason to convince the admin. If the error logs are right:
It means that the request fails in |
... I just disabled the project in drone, and then activated it, everything's working again. Sorry to have bothered you, and thank you for the help. |
Well, that's really difficult to guess ...... |
Description
After I've updated my gitea instance to 1.22.3, my drone webhook fails with
Delivery: Post "https://ci.example.de/hook?secret=SECRET": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
.The log showed
[EDIT, more log entries]
I already checked the webhook.ALLOWED_HOST_LIST-setting - it does have the correct url.
Also, the gitea server is reachable by ping from the ci server.
Gitea Version
1.22.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.43.0
Operating System
openSUSE
How are you running Gitea?
go-binary
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: