-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Crash on startup #20367
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
Labels
Comments
The problem is here:
|
It looks like there is a race between the creation of the mirror queue in InitSyncMirrors and the update_mirrors task. Have you explicitly set the update_mirrors task to run at startup? |
Merged
Yes, it is. I tried to disable on startup, but still enabled every 10 minutes. It don't crash on startup, nor after 10 minutes after triggering the mirror update. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Unexpected exit at startup.
The log says the issue is [gitea.log:373] "...xer/stats/indexer.go:45:populateRepoIndexer() [F] System error: context canceled", (the table 'repository' exists and has more than one row, and), probably related to a previous null reference at [gitea.log:265] ".../graceful/manager.go:135:func1() [C] PANIC during RunWithShutdownContext: runtime error: invalid memory address or nil pointer dereference"
Gitea Version
1.16.9
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/AnotherDevlop/94a4f1c2d1e005a5fdbdb35f2d950de0
Screenshots
No response
Git Version
2.25.1
Operating System
Ubuntu 20.04.3 LTS - Linux 5.4.0-110-generic
How are you running Gitea?
Using your downloads (gitea-1.16.9-linux-amd64)
Systemd: yes
Docker: no
Database
MySQL
The text was updated successfully, but these errors were encountered: