我当前版本是1.9.6,我想升级到1.14.2
直接kill掉原来的进程
使用命令:./gitea-1.14.2-linux-amd64 web 启动发现报错无法访问,
又切换回原来的1.9.6正常
启动错误日志如下:
2021/06/15 15:26:56 cmd/web.go:82:runWeb() [I] Starting Gitea on PID: 30195
2021/06/15 15:26:56 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.26.0, Wire Protocol Version 2 Enabled
2021/06/15 15:26:56 cmd/web.go:126:runWeb() [I] Global init
2021/06/15 15:26:56 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.26.0, Wire Protocol Version 2 Enabled
2021/06/15 15:26:56 routers/init.go:134:GlobalInit() [T] AppPath: /yatop/gitea/gitea-1.14.2-linux-amd64
2021/06/15 15:26:56 routers/init.go:135:GlobalInit() [T] AppWorkPath: /yatop/gitea
2021/06/15 15:26:56 routers/init.go:136:GlobalInit() [T] Custom path: /yatop/gitea/custom
2021/06/15 15:26:56 routers/init.go:137:GlobalInit() [T] Log path: /yatop/gitea/log
2021/06/15 15:26:56 routers/init.go:49:checkRunMode() [I] Run Mode: Prod
panic: template: repo/commit_page:26: function "AvatarLink" not defined
goroutine 1 [running]:
html/template.Must(...)
/usr/local/go/src/html/template/template.go:374
github.com/unrolled/render.(*Render).compileTemplatesFromAsset(0xc0056a5980)
/source/vendor/github.com/unrolled/render/render.go:283 +0x6f0
github.com/unrolled/render.(*Render).compileTemplates(0xc0056a5980)
/source/vendor/github.com/unrolled/render/render.go:194 +0x4c
github.com/unrolled/render.New(0xc00560b148, 0x1, 0x1, 0x1)
/source/vendor/github.com/unrolled/render/render.go:142 +0x133
code.gitea.io/gitea/modules/templates.HTMLRenderer(0xc00560b3c0)
/source/modules/templates/base.go:88 +0x16a
code.gitea.io/gitea/routers/routes.Recovery(0xc00617e1c0)
/source/routers/routes/base.go:147 +0x25
code.gitea.io/gitea/routers/routes.WebRoutes(0xc00617e0c0)
/source/routers/routes/web.go:144 +0x214
code.gitea.io/gitea/routers/routes.NormalRoutes(0xc000417600)
/source/routers/routes/web.go:123 +0x11b
code.gitea.io/gitea/cmd.runWeb(0xc000417600, 0x0, 0x0)
/source/cmd/web.go:138 +0x4ae
github.com/urfave/cli.HandleAction(0x265aa20, 0x38c5030, 0xc000417600, 0xc000417600, 0x0)
/source/vendor/github.com/urfave/cli/app.go:524 +0x105
github.com/urfave/cli.Command.Run(0x2a64fa0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2bc8ce0, 0x16, 0x0, ...)
/source/vendor/github.com/urfave/cli/command.go:173 +0x579
github.com/urfave/cli.(*App).Run(0xc0016fa1c0, 0xc000132000, 0x2, 0x2, 0x0, 0x0)
/source/vendor/github.com/urfave/cli/app.go:277 +0x808
main.main()
/source/main.go:115 +0xa6a