The following instructions describe how to troubleshoot when defining a remote repository.
dial TCP Error Message
dial tcp...error message appears when defining your remote repository and loading the list of repository branches, contact your system administrator to enable connectivity. This may occur due to connectivity issues, such as a closed port or a proxy that is not enabling the connection.
Invalid HTTP/SSH URL Error
If an Invalid SSH URL error label appears when defining your remote repository and entering the Repository URL, ensure the URL ends with `.git` such as `ssh://email@example.com:20017/~/my-project.git`.
Permission Denied Error
If a permission denied error occurs when attempting to fetch the repository branches:
Ensure you have set the correct passphrase and are using the correct key type.
Navigate to the directory in which you saved the private key file.
Open the private key file in a text editor and verify that the file begins with
-----BEGIN RSA PRIVATE KEY-----.
If the file does not begin with this text, regenerate the private key and add the -m pem flag. For example:
ssh-keygen -t rsa -b 4096 -C "firstname.lastname@example.org" -m pem
(This is because Cortex XSOAR currently supports only RSA PRIVATE KEY.)
If the key and permissions are confirmed as correct and you still get a permission denied error:
Stop the server.
Delete all git-cached folders under /var/lib/demisto/temp/cached_git_repositories
Restart the server.
Internal Server Error
internal server error. Something went wrong. error message appears when attempting to fetch the repository branches:
In the server log files, search for
Host keyverification failederror message.
Connect to the server by SSH.
Run the following command:
ssh-agent bash -c "ssh-add PATH/TO/PRIVATE/KEY; git clone GIT_SSH_URL"
ssh-agent bash -c "ssh-add ~/.ssh/my_id_rsa; git clone ssh://email@example.com:443/myusername/myreponame.git"
Copy the file
~/.ssh/known_hosts to /var/lib/demisto/.