appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.77k stars 3.63k forks source link

[Bug]: Git | Unable to connect to Git with root SSH #20400

Open Aishwarya-U-R opened 1 year ago

Aishwarya-U-R commented 1 year ago

Is there an existing issue for this?

Description

Screenshot 2023-02-06 at 3 13 08 PM

Steps To Reproduce

  1. Pull TED - which hosts Gitea at 3000
  2. Open Appsmith app & connect to Git via - ssh://root@host.docker.internal:Cypress/123dsdsf.git
  3. Generate Key & add it to the Gitea Deploy keys into this Repo
  4. Click Connect from Appsmith
  5. Observe: GIT ACTION EXECUTION ERROR Git command execution error: Exception caught during execution of fetch command
  6. Expected: The Git connection should work fine & user should be able to proceed

Public Sample App

No response

Issue video log

No response

Version

Cloud/Release v1.9.6

AnaghHegde commented 1 year ago

@Aishwarya-U-R Is this an issue you are able to reproduce locally? If it is intermittent then can we reduce the priority?

Aishwarya-U-R commented 1 year ago

Yes it is occurring & always. We are testing it locally & unless this passes - we cant run it in CI.

AnaghHegde commented 1 year ago

The connection URL ssh://root@host.docker.internal:Cypress/123dsdsf.git is this the actual git repo url? I am not sure if the jgit supports redirections for a ssh command.

Aishwarya-U-R commented 1 year ago

@AnaghHegde - Yes it is actual url for gitea ssh that is installed & running as part of TED locally. cc: @yatinappsmith

AnaghHegde commented 1 year ago

@Aishwarya-U-R What error do you seen when you try to ssh from the terminal from your local machine?

If the gitea is running inside the TED, is the PORT 22 available? Have you verified this?