Skip to content

Adding Deploy key fails on Rootless Docker image #27535

Closed
@picsel2

Description

@picsel2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions