doc/integration/jira/dvcs/troubleshooting.md
{{< details >}}
{{< /details >}}
When working with the Jira DVCS connector, you might encounter the following issues.
If you complete the Add New Account form, authorize access, and you receive this error, Jira and GitLab cannot connect. No other error messages appear in any logs:
Error obtaining access token. Cannot access https://gitlab.example.com from Jira.
When you use GitLab 15.0 and later with Jira Server, you might encounter a session token bug in Jira. This bug affects Jira Server 8.20.8, 8.22.3, 8.22.4, 9.4.6, and 9.4.14.
To resolve this issue, ensure you use Jira Server 8.20.11 and later or 9.1.0 and later.
Problems with SSL and TLS can cause this error message:
Error obtaining access token. Cannot access https://gitlab.example.com from Jira.
For more information about setting up Jira, see the Atlassian documentation and Atlassian Support.
keytool.cacerts) to allow Jira to
also trust public certificate authorities.cacerts Truststore may have been replaced during the upgrade.SSLPoke Java class./tmp.-Djavax.net.ssl.trustStore):${JAVA_HOME}/bin/java -Djavax.net.ssl.trustStore=/var/atlassian/application-data/jira/cacerts -classpath /tmp SSLPoke gitlab.example.com 443
The message Successfully connected indicates a successful TLS handshake.
If there are problems, the Java TLS library generates errors that you can look up for more detail.
The requested scope is invalid, unknown, or malformed.
Potential resolutions:
scope=api in
the query string.scope=api is missing from the URL, edit the
GitLab account configuration. Review
the Scopes field and ensure the api checkbox is selected.410 GoneWhen you connect to Jira and synchronize repositories, you might get a 410 Gone error.
This issue occurs when you use the Jira DVCS connector and your integration is configured to use GitHub Enterprise.
For more information, see issue 340160.
If Jira displays incorrect information, such as deleted branches, you may have to resynchronize the information:
Shift and select the sync icon.For more information, see the Atlassian documentation.
Sync FailedIf you get a Sync Failed error in Jira when you refresh repository data for specific projects, check your Jira DVCS connector logs. Look for errors that occur when executing requests to API resources in GitLab. For example:
Failed to execute request [https://gitlab.com/api/v4/projects/:id/merge_requests?page=1&per_page=100 GET https://gitlab.com/api/v4/projects/:id/merge_requests?page=1&per_page=100 returned a response status of 403 Forbidden] errors:
{"message":"403 Forbidden"}
If you get a 403 Forbidden error, this project might have some GitLab features disabled.
In the previous example, the merge requests feature is disabled.
To resolve the issue, enable the relevant feature:
To find webhook logs in a DVCS-linked project:
If you can't find webhook logs in your project, check your DVCS setup for problems.