go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.97k stars 5.39k forks source link

Unable to open checker for ... #26627

Open somera opened 1 year ago

somera commented 1 year ago

Description

This

2023/08/21 10:58:25 ...it/repo_attribute.go:306:func2() [E] Unable to open checker for fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4. Error: failed to run attr-check. Error: context deadline exceeded
Stderr:
        /source/modules/git/repo_attribute.go:306 (0xd8d3c1)
        /usr/local/go/src/runtime/asm_amd64.s:1598 (0x472700)
                goexit: BYTE    $0x90   // NOP

error should be fixed in #19006 / #19027

Gitea Version

1.20.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.41.0

Operating System

20.04.6

How are you running Gitea?

Downloaded gitea-1.20.3-linux-amd64 executable

Database

PostgreSQL

lunny commented 1 year ago

errors.Is(err, context.DeadlineExceeded) or os.IsTimeout(err) should be handled.

somera commented 1 year ago

The question is: "Could the stack trace be ignored?"

And if this is an error, what is going wrong here?

yp05327 commented 5 months ago

c.ctx.Err() != err && // 1. Ignore the context error if the context is cancelled or exceeds the deadline (RunWithContext could return c.ctx.Err() which is Canceled or DeadlineExceeded)

It seems that DeadlineExceeded is not ignored as expected?