Closed
Description
Gitea Version
commit d6f4820
Git Version
2.33.0
Operating System
Debian 11
How are you running Gitea?
Built from source with Go 1.17.2, Node 14.17.6 (npm 6.14.15), GNU Make 4.2.1 on Ubuntu 20.04. Gitea instance runs on Debian 11 LXD container (host is Ubuntu 20.04) with systemd service.
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
(not relevant)
Description
Whenever I push to my Gitea instance via git push
, I got this error:
2021/11/04 11:05:59 ...s/setting/setting.go:695:NewContext() [F] Failed to create the directory for app data path '/opt/gitea/data'
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
It seems like Gitea ignores WorkingDirectory
directive (systemd) and/or GITEA_WORK_DIR
environment variable and attempts to create data
directory on Gitea prefix (/opt/gitea
), which can't be written by git
user that runs Gitea.
I can clone (and possibly pull) from Gitea instance, though.
The log doesn't log anything for this issue, so it isn't relevant.
This issue can't be reproduced on try instance.
Screenshots
No response