Other errors

Use the information in this topic to diagnose and correct problems with the IBM® Engineering Workflow Management (EWM) integration with Git.

For additional troubleshooting information, see troubleshooting wiki page.

Table 1. Common errors for Git integration
Error message Explanation and action
Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Ensure the clone is not done using SSH. Use HTTP instead. For example, the command git clone git@mygitserver:TestJazzUser1/demoProject.git might require an SSH key for user git. Therefore, use =git clone http://gitlabee/TestJazzUser1/demoProject.git=.
remote: 'Push Operation' failed. Preconditions have not been met: CRRTC8805E The Git push operation cannot be completed because the Git commit message is missing or contains invalid information about an EWM item. remote: A Git commit message must be linked to an EWM work item, and must contain the work item type and number. Valid work item types are defect, workitem, task and bug. remote: Optionally, the Git commit message can also provide actions such as #resolve, which resolves the work item, or time#<time-in-week-day-hour-minute-format>, which specifies the time spent on the work item. The commit message does not contain work item information. Edit the commit message using git commit --amend and try the push operation as follows: git commit -a -m "Link this commit to defect 10"
remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://gitlabee/TestJazzUser1/demoProject.git/' The user might not exist in EWM, or the password is incorrect.
remote: You are not allowed to push code to this project. fatal: unable to access 'http://gitlabee/TestJazzUser1/demoProject.git/': The requested URL returned error: 403 The git user does not have permissions to perform the push operation. A git user should have developer/Master role permission to perform the push operation.

remote: CLGitResourceProvider ERROR getCommitsBetween.spawnCb(): err = Git Error: ''

remote: CRRTC8822E The 'Git Repository Access' operation cannot be completed. Permission is required to complete the operation.

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

  • The EWM user is not assigned to a role that has permission to perform the push operation. Check if the user is assigned to a role that has Push New Commits permission in the project area.
  • The EWM user is not assigned to a role that has read access to the repository. Check if the user is assigned to a role that has Read Access to Git Repository permission.

Message: CRJAZ1848E To perform the "Git Push" operation, the user (userid="TestJazzUser1") must have one of the following licenses that are installed on the server:EWM Developer for IBM Enterprise Platforms, EWM Contributor, EWM Developer, EWM Stakeholder. The server administrator can assign licenses.

The EWM user does not have the license mentioned in the error message. Assign the license and try the operation again.

remote: Git server toolkit path cannot be found.

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

The wrong toolkit path is configured in the pre-receive file.

remote: An invalid GL_SERVER or an invalid GL_TOKEN may have been provided in the pre-receive hook.

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

Check the settings.

remote: RTC ERROR parseTREesponse(): Error parsing JSON [SyntaxError: Unexpected token <]

remote: SyntaxError: Unexpected token <

remote: Utils VERBOSE exit(): ec = 1

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

Check if the repourl has a valid URL format in the config file found in /var/opt/gitlab/git-data/repositories///config. It should be as follows: repourl = https://myrtcserver:9443/ccm.

remote: RTC VERBOSE invokeRTCService(): status code = 404

remote: "The Git Repository with key '49882787127f4a7194b0569e0ebef4ba_blaah' does not exist."

remote: Utils VERBOSE exit(): ec = 1

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

Value repokey is invalid in config file found in /var/opt/gitlab/git-data/repositories///config. It should be as follows: repokey = 49882787127f4a7194b0569e0ebef4ba

remote: RTC ERROR invokeRTCService(): Error while executing request { [Error: connect EHOSTUNREACH myrtcserver:9443]

remote: code: 'EHOSTUNREACH',

remote: errno: 'EHOSTUNREACH',

remote: syscall: 'connect',

remote: address: 'myrtcserver',

remote: port: 9443 }

remote: Error: connect EHOSTUNREACH myrtcserver:9443

remote: Utils VERBOSE exit(): ec = 1

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

The EWM server is not reachable, or the server address is incorrect. Check the server address in the config file found in /var/opt/gitlab/git-data/repositories///config, and check if the EWM server is reachable.

remote: Undefined Git config property 'rtc.repourl'

remote: Utils VERBOSE exit(): ec = 1

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

The repourl property does not exist in the config file found in /var/opt/gitlab/git-data/repositories///config.

remote: Undefined Git config property 'rtc.repokey'

remote: Utils VERBOSE exit(): ec = 1

To http://gitlabee/TestJazzUser1/demoProject.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'http://gitlabee/TestJazzUser1/demoProject.git'

The repokey property does not exist in the config file found in /var/opt/gitlab/git-data/repositories///config.
Work item linking fails after push operations. The standard output contains one of the following messages:
  • remote: Git server toolkit path cannot be found.
  • remote: Invalid input
  • remote: UpdateWorkItemCommitLinks ERROR Domain Error: { [Error: Invalid input]

The post-receive file is not configured correctly.
  • RTC_GIT_SERVER_TOOLKIT_PATH environment variable is not set correctly.
  • The GL_TOKEN value is invalid. Regenerate the personal access token and update with the new value.
  • The GL_SERVER value is not valid. Correct the value.
Table 2. Common errors for Node.js during clone operation
remote: Required configuration is missing in the Git repository. Error is 'Git Error: 'null' 1: '. Check whether 'rtc.repokey' and 'rtc.repourl' variables are configured in the git repository. fatal: unable to access 'http://muntin1.fyre.ibm.com:9999/git/firstrepo.git/': The requested URL returned error: 500

Git repo URL or repo key is not found.

Verify that the configuration file has a repo key and repo URL for a Git repository. You can find the config file in /var/opt/gitlab/git-data/repositories///config.

remote: Error occurred when trying to authenticate using the EWM server. Check the Node.js server log for more details. fatal: unable to access 'http://muntin1.fyre.ibm.com:9999/git/firstrepo.git/': The requested URL returned error: 500

Authentication provider is unreachable.

Check whether Engineering Workflow Management server is running and is accessible.

remote: Required configuration is missing in the Git repository. Error is 'Git Error: 'null' -1: spawn /usr/bin/git ENOENT'. Check whether 'rtc.repokey' and 'rtc.repourl' variables are configured in the git repository. fatal: unable to access 'http://muntin1.fyre.ibm.com:9999/git/firstrepo.git/': The requested URL returned error: 500

Git is not found in the path.

Make sure that Git is installed in the remote machine.