The Digital Ocean one-click droplet for gitea uses snap, which apparently doesn’t cooperate with 1.19.0. YMMV but I converted my snap installation to a binary installation like so:
-
sshinto the droplet asroot. -
Follow the instructions here to download the
giteabinary and move it into position, but stop at the heading “Prepare environment”. -
Instead, the goal is to use the existing environment in the
snapinstallation, which is stored in/var/snap/gitea/common. -
Change the owner and group of this directory to the user
gitand groupgit:chown -R git:git /var/snap/gitea/common -
Follow the instructions here to download a sample
systemctlservice configuration calledgitea.service. -
Update these three lines in
gitea.serviceto point at paths within/var/snap/gitea/common:WorkingDirectory=/var/snap/gitea/common ExecStart=/usr/local/bin/gitea web --config /var/snap/gitea/common/conf/app.ini Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/snap/gitea/common -
Follow the rest of the instructions to automatically start the service on reboot.
systemctl enable gitea