Skip to the content.

Git - Troubleshooting

For more questions and answers about plug-ins, see the UrbanCode forum on IBM developerWorks.

Import process fails when using GitHub Enterprise

When using the Git source configuration plug-in with GitHub Enterprise, the import process can lock up or fail with the following error message:

Error Creating New Version: GIT error: Cloning into ‘{temp_dir}'... fatal: unable to access 'https://{username}:****@{HTTPS_GitHub_Repo_Address}': Failed to connect to {enterprise\_url} port 443: Connection refused

This error is caused by specifying an incorrect user name, password (access token), or GitHub repository address. The user name is the part of your email address before the at sign (@), and does not include the at sign or the domain name. The password is a personal access token that is generated in GitHub Enterprise. GitHub Enterprise requires the use of access tokens as a more secure login method.

To create a personal access token, complete the following steps.

  1. Log in to GitHub Enterprise, using your standard user name and password.
  2. Click your profile icon at the upper right of the page, and then click Settings.
  3. Click Personal access tokens on the left side of the window.
  4. Click Generate new token.
  5. Specify a name for the new token. Do not change the default scopes. Click Generate token.
  6. Copy and save the new token, which is a 40-character string.
  7. Use this personal access token as the Git source configuration password.

Note: To use this token with other deployments, you must save the token. If you do not save the token, you must follow the previous steps to generate a token again.

Back to …   Latest Version Git        
All Plugins Deploy Plugins 28.1164116 Readme Overview Settings Usage Downloads