CheckPath returns error: context canceled #9367

Closed
opened 2025-11-02 08:36:42 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @somera on GitHub (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

Originally created by @somera on GitHub (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
GiteaMirror added the type/bug label 2025-11-02 08:36:42 -06:00
Author
Owner

@zeripath commented on GitHub (Aug 17, 2022):

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 commented on GitHub (Aug 17, 2022): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9367