Project

General

Profile

Demande #5545

Mettre à jour Gitea/forge.april.org en 1.15.0

Added by Christian P. Momon 3 months ago. Updated 3 months ago.

Status:
Fermé
Priority:
Normale
Assignee:
Christian P. Momon
Category:
-
Target version:
Start date:
08/22/2021
Due date:
% Done:

0%

Estimated time:
Difficulté:
2 Facile

Description

Icinga2 informe que :

WARNING : new version available, current is 1.14.6, last is 1.15.0.

Demande : mettre à jour.


Related issues

Copied from Admins - Demande #5523: Mettre à jour Gitea/forge.april.org en 1.14.6Fermé07/17/202107/18/2021

Actions
Copied to Admins - Demande #5594: Mettre à jour Gitea/forge.april.org en 1.15.2Fermé09/05/2021

Actions

History

#1

Updated by Christian P. Momon 3 months ago

  • Copied from Demande #5523: Mettre à jour Gitea/forge.april.org en 1.14.6 added
#2

Updated by Christian P. Momon 3 months ago

  • Status changed from Nouveau to En cours de traitement
  • Assignee set to Christian P. Momon

Application de la procédure de maj et erreur au démarrage du service :

Aug 23 13:05:59 agir systemd[1]: Started Gitea (Git with a cup of tea).
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 cmd/web.go:97:runWeb() [I] Starting Gitea on PID: 9841
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 cmd/web.go:141:runWeb() [I] Global init
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 routers/init.go:74:GlobalInit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 routers/init.go:77:GlobalInit() [I] AppPath: /srv/gitea/bin/gitea
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 routers/init.go:78:GlobalInit() [I] AppWorkPath: /srv/gitea
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 routers/init.go:79:GlobalInit() [I] Custom path: /srv/gitea/custom
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 routers/init.go:80:GlobalInit() [I] Log path: /var/log/gitea/
Aug 23 13:05:59 agir gitea[9841]: 2021/08/23 13:05:59 routers/init.go:81:GlobalInit() [I] Run Mode: Prod
Aug 23 13:06:00 agir gitea[9841]: panic: template: home:12: function "StaticUrlPrefix" not defined
Aug 23 13:06:00 agir gitea[9841]: goroutine 1 [running]:
Aug 23 13:06:00 agir gitea[9841]: html/template.Must(...)
Aug 23 13:06:00 agir gitea[9841]:         /usr/local/go/src/html/template/template.go:374
Aug 23 13:06:00 agir gitea[9841]: github.com/unrolled/render.(*Render).compileTemplatesFromAsset(0xc004789c80)
Aug 23 13:06:00 agir gitea[9841]:         /source/vendor/github.com/unrolled/render/render.go:322 +0x799
Aug 23 13:06:00 agir gitea[9841]: github.com/unrolled/render.(*Render).CompileTemplates(0xc004789c80)
Aug 23 13:06:00 agir gitea[9841]:         /source/vendor/github.com/unrolled/render/render.go:202 +0x4c
Aug 23 13:06:00 agir gitea[9841]: github.com/unrolled/render.New(0xc003a8f0c0, 0x1, 0x1, 0x1)
Aug 23 13:06:00 agir gitea[9841]:         /source/vendor/github.com/unrolled/render/render.go:146 +0x133
Aug 23 13:06:00 agir gitea[9841]: code.gitea.io/gitea/modules/templates.HTMLRenderer(0xc003a8f390)
Aug 23 13:06:00 agir gitea[9841]:         /source/modules/templates/base.go:88 +0x16a
Aug 23 13:06:00 agir gitea[9841]: code.gitea.io/gitea/routers/web.Recovery(0xc0048c2b80)
Aug 23 13:06:00 agir gitea[9841]:         /source/routers/web/base.go:125 +0x25
Aug 23 13:06:00 agir gitea[9841]: code.gitea.io/gitea/routers/web.Routes(0xc0048c2a80)
Aug 23 13:06:00 agir gitea[9841]:         /source/routers/web/web.go:95 +0x385
Aug 23 13:06:00 agir gitea[9841]: code.gitea.io/gitea/routers.NormalRoutes(0xc0020e0580)
Aug 23 13:06:00 agir gitea[9841]:         /source/routers/init.go:147 +0x11b
Aug 23 13:06:00 agir gitea[9841]: code.gitea.io/gitea/cmd.runWeb(0xc0020e0580, 0x0, 0x0)
Aug 23 13:06:00 agir gitea[9841]:         /source/cmd/web.go:153 +0x51b
Aug 23 13:06:00 agir gitea[9841]: github.com/urfave/cli.HandleAction(0x271a2c0, 0x3907058, 0xc0020e0580, 0xc0020e0580, 0x0)
Aug 23 13:06:00 agir gitea[9841]:         /source/vendor/github.com/urfave/cli/app.go:524 +0x105
Aug 23 13:06:00 agir gitea[9841]: github.com/urfave/cli.Command.Run(0x2b3b58c, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2ca46a1, 0x16, 0x0, ...)
Aug 23 13:06:00 agir gitea[9841]:         /source/vendor/github.com/urfave/cli/command.go:173 +0x579
Aug 23 13:06:00 agir gitea[9841]: github.com/urfave/cli.(*App).Run(0xc002049880, 0xc0000c4000, 0x4, 0x4, 0x0, 0x0)
Aug 23 13:06:00 agir gitea[9841]:         /source/vendor/github.com/urfave/cli/app.go:277 +0x808
Aug 23 13:06:00 agir gitea[9841]: main.main()
Aug 23 13:06:00 agir gitea[9841]:         /source/main.go:115 +0xa6a
Aug 23 13:06:00 agir systemd[1]: gitea.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 23 13:06:00 agir systemd[1]: gitea.service: Failed with result 'exit-code'.
Aug 23 13:06:02 agir systemd[1]: gitea.service: Service RestartSec=2s expired, scheduling restart.
Aug 23 13:06:02 agir systemd[1]: gitea.service: Scheduled restart job, restart counter is at 737.
Aug 23 13:06:02 agir systemd[1]: Stopped Gitea (Git with a cup of tea).

