I’ve searched a lot both online, in gitea’s github issues, and in these forums for help, but none of what I had found had been helpful, so I’m not posting a new topic to get help from the community.
Information about the server: it’s running version 1.15.9 with the plan of upgrading this to the latest release (incrementally) after it is successfully restored to a new server. It’s running in Docker.
Steps to Reproduce Issue:
The backup on the old server was conducted using the steps here
Backup and Restore | Gitea Documentation
Then the backed up
gitea-dump-1699660123.zipgets created. I can download that to my desktop computer and it unzips without any issues.
gitea-dump-1699660123.zipto the new server & that works fine.
docker cp gitea-dump-1699660123.zip gitea:/tmp/to copy the backup into the docker container.
ISSUE #1: I open a shell in the docker container and run
unzip gitea-dump-1699660123.zipwhich results in the following:
Archive: gitea-dump-1699660123.zip unzip: short read
I’m unable to get past the above ISSUE #1, so I try the same process on 2 different servers, which give the same result.
I then try something new and unzip
gitea-dump-1699660123.zipin a directory outside of docker and decide to
docker cp everyhingsuch as:
docker cp app.ini gitea:/tmp/ docker cp data/ gitea:/tmp/data docker cp repos/ gitea:/tmp/repos
I then run the restore process as outlined here Backup and Restore | Gitea Documentation
ISSUE #2: This appears to work and users are able to login, but clicking on any repo gives an
Internal Server Error 500.
I then set
app.ini& restart the gitea server.
Now when I click on any of the repos on the new server, I get the following error message:
An error has occurred: exit status 128 - fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
It’s not clear how to troubleshoot this issue, so I spun up a brand new VPS and got stuck again extracting the backup:
bash-5.1$ unzip gitea-dump-1699660123.zip Archive: gitea-dump-1699660123.zip unzip: short read
Does anyone have any ideas on things to try to restore from the backup successfully?