Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't link to Confluence space from Jira

Chris Schulte March 31, 2020

I have Jira Service Desk (v 8.6.1) running on a centos 7 server with a reverse proxy https connection. I also have Confluence (v 7.2.2) running on another centos 7 server with its own reverse proxy https. They are both linked to each other with OAuth via Application Links. I've granted permissions on the spaces to the administrator, both as a group and individually.

When I try to link to an existing confluence space from a jira project, I get the message, "We're having trouble communicating with the application. Wait a minute, then try again." If I try to create a new space, I get the message, "We couldn't create a space for you. Confluence might be down, or you might not have permission to create a space." I get the same message if I try to create a space from Project Settings -> knowledge base.

The error that shows up in atlassian-jira.log is:

2020-03-31 15:42:55,751-0500 http-nio-8080-exec-22 ERROR cfschulte 942x17998x1 1wroie0 10.130.210.221,144.92.219.24 /rest/servicedesk/1/servicedesk/SR/kb/16897856-fdbb-3788-8234-ecac8e61b1a5/space [c.a.s.i.api.applink.BaseAppLinkResponseHandler] Applink request has returned an error with status code 401: {"message":"Client must be authenticated to access this resource.","status-code":401}

I've been searching through the community and the best answer is, "The JIRA Servicedesk user or Agent needs to be granted Create Page permission in the relevant Confluence space." I've done that wherever I find a place to grant permissions. Is there something else I'm missing? Do I need to do something extra with the reverse proxies?

Thanks,
Chris

1 answer

0 votes
Ansar Rezaei
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2020

Hi

It's because of the networking problem.

Define a separate HTTP connector with a different port in each app server.xml file. Here an extra connector for confluence:

image.png

 

Then use them as Application URL on Both sides and Use Https address for Display URL.

image.png

Chris Schulte April 1, 2020

Thank you for your answer Ansar,

The example you show looks like it is the server.xml for confluence. Is that correct? I tried to follow the steps, but I got a server error when I tried to connect. Do I need to specify an ip address in the connector? Does jira's server.xml need an additional connector for http? It already has an additional Standard HTTP connector using port 8081 (in addition to 8080).

I've made sure that the firewalls for those ports were open, but still just get network errors.

Chris

Chris Schulte April 1, 2020

I was able to get this working without network errors! But I still can't connect to confluence from jira.

Chris Schulte April 6, 2020

I think it had something to do with user lists and permissions. My boss went through these steps. I was a bit confused because there are references to crowd, which I thought was a separate application.

Disabling the Built-In User Management

https://confluence.atlassian.com/conf72/disabling-the-built-in-user-management-982323501.html

 Connecting Confluence to Jira applications for User Management

https://confluence.atlassian.com/conf72/connecting-to-crowd-or-jira-for-user-management-982323491.html

Whitelist
 

https://confluence.atlassian.com/adminjiraserver070/configuring-the-whitelist-749383565.html

OAuth Impersonation

https://confluence.atlassian.com/applinks/oauth-security-for-application-links-774045732.html

Suggest an answer

Log in or Sign up to answer