appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: SSH Misconfiguration error when connecting to Forgejo repository

Open LagunaElectric opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

When connecting my app to Git it says SSH key misconfiguration. I added my deploy key to the repository in Forgejo with write access as directed.

The user sees this error in their logs related to this. Summary:

backend stdout | [2024-02-15 18:40:43,570] userEmail=REDACTED, sessionId=1c667c51-1449-4b0f-a8ee-3f351da9e58b, thread=boundedElastic-40, requestId=0a6721d1-70ff-4be8-ba55-e64e1370ef40 - boundedElastic-40: Cloning the repo from the remote [email protected]:CornerstoneEngineering/ArchiveRehydrator.git
backend stdout |
backend stdout | [2024-02-15 18:40:44,158] userEmail=REDACTED, sessionId=1c667c51-1449-4b0f-a8ee-3f351da9e58b, thread=boundedElastic-40, requestId=0a6721d1-70ff-4be8-ba55-e64e1370ef40 - Error while cloning the remote repo,
backend stdout | org.eclipse.jgit.api.errors.TransportException: [email protected]:CornerstoneEngineering/ArchiveRehydrator.git: Auth fail

...

backend stdout | [2024-02-15 18:40:44,179] userEmail=REDACTED, sessionId=1c667c51-1449-4b0f-a8ee-3f351da9e58b, thread=boundedElastic-40, requestId=0a6721d1-70ff-4be8-ba55-e64e1370ef40 -
backend stdout | com.appsmith.server.exceptions.AppsmithException: SSH key is not configured correctly. Did you forget to add the SSH key to your remote repository? Please try again by reconfiguring the SSH key with write access.
backend stdout |        at com.appsmith.server.services.ce.GitServiceCEImpl.lambda$connectApplicationToGit$40(GitServiceCEImpl.java:774)
backend stdout |        Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
backend stdout | Error has been observed at the following site(s):
backend stdout |        *__checkpoint ⇢ Handler com.appsmith.server.controllers.GitController#connectApplicationToRemoteRepo(String, GitConnectDTO, String) [DispatcherHandler]

I expect my app to be connected after following the instructions.

Steps To Reproduce

  1. Spin up a Forgejo instance.
  2. Create a new repository in Forgejo.
  3. Open Appsmith and edit any app not connected to git.
  4. Follow the steps to connect the app using the Forgejo repository up until adding the deploy key.
  5. Add the deploy key to the Forgejo repository with write access.
  6. Click Connect button.
  7. Observe SSH key misconfiguration error in the UI.

Public Sample App

No response

Environment

Production

Issue video log

https://www.loom.com/share/8a3dea5ff29d429ea78bb2f90db03199

Version

Self Hosted 1.10

Front logo Front conversations

LagunaElectric avatar Feb 15 '24 21:02 LagunaElectric

Hey there! I'm the user who submitted the original support post. I was asked what version of Appsmith I'm using. Here's some details:

  • Appsmith v1.12 (Released 11 hours ago)
  • Image name & label: appsmith/appsmith-ee:latest
  • Image hash: 56678b56457ca75aac37cbb75907a900292ce5ef65c346e3cfd21478af50efa1

Forgejo:

  • Forgejo 1.21.5
  • Image name & label: codeberg.org/forgejo/forgejo:1.21.5-0
  • Image hash: be3e885ef567ec88ceaef54f6e37a5df953bf1971790f72ab18dee14e9336f83
  • Created: 2024-01-31 11:32:12

If anything else is required from me, let me know and I'll get back to ya'll.

cswimr avatar Feb 15 '24 21:02 cswimr