You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to migrate Gogs from Windows Server 2019 to a Linux VM running Ubuntu 22.04.5. On both sides the Gogs version is
0.12.3. I can access Gogs on Linux side, currently without repository. I could execute the backup command on Windows side and got a ZIP file. I executed the following restore command on Linux side: $ sudo ./gogs/gogs restore --from=/home/dco/Documents/gogs-restore/gogs-backup-20250206133547.zip --verbose --config gogs/custom/conf/app.ini
I got the following error:
2025/02/06 14:26:08 [ INFO] Restore backup from: /home/dco/Documents/gogs-restore/gogs-backup-20250206133547.zip
2025/02/06 14:26:08 [FATAL] [....io/gogs/internal/cmd/restore.go:58 runRestore()] Failed to extract backup archive: zip: not a valid zip file
I supposed the ZIP format could differ between Windows and Linux. So extracted the files from the ZIP on Linux (without any problem) and compressed them again to get a Linux-made ZIP backup file. When I try to restore it, I get another error: $ sudo ./gogs/gogs restore --from=/home/dco/Documents/gogs-restore/zip-20250206133547.zip --verbose --config gogs/custom/conf/app.ini
As you can see, the file metadata.ini is extracted, but declared as missing... Could someone please give me an explanation?
I found these discussions about this file, but do not think it is the same problem:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to migrate Gogs from Windows Server 2019 to a Linux VM running Ubuntu 22.04.5. On both sides the Gogs version is
0.12.3. I can access Gogs on Linux side, currently without repository. I could execute the backup command on Windows side and got a ZIP file. I executed the following restore command on Linux side:
$ sudo ./gogs/gogs restore --from=/home/dco/Documents/gogs-restore/gogs-backup-20250206133547.zip --verbose --config gogs/custom/conf/app.ini
I got the following error:
I supposed the ZIP format could differ between Windows and Linux. So extracted the files from the ZIP on Linux (without any problem) and compressed them again to get a Linux-made ZIP backup file. When I try to restore it, I get another error:
$ sudo ./gogs/gogs restore --from=/home/dco/Documents/gogs-restore/zip-20250206133547.zip --verbose --config gogs/custom/conf/app.ini
As you can see, the file metadata.ini is extracted, but declared as missing... Could someone please give me an explanation?
I found these discussions about this file, but do not think it is the same problem:
Beta Was this translation helpful? Give feedback.
All reactions