-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Could not read from remote repository" after update to 1.20.2 #26516
Comments
A workaround for this bug is to explicitly set
in |
Check your |
Thank you very much! |
The Systemd unit file used is based on https://github.com/go-gitea/gitea/blob/main/contrib/systemd/gitea.service.
It seems that neither |
GITEA_WORK_DIR still have effects, but they do not have effect on "ssh" related commands (they didn't in old versions either, and only caused bugs) The work-path problem is quite longstanding, it used to cause various unfixable bugs. 1.20.x has a complete fix for it: That PR has been marked as "breaking", while it should be pretty transparent to users whose Gitea instance could write its app.ini. |
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:/usr/local/bin/
is the location of the Gitea binary. It has permissionsdrwxr-xr-x
.The running Gitea instance reports
on its web GUI.
The working directory of the Gitea process is
/var/lib/gitea
.CHUNKED_UPLOAD_PATH
is not present inapp.ini
.INSTALL_LOCK
is set totrue
.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
The text was updated successfully, but these errors were encountered: