500 error on deleting account #8369
Labels
issue/regression
Indicates a previously functioning feature or behavior that has broken or regressed after a change
type/bug
Milestone
[x]
):Description
After deploying Gitea on a clean machine, with SSH and HTTPS disabled, we get a 500 error when a user attempts to delete their account. See the gist above for a syslog snippet from immediately after the request.
Attempting to delete the user from the admin page also fails, although it doesn't display a 500 error - just doesn't do anything.
After a bit of investigation we found that the user that Gitea is running as doesn't have a
.ssh
directory in their homedir. This causes the error [re-]generatingauthorized_keys
seen at the end of the log. Creating the directory manually fixes the issue.This has only become an issue since upgrading from 1.8.0 to 1.9.3. We wondered if the problem could be somehow related to the move away from sshkeygen here: https://github.com/go-gitea/gitea/pull/7128/files
The text was updated successfully, but these errors were encountered: