Gitea - Error 502 (can't start service)

Hello !

My Gitea is broken with error 502.

My YunoHost server

Hardware: x86 Server
YunoHost version: 4.2.8.3
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: Deactivated webmin

Description of my issue

Since a few days i got an error 502 on my Gitea app (other apps run correctly).

I tried to repair it, but failed. I restored last pre-upgrade gitea backup, and the service does not start.

yunohost:
  repo: stable
  version: 4.2.8.3
yunohost-admin:
  repo: stable
  version: 4.2.5.1
moulinette:
  repo: stable
  version: 4.2.4
ssowat:
  repo: stable
  version: 4.2.4
name: Gitea
version: 1.14.5~ynh1
root@xxx:~# yunohost service restart gitea
Success! Service 'gitea' restarted

Well, in fact this is not really a sucess.

root@xxx:~# yunohost service status gitea
configuration: unknown
description: Gitea
last_state_change: 2021-11-02 12:37:23
start_on_boot: enabled
status: failed

When i try a reload of the service :

Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 cmd/web.go:82:runWeb() [I] Starting Gitea on PID: 3567
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 cmd/web.go:126:runWeb() [I] Global init
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 routers/init.go:134:GlobalInit() [T] AppPath: /opt/gitea/gitea
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 routers/init.go:135:GlobalInit() [T] AppWorkPath: /opt/gitea
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 routers/init.go:136:GlobalInit() [T] Custom path: /opt/gitea/custom
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 routers/init.go:137:GlobalInit() [T] Log path: /var/log/gitea
Nov 02 12:37:23 gitea[3567]: 2021/11/02 12:37:23 routers/init.go:49:checkRunMode() [I] Run Mode: Prod
Nov 02 12:37:23 systemd[1]: gitea.service: Main process exited, code=exited, status=1/FAILURE
Nov 02 12:37:23 systemd[1]: gitea.service: Failed with result 'exit-code'.
Nov 02 12:37:23 systemd[1]: gitea.service: Service RestartSec=100ms expired, scheduling restart.
Nov 02 12:37:23 systemd[1]: gitea.service: Scheduled restart job, restart counter is at 5.
Nov 02 12:37:23 systemd[1]: Stopped Gitea.
Nov 02 12:37:23 systemd[1]: gitea.service: Start request repeated too quickly.
Nov 02 12:37:23 systemd[1]: gitea.service: Failed with result 'exit-code'.
Nov 02 12:37:23 systemd[1]: Failed to start Gitea.

Should I uninstall/reinstall ? In this way, how can I backup/restore my repos ?

Bon, à la demande de la modération :

Je n’ai pas trouvé de solution propre, j’ai désinstallé l’appli et restoré un backup de celle-ci.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.