Gitea on Synology NAS WITHOUT Docker - upgrading

Hi,
As in the title, I managed to install and run Gitea on Synology DS218 (without Docker) using MariaDB10 and .spk prepared with GitHub - flipswitchingmonkey/gitea-spk: spk (Synology package) to install gitea into Synology NAS

Now, I would like to do an upgrade from time to time. I originally installed gitea-1.11.4-linux-arm64 creating .spk with gitea-spk tool and everything is working fine. Now, I downloaded gitea-1.11.5-linux-arm64 from gitea github and created new .spk. I created buckup using ./gitea backup, stopped Gitea package in package center and tried manual upgrade. Everytime it says “Failed to upgrade package”. I’m pretty sure that /usr/local/gitea/gitea folder and my setting will be overwritten, as this package probably isn’t prepared to upgrade like packages from Synology. Not sure about database, but as I mentioned I have backup.

Here some logs:

/var/log/packages/gitea.log

Stopping Gitea …
2020/05/20 13:34:20 stop Gitea 1.11.4 End start-stop-status stop ret=[0]
2020/05/20 13:35:25 upgrade Gitea 1.11.4 Begin preupgrade
2020/05/20 13:35:25 upgrade Gitea 1.11.4 End preupgrade ret=[1]
2020/05/20 13:35:25 upgrade Gitea 1.11.5 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/20 13:35:25 upgrade Gitea 1.11.5 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/20 13:35:42 start Gitea 1.11.4 Begin start-stop-status start
Starting Gitea …

/var/log/synopkg.log

2020/05/20 13:34:17 stop Gitea: begin to stop version 1.11.4
2020/05/20 13:34:18 stop Gitea 1.11.4 Begin start-stop-status stop
2020/05/20 13:34:20 stop Gitea 1.11.4 End start-stop-status stop ret=[0]
2020/05/20 13:34:20 stop Gitea 1.11.4 Begin unload apparmor
2020/05/20 13:34:20 stop Gitea 1.11.4 End unload apparmor ret=[0]
2020/05/20 13:34:20 stop Gitea: stop version 1.11.4 successfully, result 0
2020/05/20 13:35:25 upgrade Gitea 1.11.4 Begin preupgrade
2020/05/20 13:35:25 upgrade Gitea 1.11.4 End preupgrade ret=[1]
2020/05/20 13:35:25 upgrade Gitea from 1.11.4 to 1.11.5 failed
2020/05/20 13:35:25 upgrade Gitea 1.11.5 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/20 13:35:25 upgrade Gitea 1.11.5 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/20 13:35:41 start Gitea: begin to start version 1.11.4
2020/05/20 13:35:42 start Gitea 1.11.4 Begin pre-load apparmor
2020/05/20 13:35:42 start Gitea 1.11.4 End pre-load apparmor ret=[0]
2020/05/20 13:35:42 start Gitea 1.11.4 Begin start-stop-status start
2020/05/20 13:35:42 start Gitea 1.11.4 End start-stop-status start ret=[0]
2020/05/20 13:35:44 start Gitea: start version 1.11.4 successfully, result 0

Any idea what is causing the problem?

1 Like

Hi!

I’d like to know if and how you upgraded Gitea. Do you remember, by any chance?

Thanks!

Hi,
after two years there is a community package available from Synocommunity/Package manager on NAS SynoCommunity

Im trying to keep it up to date, and it is possible to autoupdate througt Package Manager so I would stick with it.

If you are running some older Gitea package (before version 1.15.9-1) best shot would be to make backup manually, uninstall old package and instal Synocommunity one.

If you have any questions feel free to ask. Cheers

1 Like