Skip to content

"Could not read from remote repository" after update to 1.20.2 #26516

Closed
@veita

Description

@veita

Description

After update to 1.20.2 Git commands like git clone failed with message "could not read from remote repository".

Trying to connect with ssh gitea@host.example.org revealed the error behind the error:

PTY allocation request failed on channel 0
2023/08/15 10:35:41 ...s/setting/setting.go:109:LoadCommonSettings()
[F] Unable to load settings from config: unable to create chunked upload directory:
/usr/local/bin/data/tmp/package-upload (mkdir /usr/local/bin/data: permission denied)
Connection to host.example.org closed.

/usr/local/bin/ is the location of the Gitea binary. It has permissions drwxr-xr-x.

The running Gitea instance reports

App Data Path          /var/lib/gitea/data
Repository Root Path   /repo/gitea
Custom File Root Path  /var/lib/gitea/custom
Log Path               /var/log/gitea

on its web GUI.

The working directory of the Gitea process is /var/lib/gitea.

CHUNKED_UPLOAD_PATH is not present in app.ini. INSTALL_LOCK is set to true.

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

git version 2.39.2

Operating System

Debian 12 Bookworm

How are you running Gitea?

Gitea binary downloaded from https://github.com/go-gitea/gitea/releases/download/ and run as a Systemd service as user gitea.

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions