Closed
Description
Description


Logs
2023/06/14 13:18:55 ...ices/task/migrate.go:47:func1() [E] PANIC during runMigrateTask[3] by DoerID[1] to RepoID[12] for OwnerID[1]: runtime error: invalid memory address or nil pointer dereference
Stacktrace: /usr/local/Cellar/go/1.20.5/libexec/src/runtime/panic.go:260 (0x1000533fc)
panicmem: panic(memoryError)
/usr/local/Cellar/go/1.20.5/libexec/src/runtime/signal_unix.go:841 (0x1000533cc)
sigpanic: panicmem()
/Users/jason/code/gitea/gitea/services/migrations/github.go:490 (0x101dbf6fa)
(*GithubDownloaderV3).GetIssues: Closed: &issue.ClosedAt.Time,
/Users/jason/code/gitea/gitea/modules/migration/retry_downloader.go:142 (0x1012cdf6b)
(*RetryDownloader).GetIssues.func1: issues, isEnd, err = d.Downloader.GetIssues(page, perPage)
/Users/jason/code/gitea/gitea/modules/migration/retry_downloader.go:37 (0x1012cd529)
(*RetryDownloader).retry: if err = work(); err == nil {
/Users/jason/code/gitea/gitea/modules/migration/retry_downloader.go:141 (0x1012cdeac)
(*RetryDownloader).GetIssues: err = d.retry(func() error {
/Users/jason/code/gitea/gitea/services/migrations/migrate.go:333 (0x101dceb08)
migrateRepository: issues, isEnd, err := downloader.GetIssues(i, issueBatchSize)
/Users/jason/code/gitea/gitea/services/migrations/migrate.go:130 (0x101dcd67c)
MigrateRepository: if err := migrateRepository(doer, downloader, uploader, opts, messenger); err != nil {
/Users/jason/code/gitea/gitea/services/task/migrate.go:124 (0x1020c64e4)
runMigrateTask: t.Repo, err = migrations.MigrateRepository(ctx, t.Doer, t.Owner.Name, *opts, func(format string, args ...interface{}) {
/Users/jason/code/gitea/gitea/services/task/task.go:32 (0x1020c7424)
Run: return runMigrateTask(t)
/Users/jason/code/gitea/gitea/services/task/task.go:50 (0x1020c76cd)
handler: if err := Run(task); err != nil {
/Users/jason/code/gitea/gitea/modules/queue/workerqueue.go:246 (0x1017a0e9c)
NewWorkerPoolQueueWithContext[...].func1: return w.origHandler(t...)
/Users/jason/code/gitea/gitea/modules/queue/workergroup.go:98 (0x1017a368d)
(*WorkerPoolQueue[...]).doWorkerHandle: unhandled := q.safeHandler(batch...)
/Users/jason/code/gitea/gitea/modules/queue/workergroup.go:162 (0x1017a08a8)
(*WorkerPoolQueue[...]).doStartNewWorker.func1: q.doWorkerHandle(batch)
/usr/local/Cellar/go/1.20.5/libexec/src/runtime/asm_amd64.s:1598 (0x100073c60)
goexit: BYTE $0x90 // NOP
2023/06/14 13:18:55 ...ices/task/migrate.go:60:func1() [E] runMigrateTask[3] by DoerID[1] to RepoID[12] for OwnerID[1] failed: PANIC whilst trying to do migrate task: runtime error: invalid memory address or nil pointer dereference
2023/06/14 13:18:56 ...ervices/task/task.go:51:handler() [E] Run task failed: PANIC whilst trying to do migrate task: runtime error: invalid memory address or nil pointer dereference
Gitea Version
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Command.
Database
PostgreSQL