-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Gitlab importer worker crashes #13085
Comments
This is very odd... The line marked responsible for the panic is: gitea/modules/migrations/gitlab.go Line 126 in aa1d9ef
Which can only normally panic if g is nil.
Which would imply d.Downloader was nil here gitea/modules/migrations/migrate.go Line 73 in aa1d9ef
Which would imply that downloader.Downloader was nil here. gitea/modules/migrations/migrate.go Line 70 in aa1d9ef
Meaning downloader was nil here. But that doesn't make sense because: gitea/modules/migrations/migrate.go Line 52 in aa1d9ef
Should stop that... However if we look again at the panic stack we see: build/go/src/runtime/signal_unix.go:695 Which makes me suspicious that we're not seeing an npe here but rather makes me suspicious that it's something to do with the context and its channel being assigned to another struct. I wonder if you're hitting some notify limit in regards to channels.There may be a hard limit of how many channels can be assigned to structs. If there is we're in for a world of trouble as we'll have to consider migrating off channels on to atomic flags and some kind of polling but also consider if you've hit a go bug. (There is an issue in that we've not got the recover result logged here which is strange because I was sure it should be...) |
What version of go are you building with? |
(yup there's an issue with our recoverer here meaning we're not logging the underlying problem here. Line 43 in 9066d09
Needs to log e as a %v argument just before the stack.) |
go1.14.9 |
I have found 2 bugs (only in v1.12.x):
GitLab like token to be passed via: u.User = url.UserPassword("", opts.AuthUsername) there is no option to pass a token as token-option to the migrator in v1.12 |
[x]
):Description
We see some dozen worker crashes seemingly related to the gitlab importer in our logs. Related issue: https://codeberg.org/Codeberg/Community/issues/304
Logs
The text was updated successfully, but these errors were encountered: