Skip to content
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

CheckPath returns error: context canceled #20709

Closed
somera opened this issue Aug 8, 2022 · 1 comment · Fixed by #21064
Closed

CheckPath returns error: context canceled #20709

somera opened this issue Aug 8, 2022 · 1 comment · Fixed by #21064
Labels
Milestone

Comments

@somera
Copy link

somera commented Aug 8, 2022

Description

I see often (just one day)

$ grep "CheckPath returns error: context canceled" log/gitea.log | wc -l
126389

this in my gitea.log

2022/08/07 08:07:59 ...it/repo_attribute.go:195:func1() [E] [62ef5536-21] CheckPath returns error: context canceled
        /source/modules/git/repo_attribute.go:195 (0xc7da47)
        /source/modules/git/repo_attribute.go:201 (0xc7d67d)
        /source/modules/git/repo_language_stats_nogogit.go:89 (0xc94e6c)
        /source/modules/indexer/stats/db.go:64 (0x1b3e6a4)
        /source/modules/indexer/stats/queue.go:23 (0x1b3f34e)
        /source/modules/queue/unique_queue_disk_channel.go:60 (0x16c36a1)
        /source/modules/queue/unique_queue_channel.go:79 (0x16c0b4a)
        /source/modules/queue/workerpool.go:564 (0x16caeee)
        /source/modules/queue/workerpool.go:312 (0x16c96e4)
        /usr/local/go/src/runtime/asm_amd64.s:1571 (0x4700e0)

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.25.1

Operating System

Ubuntu 20.04.4

How are you running Gitea?

Downloaded gitea-1.17.0-linux-amd64

Database

PostgreSQL

@somera somera added the type/bug label Aug 8, 2022
@lunny lunny added this to the 1.17.1 milestone Aug 8, 2022
@zeripath
Copy link
Contributor

Actually I'm not sure what's going on here.

I would expect that there were some other logs here. Are there any titled "Unable to open checker: ... ?

If not the only way that this can be logged is if something is cancelling a process context that is labelled Stats.DB Index Repo[%d]. There is no timeout to that context so the only way is if these are being cancelled is by doing it manually or by shutting down the machine.

@zeripath zeripath modified the milestones: 1.17.1, 1.17.2 Aug 17, 2022
zeripath added a commit to zeripath/gitea that referenced this issue Sep 4, 2022
We should only log CheckPath errors if they are not simply due to context cancellation.

Fix go-gitea#20709

Signed-off-by: Andrew Thornton <art27@cantab.net>
@lunny lunny modified the milestones: 1.17.2, 1.17.3 Sep 5, 2022
zeripath added a commit that referenced this issue Oct 10, 2022
We should only log CheckPath errors if they are not simply due to
context cancellation - and we should add a little more context to the
error message.

Fix #20709

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit to zeripath/gitea that referenced this issue Oct 10, 2022
Backport go-gitea#21064

We should only log CheckPath errors if they are not simply due to
context cancellation - and we should add a little more context to the
error message.

Fix go-gitea#20709

Signed-off-by: Andrew Thornton <art27@cantab.net>
lunny pushed a commit that referenced this issue Oct 11, 2022
Backport #21064

We should only log CheckPath errors if they are not simply due to
context cancellation - and we should add a little more context to the
error message.

Fix #20709

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
tyroneyeh pushed a commit to tyroneyeh/gitea that referenced this issue Oct 24, 2022
… (go-gitea#21405)

Backport go-gitea#21064

We should only log CheckPath errors if they are not simply due to
context cancellation - and we should add a little more context to the
error message.

Fix go-gitea#20709

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants