@Joulinar Thanks, good tips and hints where to look! No I guess, I remember I had to change the ssd image of the dietpi installation because of assumed previous issues. At least that is my best guess. I can’t remember of a script. And it was for sure running once. Do you know some places of scripts of GItea (guess not, because you do not use it)
I guess I have found the service (did not mention yesterday!) here (and all my findings on / I could find besides /home/git:
-rwxr-xr-x 1 root root 45747928 25. Jul 2022 /usr/local/bin/gitea
drwxr-xr-x 2 gitea gitea 4096 28. Jan 22:19 /var/log/gitea
-rwxr-xr-x 1 gitea gitea 132160264 28. Jan 22:18 /mnt/dietpi_userdata/gitea
-rwxr-xr-x 1 gitea gitea 132160264 28. Jan 22:18 /mnt/dietpi_userdata/gitea/gitea
drwx------ 2 mysql mysql 4096 25. Jul 2022 /mnt/dietpi_userdata/mysql/gitea
The mysql data base is under control of mysql user. Could that be an access problem?
Do you know if this installation could be only a stub with missing rights. I am thinking of the possibility, that when I tried to install it acc. your description, it failed maybe because of either non existing dirs in /mnt or missing rights creating it (because web browser does not have su rights)?? Any hints what I can do more here, with the service, options, rights?
In the end : How can I soberly (re)set up this process again?
[EDIT]
The service fails with demanding a lower version, it no longer supports auto-migration, oops!:
● gitea.service - Gitea (DietPi)
Loaded: loaded (/etc/systemd/system/gitea.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-01-29 02:42:41 CET; 10h ago
Process: 1004 ExecStart=/mnt/dietpi_userdata/gitea/gitea web (code=exited, status=1/FAILURE)
Main PID: 1004 (code=exited, status=1/FAILURE)
CPU: 3.139s
Jan 29 02:29:02 Server gitea[1004]: 2024/01/29 02:29:02 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run install page
Jan 29 02:29:04 Server gitea[1004]: 2024/01/29 02:29:04 cmd/web.go:304:listen() [I] Listen: http://0.0.0.0:3000
Jan 29 02:29:04 Server gitea[1004]: 2024/01/29 02:29:04 cmd/web.go:308:listen() [I] AppURL(ROOT_URL): http://localhost:3000/
Jan 29 02:29:04 Server gitea[1004]: 2024/01/29 02:29:04 ...s/graceful/server.go:70:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3000 on PID: 1004
Jan 29 02:42:41 Server gitea[1004]: 2024/01/29 02:42:41 ...s/install/install.go:225:checkDatabase() [I] Gitea will be installed in a database with: hasPostInstallationUser=false, dbMigrationVersion=58
Jan 29 02:42:41 Server gitea[1004]: 2024/01/29 02:42:41 ...ations/migrations.go:616:Migrate() [F] Gitea no longer supports auto-migration from your previously installed version.
Jan 29 02:42:41 Server gitea[1004]: Please try upgrading to a lower version first (suggested v1.6.4), then upgrade to this version.
Jan 29 02:42:41 Server systemd[1]: gitea.service: Main process exited, code=exited, status=1/FAILURE
Jan 29 02:42:41 Server systemd[1]: gitea.service: Failed with result 'exit-code'.
Jan 29 02:42:41 Server systemd[1]: gitea.service: Consumed 3.139s CPU time.
Ok, now the solution path seems clearer! But again, what would you do?
After restart of the service the web config page is available again, but the error remains even with your recommended default values (and only them). So the last thing which can differ IMHO is the gitea data base itself which scheme is not fitting?? How can I transform this database then?