You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug is that Gitea declares a file was modified, but the file does not exist or (if created externally) stays unchanged.
As an admin user, clicking on "Update the '.ssh/authorized_keys' file with Gitea SSH keys" produces the message "The public SSH keys controlled by Gitea have been updated". I've checked that ~git/.ssh/authorized_keys was unchanged, so which file was modified? The action does not appear in the log files of Gitea, even at Trace level. The consequence is that SSH access is broken on this instance.
BTW namei -l ~git/.ssh/authorized_keys shows that the file is writable by the git user, which is the user running gitea and declared in the RUN_USER config variable. I tried to use the documentation to debug more, but the SSH process is unmentioned, apart from vague references in the "Troubleshouting" page (the various terms "user", "repository", "directory"… are unclear, because there are several of them).
The text was updated successfully, but these errors were encountered:
The problem was that the homedir of the "git" user was overwritten when running gitea web. I suggest to update the file /contrib/systemd/gitea.service and replace the line
The unix user is already declared in the ".service" file, so these environment variables will be automatically filled. Overwriting HOME can only lead to hard-to-track errors.
[x]
):Description
The bug is that Gitea declares a file was modified, but the file does not exist or (if created externally) stays unchanged.
As an admin user, clicking on "Update the '.ssh/authorized_keys' file with Gitea SSH keys" produces the message "The public SSH keys controlled by Gitea have been updated". I've checked that
~git/.ssh/authorized_keys
was unchanged, so which file was modified? The action does not appear in the log files of Gitea, even at Trace level. The consequence is that SSH access is broken on this instance.BTW
namei -l ~git/.ssh/authorized_keys
shows that the file is writable by thegit
user, which is the user runninggitea
and declared in theRUN_USER
config variable. I tried to use the documentation to debug more, but the SSH process is unmentioned, apart from vague references in the "Troubleshouting" page (the various terms "user", "repository", "directory"… are unclear, because there are several of them).The text was updated successfully, but these errors were encountered: