Unzip on Docker Gitea 1.16.5 amd64 seems to be failing #8816

Closed
opened 2025-11-02 08:19:45 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @99rgosse on GitHub (Apr 12, 2022).

Description

Steps :

  • 1 Download docker gitea 1.16.5-amd64
  • 2 copy some previous gitea dump backup inside
  • 3 unzip leads to error :

root@ubuntu-bionic:~# docker exec -it gitea /bin/bash
bash-5.1# cd backup/
bash-5.1# ls
gitea-dump-1649701143.zip gnupg.tar
bash-5.1# unzip gitea-dump-1649701143.zip
Archive: gitea-dump-1649701143.zip
unzip: short read

Now if you do inside the container
apk upgrade && apk add zip

then you can deflate correctly the gitea dump.

Gitea Version

1.16.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.27

Operating System

Linux

How are you running Gitea?

Inside a vagrant machine and with docker

Database

PostgreSQL

Originally created by @99rgosse on GitHub (Apr 12, 2022). ### Description Steps : - 1 Download docker gitea 1.16.5-amd64 - 2 copy some previous gitea dump backup inside - 3 unzip leads to error : > root@ubuntu-bionic:~# docker exec -it gitea /bin/bash > bash-5.1# cd backup/ > bash-5.1# ls > gitea-dump-1649701143.zip gnupg.tar > bash-5.1# unzip gitea-dump-1649701143.zip > Archive: gitea-dump-1649701143.zip > unzip: short read Now if you do inside the container `apk upgrade && apk add zip` then you can deflate correctly the gitea dump. ### Gitea Version 1.16.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version > 2.27 ### Operating System Linux ### How are you running Gitea? Inside a vagrant machine and with docker ### Database PostgreSQL
GiteaMirror added the type/upstream label 2025-11-02 08:19:45 -06:00
Author
Owner

@99rgosse commented on GitHub (Apr 12, 2022):

Do you think it is better to modify the Dockerfile to add the commands, or should I file an issue to alpine / busybox ?

@99rgosse commented on GitHub (Apr 12, 2022): Do you think it is better to modify the Dockerfile to add the commands, or should I file an issue to alpine / busybox ?
Author
Owner

@techknowlogick commented on GitHub (Apr 12, 2022):

Please open an issue with alpine, as we try to modify as little with the base image as we can manage.

@techknowlogick commented on GitHub (Apr 12, 2022): Please open an issue with alpine, as we try to modify as little with the base image as we can manage.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8816