Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Created December 3, 2023 03:47
Show Gist options
  • Save joseluisq/8af3222f4a879acf732adcf6a6f36b81 to your computer and use it in GitHub Desktop.
Save joseluisq/8af3222f4a879acf732adcf6a6f36b81 to your computer and use it in GitHub Desktop.
Gitea 1.21.1 Error Log for "PANIC whilst trying to do migrate task: runtime error"
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2023/12/03 02:39:00 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 16
2023/12/03 02:39:00 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.1 built with GNU Make 4.4.1, go1.21.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2023/12/03 02:39:00 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2023/12/03 02:39:00 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2023/12/03 02:39:00 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2023/12/03 02:39:00 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2023/12/03 02:39:00 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2023/12/03 02:39:00 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2023/12/03 02:39:00 cmd/web.go:188:serveInstalled() [E] Found legacy public asset "avatars" in CustomPath. Please move it to /data/gitea/public/assets/avatars
2023/12/03 02:39:00 cmd/web.go:188:serveInstalled() [E] Found legacy public asset "favicon.ico" in CustomPath. Please move it to /data/gitea/public/assets/favicon.ico
2023/12/03 02:39:00 cmd/web.go:188:serveInstalled() [E] Found legacy public asset "img" in CustomPath. Please move it to /data/gitea/public/assets/img
2023/12/03 02:39:00 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
Accepted publickey for git from 10.0.5.20 port 56518 ssh2: RSA SHA256:ab1CDEFghiCKL0PEioeXY/f1yl2c345De4kLnop5RsT
Received disconnect from 10.0.5.20 port 56518:11: disconnected by user
Disconnected from user git 10.0.5.20 port 56518
Accepted publickey for git from 10.0.5.20 port 56592 ssh2: RSA SHA256:ab1CDEFghiCKL0PEioeXY/f1yl2c345De4kLnop5RsT
Received disconnect from 10.0.5.20 port 56592:11: disconnected by user
Disconnected from user git 10.0.5.20 port 56592
2023/12/03 02:57:48 ...ers/web/user/home.go:506:buildIssueOverview() [E] CountIssuesByRepo: context canceled
2023/12/03 03:32:59 ...rvices/pull/check.go:361:testPR() [E] testPatch[<PullRequest [480]static-web-server/static-web-server#46[master...richbayliss/support-try-files]>]: branch does not exist [repo_id: 0 name: richbayliss/support-try-files]
2023/12/03 03:34:16 ...rvices/pull/check.go:361:testPR() [E] testPatch[<PullRequest [536]static-web-server/static-web-server#198[master...wasix-fixes]>]: branch does not exist [repo_id: 0 name: wasix-fixes]
2023/12/03 03:34:16 ...rvices/pull/check.go:361:testPR() [E] testPatch[<PullRequest [522]static-web-server/static-web-server#168[master...dependabot/cargo/tokio-1.23.1]>]: branch does not exist [repo_id: 0 name: dependabot/cargo/tokio-1.23.1]
2023/12/03 03:34:16 ...rvices/pull/check.go:361:testPR() [E] testPatch[<PullRequest [523]static-web-server/static-web-server#170[master...dependabot/cargo/tokio-1.24.2]>]: branch does not exist [repo_id: 0 name: dependabot/cargo/tokio-1.24.2]
2023/12/03 03:34:16 ...rvices/pull/check.go:361:testPR() [E] testPatch[<PullRequest [555]static-web-server/static-web-server#247[master...async-io]>]: branch does not exist [repo_id: 0 name: async-io]
2023/12/03 03:34:59 ...ices/task/migrate.go:48:func1() [E] PANIC during runMigrateTask[125] by DoerID[1] to RepoID[273] for OwnerID[35]: runtime error: index out of range [1] with length 1
Stacktrace: /usr/local/go/src/runtime/panic.go:114 (0x43cc5b)
/go/src/code.gitea.io/gitea/modules/git/diff.go:99 (0xd9328a)
/go/src/code.gitea.io/gitea/services/migrations/gitea_uploader.go:866 (0x2245add)
/go/src/code.gitea.io/gitea/services/migrations/migrate.go:445 (0x225a3e6)
/go/src/code.gitea.io/gitea/services/migrations/migrate.go:130 (0x22585ca)
/go/src/code.gitea.io/gitea/services/task/migrate.go:125 (0x24ee548)
/go/src/code.gitea.io/gitea/services/task/task.go:34 (0x24ef4a4)
/go/src/code.gitea.io/gitea/services/task/task.go:52 (0x24ef73a)
/go/src/code.gitea.io/gitea/modules/queue/workerqueue.go:246 (0x1e35991)
/go/src/code.gitea.io/gitea/modules/queue/workergroup.go:98 (0x1a61d22)
/go/src/code.gitea.io/gitea/modules/queue/workergroup.go:162 (0x1e34269)
/usr/local/go/src/runtime/asm_amd64.s:1650 (0x475860)
2023/12/03 03:34:59 ...ices/task/migrate.go:61:func1() [E] runMigrateTask[125] by DoerID[1] to RepoID[273] for OwnerID[35] failed: PANIC whilst trying to do migrate task: runtime error: index out of range [1] with length 1
2023/12/03 03:34:59 ...ervices/task/task.go:53:handler() [E] Run task failed: PANIC whilst trying to do migrate task: runtime error: index out of range [1] with length 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment