gitea icon indicating copy to clipboard operation
gitea copied to clipboard

update.sh fails for v1.17.0

Open germgerm opened this issue 3 years ago • 2 comments

Description

$ gitea-update -v 1.17.0 Checking currently installed version... Make sure to read the changelog first: https://github.com/go-gitea/gitea/blob/main/CHANGELOG.md Are you ready to update Gitea from 1.16.7 to 1.17.0? (y/N) y Upgrading gitea from 1.16.7 to 1.17.0 ... Downloading https://dl.gitea.io/gitea/1.17.0/gitea-1.17.0-linux-amd64.xz... curl: (23) Failed writing body (0 != 632) curl: (23) Failed writing body (0 != 94) curl: (23) Failed writing body (0 != 641)

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

ubuntu 16.04

How are you running Gitea?

downloaded binary

Database

MySQL

germgerm avatar Aug 01 '22 17:08 germgerm

It seems that the curl can not write the downloaded content into the file on disk.

Try to do curl ... -O ... on your side to see if there is a problem (in the gitea home directory, see https://github.com/go-gitea/gitea/blob/main/contrib/upgrade.sh#L15 , https://github.com/go-gitea/gitea/blob/main/contrib/upgrade.sh#L90-L96)

wxiaoguang avatar Aug 02 '22 03:08 wxiaoguang

I modified the script and saw that it was a permissions issue - so I assume that sudo is required - haven't tried as I had already updated manually

germgerm avatar Aug 02 '22 18:08 germgerm