Skip to content
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

Adding Deploy key fails on Rootless Docker image #27535

Closed
picsel2 opened this issue Oct 9, 2023 · 0 comments · Fixed by #27536
Closed

Adding Deploy key fails on Rootless Docker image #27535

picsel2 opened this issue Oct 9, 2023 · 0 comments · Fixed by #27536

Comments

@picsel2
Copy link
Contributor

picsel2 commented Oct 9, 2023

Description

I recently migrated from a plain systemd service to the rootless docker image.

Adding a deploy key fails now with an internal server error (HTTP 500) and the page displays the message:

AddDeployKey, calcFingerprintSSHKeygen: 'ssh-keygen -lf /tmp/gitea/gitea_keytest3938037311' failed with error 'exec: "ssh-keygen": executable file not found in $PATH': 

I use the OpenSSH server of the host and passthrough.
The internal ssh server is disabled and the SSH_KEYGEN_PATH option is deliberately set to "".

#23363 describes a similar issue.

Using here the same condition as in the other issue seems to fix it for me.

Gitea Version

v1.20.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu 20.04 + podman 3.4 + rootless image

How are you running Gitea?

I use the rootless docker image from docker hub (rootless-latest).
I run it using systemd service units that executes a podman container (generated with podman generate).

Database

SQLite

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant