Timeout when verifying git connection

Hey y’all,

we are using an on-prem installation of gitea and the connection to rasa x doesn’t seem to work. I am specifying the ssh url, as well as the new branch. I switch over to gitea and create a new deploy key with write permissions to the repository.

When clicking “Verify Connection”, the page does not respond and after half a minute the following will appear in my rasax_rasa-x_1 service log.

/usr/local/lib/python3.7/site-packages/rasax/community/services/integrated_version_control/git_service.py:898: UserWarning: An error happened when trying to access '[email protected]:29420/user/rasa-chatbot.git'. It seems you don't have to correct permissions for this repository. Please check if your credentials are correct and you have write permissions in the given repository. The error was: Cmd('git') failed due to: exit code(128)
  cmdline: git clone --depth=1 -v [email protected]:29420/user/rasa-chatbot.git /tmp/tmp7dm0v32w
  stderr: 'Cloning into '/tmp/tmp7dm0v32w'...
ssh: connect to host gitea... port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
'.
  f"An error happened when trying to access '{repository_url}'. It seems "
ERROR:rasax.community.api.blueprints.git:Given repository credentials don't provide write permissions to the repository. Please make sure the ssh key is correct and the administrator of the remote repository gave you the required permissions.

If I try to manually clone the repository inside of my container, git asks me for my login credentials and successfully performs a clone. Specifying username and password shouldn’t be necessary when working with deploy keys, right? Is it still possible that my application hangs because gitea is ignoring the deploy key?

Thanks in advance!

The firewall was misconfigured. Problem solved.

Hi @witling I’ve the same problem and I too am facing the error - It seems you don’t have to correct permissions for this repository. Can you guide me what all firewall configurations did you change?