A priori, un problème de template : panic: template: home:12: function "StaticUrlPrefix" not defined

Confirmation en regardant l'historique du fichier …/template/home.tmpl :

2021-05-08 16:27 +0200 silverwind          o Rename StaticUrlPrefix to AssetUrlPrefix (#15779)

Le commit est explicite : https://github.com/go-gitea/gitea/pull/15779

warning BREAKING warning
Administrators with Custom templates that use the StaticUrlPrefix will need update these to use AssetUrlPrefix.

La modification à faire dans agir:/srv/gitea/custom/templates/home.tmpl pour que ça refonctionne :

-                               <img class="logo" width="200" height="84" src="{{StaticUrlPrefix}}/april-logo-gitea.png"/>
+                               <img class="logo" width="200" height="84" src="{{AssetUrlPrefix}}/april-logo-gitea.png"/>

#3

Updated by Christian P. Momon 3 months ago

  • Status changed from En cours de traitement to Résolu

Fait.

#4

Updated by Loïc Dachary 3 months ago

  • Has duplicate Demande #5544: Mettre à jour Gitea/forge.chapril.org en 1.15.2 added
#5

Updated by Loïc Dachary 3 months ago

  • Has duplicate deleted (Demande #5544: Mettre à jour Gitea/forge.chapril.org en 1.15.2)
#6

Updated by Quentin Gibeaux 3 months ago

  • Status changed from Résolu to Fermé
#7

Updated by Christian P. Momon 3 months ago

  • Copied to Demande #5594: Mettre à jour Gitea/forge.april.org en 1.15.2 added

Also available in: Atom PDF