Browse Source

Fixed post.

master
Franco Masotti 2 months ago
parent
commit
1186a6f8d5
Signed by: frnmst GPG Key ID: 24116ED85666780A
  1. 18
      _posts/2021-09-13-problems-and-solutions-with-gitea-1-15.md

18
_posts/2021-09-13-problems-and-solutions-with-gitea-1-15.md

@ -1,7 +1,7 @@
---
title: Problems and solutions with Gitea 1.15
tags: [tutorial, gitea, mariadb, postgresql]
updated: 2021-09-13 14:48:00
updated: 2021-09-23 17:38:30
description: This blog is now self-hosted
---
@ -560,13 +560,20 @@ QUEUE_CONN_STR = network=unix,addr=/var/run/redis/redis-server.sock,db=2,pool_si
2. copy the original database into a new one
```shell
sudo -i -u postgres
psql
```
```sql
CREATE DATABASE backup_giteadb_1.15.2 WITH TEMPLATE giteadb;
CREATE DATABASE backup_giteadb_1_15_2 WITH TEMPLATE giteadb;
```
3. run the doctor on the original database
```shell
exit
sudo -i -u gitea
HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea /usr/bin/gitea -c /etc/gitea/app.ini doctor --all
HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea /usr/bin/gitea -c /etc/gitea/app.ini doctor --all --fix
```
@ -574,6 +581,8 @@ QUEUE_CONN_STR = network=unix,addr=/var/run/redis/redis-server.sock,db=2,pool_si
4. update Gitea
```shell
exit
sudo -i
apt-mark unhold gitea
apt-get update
apt-get dist-upgrade
@ -582,6 +591,8 @@ QUEUE_CONN_STR = network=unix,addr=/var/run/redis/redis-server.sock,db=2,pool_si
5. migrate the database
```bash
exit
sudo -i -u gitea
HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea /usr/bin/gitea -c /etc/gitea/app.ini migrate
```
@ -595,8 +606,11 @@ QUEUE_CONN_STR = network=unix,addr=/var/run/redis/redis-server.sock,db=2,pool_si
2. re-enable the service
```shell
exit
sudo -i
systemctl unmask gitea.service
systemctl start gitea.service
apt-mark hold gitea
```
### Apache2 reverse proxy for Gitea

Loading…
Cancel
Save