Skip to content

Drone-Webhook fails after update to 1.22.3 #32241

Closed
@JumpingScript

Description

@JumpingScript

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]

2024/10/11 15:10:47 ...eb/routing/logger.go:102:func1() [I] router: completed POST /org/project1/settings/hooks/21/test for 132.187.50.164:0, 200 OK in 26.7ms @ setting/webhook.go:647(setting.TestWebhook)
2024/10/11 15:10:48 ...eb/routing/logger.go:102:func1() [I] router: completed POST /login/oauth/access_token for 10.87.181.26:0, 200 OK in 105.1ms @ auth/oauth.go:638(auth.AccessTokenOAuth)
2024/10/11 15:10:48 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/org/project1/raw/a770584dec278ed7ff344add85deb6457c87f8f3/.drone.yml for 10.87.181.26:0, 403 Forbidden in 2.0ms @ v1/api.go:762(v1.Routes.verifyAuthWithOptions)
2024/10/11 15:10:52 ...eb/routing/logger.go:102:func1() [I] router: completed GET /org/project1/settings/hooks/21 for 132.187.50.164:0, 200 OK in 36.3ms @ setting/webhook.go:632(setting.WebHooksEdit)
2024/10/11 15:10:53 ...s/webhook/webhook.go:101:handler() [E] Unable to deliver webhook task[599]: unable to deliver webhook task[599] in https://ci.example.de/hook?secret=SECRET due to error in http client: Post "https://ci.example.de/hook?secret=SECRET": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions