Gitea: Restore backup failed

I think that it won’t help, given the last logs shared:

  1. The service started at 23:27:40: 2025-09-13 23:27:39,729: DEBUG - + systemctl start gitea
  2. The journalctl output gets the log the restore script is supposed to catch to consider the service started less than 1 sec after: 2025-09-13 23:32:40,439: WARNING - […] new Web server: tcp:127.0.0.1:6000 on PID: 330472
  3. But (what I believe is) the log file located at /var/log/gitea/gitea.log prints logs that are 2 months old: 2025-09-13 23:32:40,443: […] [I] Starting new Web server: tcp:127.0.0.1:6000 on PID: 1352
  • I say believe and I am not assertive because some lines ago we can see this line executed: 2025-09-13 23:32:40,439: DEBUG - + tail --lines=20 /var/log/gitea/gitea.log. My guess is that the output takes time to be flushed and in the meantime few commands are executed.

(by the way, it’s “didn’t execute” without the final d)

Oh, true…
Willing to make a PR? :slight_smile: (Otherwise, I can do that)

1 Like

I still wonder whether your backup contains log files and their ownership. If that’s OK for you, could you share the output of this command that list a subfolder of your archive? (:warning: Before sharing, check that it does not contain info you would not like to share)

# Please replace `YOUR_BACKUP` by the backup name you try to restore
tar tfv /home/yunohost.backup/archives/YOUR_BACKUP.tar "apps/gitea/backup"

No problem—here’s the log.

The only thing I deleted was the information about the nearly 80 Git projects in there.

i hope that helps :slight_smile:

root@maechler:/home/yunohost.backup/archives# ls
20250804-062441.info.json  20250804-062441.tar
root@maechler:/home/yunohost.backup/archives# tar tfv 20250804-062441.tar "apps/gitea/backup"
drwxr-x--- gitea/gitea       0 2025-07-08 12:01 apps/gitea/backup/var/www/gitea/
drwxr-x--- gitea/gitea       0 2025-01-13 12:31 apps/gitea/backup/var/www/gitea/custom/
drwxr-x--- gitea/gitea       0 2025-07-08 12:01 apps/gitea/backup/var/www/gitea/custom/conf/
-rw-r----- gitea/gitea    2980 2025-07-08 12:01 apps/gitea/backup/var/www/gitea/custom/conf/app.ini
-rwxr-x--x gitea/gitea 113168376 2025-06-20 22:37 apps/gitea/backup/var/www/gitea/gitea
drwxr-x--- gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/
drwx------ gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/.ssh/
-rw------- gitea/gitea       276 2025-01-13 12:33 apps/gitea/backup/home/yunohost.app/gitea/.ssh/authorized_keys
drwxrwxrwx gitea/gitea         0 2025-01-16 00:46 apps/gitea/backup/home/yunohost.app/gitea/data/
drwxr-xr-x gitea/gitea         0 2025-01-16 00:46 apps/gitea/backup/home/yunohost.app/gitea/data/actions_artifacts/
drwxr-xr-x gitea/gitea         0 2025-01-16 00:46 apps/gitea/backup/home/yunohost.app/gitea/data/actions_log/
drwxrwxrwx gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/attachments/
drwxrwxrwx gitea/gitea         0 2025-01-13 12:47 apps/gitea/backup/home/yunohost.app/gitea/data/avatars/
-rw-r--r-- gitea/gitea    199822 2025-01-13 12:47 apps/gitea/backup/home/yunohost.app/gitea/data/avatars/81148d540ff847759611ed3d759df789f33494951a940f9dc521b155c7b60e55
drwxr-xr-x gitea/gitea         0 2025-01-13 12:47 apps/gitea/backup/home/yunohost.app/gitea/data/avatars/tmp/
drwxr-xr-x gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/home/
-rw-r--r-- gitea/gitea       379 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/home/.gitconfig
drwx------ gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/indexers/
drwx------ gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/indexers/issues.bleve/
-rw-r--r-- gitea/gitea        42 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/indexers/issues.bleve/index_meta.json
-rw-r--r-- gitea/gitea        13 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/indexers/issues.bleve/rupture_meta.json
drwx------ gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/indexers/issues.bleve/store/
-rw------- gitea/gitea     65536 2025-07-26 22:49 apps/gitea/backup/home/yunohost.app/gitea/data/indexers/issues.bleve/store/root.bolt
drwxr-xr-x gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/jwt/
-rw------- gitea/gitea      3272 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/jwt/private.pem
drwxr-xr-x gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/lfs/
drwxr-xr-x gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/packages/
drwxr-xr-x gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/queues/
drwxr-xr-x gitea/gitea         0 2025-07-26 22:49 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/
-rw-r--r-- gitea/gitea       163 2025-01-16 00:52 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/000011.ldb
-rw-r--r-- gitea/gitea      7043 2025-08-01 05:08 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/000087.log
-rw-r--r-- gitea/gitea       581 2025-07-26 22:49 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/000089.ldb
-rw-r--r-- gitea/gitea        16 2025-07-26 22:48 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/CURRENT
-rw-r--r-- gitea/gitea        16 2025-07-26 22:48 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/CURRENT.bak
-rw-r--r-- gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/LOCK
-rw-r--r-- gitea/gitea     22868 2025-07-26 22:49 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/LOG
-rw-r--r-- gitea/gitea       519 2025-07-26 22:49 apps/gitea/backup/home/yunohost.app/gitea/data/queues/common/MANIFEST-000088
drwxr-xr-x gitea/gitea         0 2025-08-01 05:05 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/
drwxr-xr-x gitea/gitea         0 2025-05-23 08:23 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/29/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/3e/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/41/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/60/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/85/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/c2/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/1/fe/
drwxr-xr-x gitea/gitea         0 2025-02-20 23:48 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/
drwxr-xr-x gitea/gitea         0 2025-02-22 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/03/
drwxr-xr-x gitea/gitea         0 2025-02-05 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/96/
drwxr-xr-x gitea/gitea         0 2025-02-22 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/a7/
drwxr-xr-x gitea/gitea         0 2025-02-22 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/a9/
drwxr-xr-x gitea/gitea         0 2025-02-22 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/cc/
drwxr-xr-x gitea/gitea         0 2025-02-22 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/11/dd/
drwxr-xr-x gitea/gitea         0 2025-06-23 07:46 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/
drwxr-xr-x gitea/gitea         0 2025-06-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/11/
drwxr-xr-x gitea/gitea         0 2025-06-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/33/
drwxr-xr-x gitea/gitea         0 2025-04-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/34/
drwxr-xr-x gitea/gitea         0 2025-04-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/82/
drwxr-xr-x gitea/gitea         0 2025-02-26 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/90/
drwxr-xr-x gitea/gitea         0 2025-02-13 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/ba/
drwxr-xr-x gitea/gitea         0 2025-03-23 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/12/e0/
drwxr-xr-x gitea/gitea         0 2025-03-27 09:39 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/14/
drwxr-xr-x gitea/gitea         0 2025-03-28 21:33 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/14/4f/
drwxr-xr-x gitea/gitea         0 2025-03-21 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/14/b5/
drwxr-xr-x gitea/gitea         0 2025-05-11 20:15 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/28/
drwxr-xr-x gitea/gitea         0 2025-05-13 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/28/c5/
drwxr-xr-x gitea/gitea         0 2025-02-18 06:19 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/31/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/31/20/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/31/be/
drwxr-xr-x gitea/gitea         0 2025-05-02 11:20 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/32/
drwxr-xr-x gitea/gitea         0 2025-05-04 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/32/99/
drwxr-xr-x gitea/gitea         0 2025-01-30 00:45 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/4/
drwxr-xr-x gitea/gitea         0 2025-02-01 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/4/79/
drwxr-xr-x gitea/gitea         0 2025-02-18 05:37 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/43/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/43/5f/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/43/80/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/43/a0/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/43/ed/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/43/f1/
drwxr-xr-x gitea/gitea         0 2025-01-16 09:59 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/
drwxr-xr-x gitea/gitea         0 2025-01-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/26/
drwxr-xr-x gitea/gitea         0 2025-01-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/46/
drwxr-xr-x gitea/gitea         0 2025-01-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/69/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/7a/
drwxr-xr-x gitea/gitea         0 2025-01-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/7c/
drwxr-xr-x gitea/gitea         0 2025-01-16 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/b8/
drwxr-xr-x gitea/gitea         0 2025-01-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/c0/
drwxr-xr-x gitea/gitea         0 2025-01-16 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/c1/
drwxr-xr-x gitea/gitea         0 2025-01-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/e5/
drwxr-xr-x gitea/gitea         0 2025-01-16 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/44/fb/
drwxr-xr-x gitea/gitea         0 2025-02-18 02:13 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/10/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/13/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/29/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/2f/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/31/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/32/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/39/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/4f/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/59/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/5c/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/67/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/7f/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/98/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/cb/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/dd/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/de/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/45/f1/
drwxr-xr-x gitea/gitea         0 2025-04-08 13:42 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/
drwxr-xr-x gitea/gitea         0 2025-04-10 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/06/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/2b/
drwxr-xr-x gitea/gitea         0 2025-03-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/3c/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/61/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/6c/
drwxr-xr-x gitea/gitea         0 2025-03-23 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/ab/
drwxr-xr-x gitea/gitea         0 2025-03-23 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/d6/
drwxr-xr-x gitea/gitea         0 2025-04-01 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/f9/
drwxr-xr-x gitea/gitea         0 2025-03-17 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/46/fe/
drwxr-xr-x gitea/gitea         0 2025-02-18 02:42 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/23/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/2f/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/30/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/38/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/45/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/53/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/5a/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/64/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/70/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/74/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/b0/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/47/f8/
drwxr-xr-x gitea/gitea         0 2025-02-18 06:19 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/48/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/48/61/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/48/6a/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/48/a7/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/48/e1/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/48/e6/
drwxr-xr-x gitea/gitea         0 2025-03-25 23:56 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/49/
drwxr-xr-x gitea/gitea         0 2025-03-27 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/49/25/
drwxr-xr-x gitea/gitea         0 2025-04-08 13:41 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/
drwxr-xr-x gitea/gitea         0 2025-04-10 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/04/
drwxr-xr-x gitea/gitea         0 2025-03-31 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/2a/
drwxr-xr-x gitea/gitea         0 2025-03-31 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/76/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/87/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/a6/
drwxr-xr-x gitea/gitea         0 2025-03-31 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/eb/
drwxr-xr-x gitea/gitea         0 2025-04-02 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/51/ee/
drwxr-xr-x gitea/gitea         0 2025-04-12 19:14 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/52/
drwxr-xr-x gitea/gitea         0 2025-04-14 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/52/6f/
drwxr-xr-x gitea/gitea         0 2025-05-20 05:45 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/11/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/4d/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/77/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/7c/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/95/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/d4/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/e3/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/53/f3/
drwxr-xr-x gitea/gitea         0 2025-05-03 08:45 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/
drwxr-xr-x gitea/gitea         0 2025-05-05 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/46/
drwxr-xr-x gitea/gitea         0 2025-05-04 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/58/
drwxr-xr-x gitea/gitea         0 2025-05-05 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/64/
drwxr-xr-x gitea/gitea         0 2025-05-05 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/c9/
drwxr-xr-x gitea/gitea         0 2025-05-05 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/d9/
drwxr-xr-x gitea/gitea         0 2025-05-05 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/e9/
drwxr-xr-x gitea/gitea         0 2025-05-04 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/f3/
drwxr-xr-x gitea/gitea         0 2025-05-04 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/58/f6/
drwxr-xr-x gitea/gitea         0 2025-05-06 14:30 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/59/
drwxr-xr-x gitea/gitea         0 2025-05-06 14:31 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/59/59/
drwxr-xr-x gitea/gitea         0 2025-05-06 14:31 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/59/6d/
drwxr-xr-x gitea/gitea         0 2025-05-06 14:31 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/59/81/
drwxr-xr-x gitea/gitea         0 2025-05-06 14:31 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/59/cb/
drwxr-xr-x gitea/gitea         0 2025-01-30 07:11 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/6/
drwxr-xr-x gitea/gitea         0 2025-02-01 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/6/4d/
drwxr-xr-x gitea/gitea         0 2025-07-24 10:28 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/
drwxr-xr-x gitea/gitea         0 2025-07-26 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/0d/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/1b/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/37/
drwxr-xr-x gitea/gitea         0 2025-05-13 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/42/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/44/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/57/
drwxr-xr-x gitea/gitea         0 2025-05-13 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/74/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/80/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/a8/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/b5/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/b9/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/bd/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/c5/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/cd/
drwxr-xr-x gitea/gitea         0 2025-05-13 23:44 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/60/fa/
drwxr-xr-x gitea/gitea         0 2025-05-23 23:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/62/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/62/07/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/62/1c/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/62/2e/
drwxr-xr-x gitea/gitea         0 2025-05-23 23:34 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/63/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/63/73/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/63/9b/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/63/a7/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/63/b5/
drwxr-xr-x gitea/gitea         0 2025-05-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/63/d0/
drwxr-xr-x gitea/gitea         0 2025-06-23 08:02 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/
drwxr-xr-x gitea/gitea         0 2025-03-23 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/13/
drwxr-xr-x gitea/gitea         0 2025-02-23 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/15/
drwxr-xr-x gitea/gitea         0 2025-01-28 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/64/
drwxr-xr-x gitea/gitea         0 2025-02-13 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/67/
drwxr-xr-x gitea/gitea         0 2025-04-20 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/7a/
drwxr-xr-x gitea/gitea         0 2025-06-25 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/e3/
drwxr-xr-x gitea/gitea         0 2025-02-27 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/7/f5/
drwxr-xr-x gitea/gitea         0 2025-07-17 07:19 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/71/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/71/7c/
drwxr-xr-x gitea/gitea         0 2025-08-01 05:08 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/74/
drwxr-xr-x gitea/gitea         0 2025-08-03 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/74/07/
drwxr-xr-x gitea/gitea         0 2025-08-03 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/74/1d/
drwxr-xr-x gitea/gitea         0 2025-08-03 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/74/3b/
drwxr-xr-x gitea/gitea         0 2025-02-18 05:56 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/8/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/8/9b/
drwxr-xr-x gitea/gitea         0 2025-07-19 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/8/aa/
drwxr-xr-x gitea/gitea         0 2025-04-08 13:43 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/
drwxr-xr-x gitea/gitea         0 2025-03-12 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/0e/
drwxr-xr-x gitea/gitea         0 2025-04-04 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/21/
drwxr-xr-x gitea/gitea         0 2025-03-27 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/2f/
drwxr-xr-x gitea/gitea         0 2025-03-12 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/65/
drwxr-xr-x gitea/gitea         0 2025-03-27 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/a4/
drwxr-xr-x gitea/gitea         0 2025-03-27 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/d3/
drwxr-xr-x gitea/gitea         0 2025-04-10 00:00 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/9/fb/
drwxr-xr-x gitea/gitea         0 2025-08-01 05:08 apps/gitea/backup/home/yunohost.app/gitea/data/repo-archive/tmp/
drwxr-xr-x gitea/gitea         0 2025-01-13 12:31 apps/gitea/backup/home/yunohost.app/gitea/data/repo-avatars/
drwxr-xr-x gitea/gitea         0 2025-07-28 18:47 apps/gitea/backup/home/yunohost.app/gitea/data/tmp/
drwxr-xr-x gitea/gitea         0 2025-08-01 05:50 apps/gitea/backup/home/yunohost.app/gitea/data/tmp/git-repo-content/
drwxrwxrwx gitea/gitea         0 2025-01-13 12:34 apps/gitea/backup/home/yunohost.app/gitea/repositories/
... deleted all info about my repositories 
-rw-r--r-- root/root        1126 2025-07-08 12:01 apps/gitea/backup/etc/nginx/conf.d/git.maechler.cloud.d/gitea.conf
-r-------- root/root         106 2025-07-11 09:20 apps/gitea/backup/etc/fail2ban/jail.d/gitea.conf
-r-------- root/root         124 2025-07-11 09:20 apps/gitea/backup/etc/fail2ban/filter.d/gitea.conf
-r-------- root/root        1805 2025-07-08 12:01 apps/gitea/backup/etc/systemd/system/gitea.service
drwxr-x--- gitea/gitea         0 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/
-rw-r----- roundcube/roundcube 3772 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/gitea.log
-rw-r----- roundcube/roundcube 1801 2025-07-08 12:01 apps/gitea/backup/var/log/gitea/gitea.log.2025-07-08.001.gz
-rw-r----- roundcube/roundcube 1248 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/gitea.log.2025-07-11.001.gz
-rw-r----- roundcube/roundcube 1175 2025-05-23 10:03 apps/gitea/backup/var/log/gitea/router.log
-rw-r----- roundcube/roundcube  276 2025-05-20 08:21 apps/gitea/backup/var/log/gitea/router.log.2025-05-20.001.gz
-rw-r----- roundcube/roundcube  439 2025-05-21 14:34 apps/gitea/backup/var/log/gitea/router.log.2025-05-21.001.gz
-rw-r----- roundcube/roundcube  216 2025-05-23 03:01 apps/gitea/backup/var/log/gitea/router.log.2025-05-23.001.gz
-rw-r----- roundcube/roundcube  684 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/xorm.log
-rw-r----- roundcube/roundcube  321 2025-07-08 12:01 apps/gitea/backup/var/log/gitea/xorm.log.2025-07-08.001.gz
-rw-r----- roundcube/roundcube  222 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/xorm.log.2025-07-11.001.gz
drwx------ root/root              0 2025-08-04 08:24 apps/gitea/backup/
-rw-r--r-- root/root         480793 2025-08-04 08:24 apps/gitea/backup/db.sql
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/fail2ban/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/fail2ban/filter.d/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/fail2ban/jail.d/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/nginx/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/nginx/conf.d/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/nginx/conf.d/git.maechler.cloud.d/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/systemd/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/etc/systemd/system/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/home/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/home/yunohost.app/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/var/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/var/log/
drwxr-xr-x root/root              0 2025-08-04 08:24 apps/gitea/backup/var/www/


#8058 lines of c
1 Like

Bingo! So we have encountered the same kind of issue. The problem is that you do have the logs in your backup, owned by the wrong user

-rw-r----- roundcube/roundcube 3772 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/gitea.log
-rw-r----- roundcube/roundcube 1801 2025-07-08 12:01 apps/gitea/backup/var/log/gitea/gitea.log.2025-07-08.001.gz
-rw-r----- roundcube/roundcube 1248 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/gitea.log.2025-07-11.001.gz
-rw-r----- roundcube/roundcube 1175 2025-05-23 10:03 apps/gitea/backup/var/log/gitea/router.log
-rw-r----- roundcube/roundcube  276 2025-05-20 08:21 apps/gitea/backup/var/log/gitea/router.log.2025-05-20.001.gz
-rw-r----- roundcube/roundcube  439 2025-05-21 14:34 apps/gitea/backup/var/log/gitea/router.log.2025-05-21.001.gz
-rw-r----- roundcube/roundcube  216 2025-05-23 03:01 apps/gitea/backup/var/log/gitea/router.log.2025-05-23.001.gz
-rw-r----- roundcube/roundcube  684 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/xorm.log
-rw-r----- roundcube/roundcube  321 2025-07-08 12:01 apps/gitea/backup/var/log/gitea/xorm.log.2025-07-08.001.gz
-rw-r----- roundcube/roundcube  222 2025-07-11 01:13 apps/gitea/backup/var/log/gitea/xorm.log.2025-07-11.001.gz

Could you try this:

yunohost app upgrade gitea -u https://github.com/fflorent/gitea_ynh/tree/patch-1

You will be prompted to be careful and trust the source.

You can review the diff with the upstream project in this PR:

thanks for this solutions - but i cant upgrade something that isnt installed. when i am not able to restore it - and everything is gone - i can not upgrade :slight_smile: you see my dilema

Can you tell me where exactly this code is located in yunohost? I could edit it myself with nano.

mkdir -p "/var/log/$app"
chmod -R "$app:$app" "/var/log/$app"

perhaps that would fix the problem and i dont need wo wait till a new gitea version is released…

Download the backup
Look for the restore script
Add the chown after mkdir -p "/var/log/$app"
Save it and recompress the backup
Upload it to the server and restore it

thats why i asked

in the gitea backup there is no restore script. i found one in the system backup file

but tell me the path to the online version and i can edit there…

apps/gitea/scripts
Inside that folder you’ll find the restore script
After the mkdir -p "/var/log/$app" line add a new line with chown -R "$app:$app" "/var/log/$app"

1 Like