Skip to content

Problem: Failed updating repository: parsing private key: ssh: no key found #3314

@bandrebagassi

Description

@bandrebagassi

Issue

Trying to access a Gitlab repository with an SSH Deploy Key (Gitlab) and Semaphore.
Steps I did:

  • Create a ssh key on macOS
  • Uploaded public key via Deploy Key on Gitlab
  • Added the Private Key into Semaphore Key Store
  • Create new Repository, using our gitlab address and SSH as protocol
  • Starting a task will result as an error

Error:

Failed updating repository: parsing private key: ssh: no key found
Failed to run task: parsing private key: ssh: no key found

I checked error logs, and there is nothing more visible then this
Also checked if the Key is in the PG database, which is the case.

What I'm not really sure about, as the documentation is not mentioning this, does the SSH key for accessing a Gitlab repository needs to be in .ssh folder within the user which starts the application ?

Would be great if someone has a hint.

Thanks

Impact

Web-Frontend (what users interact with)

Installation method

Package

Database

Postgres

Browser

Chrome

Semaphore Version

2.16.31-d14fa6b-1758101338

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

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