Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trying to link Confluence to Jira ServiceDesk and getting a Status 401 error

Hi there, I'm new to ServiceDesk, Confluence and Insight. Just setting up a demo environment and am having issues connecting(linking) the Confluence instance to the Service Desk instance.

at the /setup/connecttojira-start.action url I put in all the relevant info (verified the username and password several times) and when I click next I get a System Error message:

 I thought a 401 might be an unauthorized message but I've triple checked the username and password

Any help would be appreciated

Cause
java.lang.RuntimeException: Error while setting up connection to Jira
at com.atlassian.confluence.setup.actions.ConnectToJiraAction.configureJira(ConnectToJiraAction.java:223)

caused by: com.atlassian.dragonfly.api.JiraIntegrationConfigurationException: cannot create application in Jira. Status Code =401
at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.createApplicationInCrowd(CrowdIntegrationConfiguratorImpl.java:87)

2 answers

1 accepted

I have the same error

Well at least I'm not the only one :)

Hopefully someone will have an answer for us.

In JIRA logs everything is fine, authentication has PASSED:

2020-11-10 23:22:45,625+0000 http-nio-8080-exec-8 anonymous 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1c9livd]

2020-11-10 23:22:45,647+0000 http-nio-8080-exec-8 dsxack 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,696+0000 http-nio-8080-exec-9 anonymous 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1yf9lub]

2020-11-10 23:22:45,731+0000 http-nio-8080-exec-9 dsxack 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,776+0000 http-nio-8080-exec-6 anonymous 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HttpSession created [18mn1zg]

2020-11-10 23:22:45,804+0000 http-nio-8080-exec-6 dsxack 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,987+0000 http-nio-8080-exec-5 anonymous 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HttpSession created [1vcuxiq]

2020-11-10 23:22:46,010+0000 http-nio-8080-exec-5 dsxack 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:46,153+0000 http-nio-8080-exec-3 anonymous 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application HttpSession created [3w9g0h]

2020-11-10 23:22:46,170+0000 http-nio-8080-exec-3 dsxack 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application The user 'dsxack' has PASSED authentication.

But in confluence logs I see the same error as you:

Caused by: com.atlassian.dragonfly.api.JiraIntegrationConfigurationException: cannot create application in Jira. Status Code =401

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.createApplicationInCrowd(CrowdIntegrationConfiguratorImpl.java:87)

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.configureCrowdAuthentication(CrowdIntegrationConfiguratorImpl.java:49)

at com.atlassian.confluence.setup.actions.ConnectToJiraAction.configureJira(ConnectToJiraAction.java:219)

... 386 more

In nginx access logs I have 401 error:

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 534 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 2326 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 41 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "PUT /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HTTP/1.1" 201 208 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 64 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 654 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "PUT /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HTTP/1.1" 204 0 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 541 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

62.217.185.142 - - [11/Nov/2020:00:22:46 +0100] "POST /setup/connecttojira.action HTTP/1.1" 500 64832 "https://confluence.scloud.dsxack.com/setup/connecttojira-start.action" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /opensearch/osd.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /bootstrap/selectsetupstep.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /setup/setupusermanagementchoice-start.action HTTP/1.1" 200 2126 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

I see the Confluence or JIRA (I don't know for sure) have an 503 error error at this request: https://docs.atlassian.com/mywork-confluence-host-plugin/REST/0.1.1582/#id265678  

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

After that, I have a 401 error

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

 

In JIRA logs everything is fine, authentication has PASSED:

2020-11-10 23:22:45,625+0000 http-nio-8080-exec-8 anonymous 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1c9livd]

2020-11-10 23:22:45,647+0000 http-nio-8080-exec-8 dsxack 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,696+0000 http-nio-8080-exec-9 anonymous 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1yf9lub]

2020-11-10 23:22:45,731+0000 http-nio-8080-exec-9 dsxack 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,776+0000 http-nio-8080-exec-6 anonymous 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HttpSession created [18mn1zg]

2020-11-10 23:22:45,804+0000 http-nio-8080-exec-6 dsxack 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,987+0000 http-nio-8080-exec-5 anonymous 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HttpSession created [1vcuxiq]

2020-11-10 23:22:46,010+0000 http-nio-8080-exec-5 dsxack 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:46,153+0000 http-nio-8080-exec-3 anonymous 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application HttpSession created [3w9g0h]

2020-11-10 23:22:46,170+0000 http-nio-8080-exec-3 dsxack 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application The user 'dsxack' has PASSED authentication.

But in confluence logs I see the same error as you:

Caused by: com.atlassian.dragonfly.api.JiraIntegrationConfigurationException: cannot create application in Jira. Status Code =401

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.createApplicationInCrowd(CrowdIntegrationConfiguratorImpl.java:87)

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.configureCrowdAuthentication(CrowdIntegrationConfiguratorImpl.java:49)

at com.atlassian.confluence.setup.actions.ConnectToJiraAction.configureJira(ConnectToJiraAction.java:219)

... 386 more

In nginx access logs I have 401 error:

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 534 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 2326 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 41 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "PUT /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HTTP/1.1" 201 208 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 64 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 654 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "PUT /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HTTP/1.1" 204 0 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 541 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

62.217.185.142 - - [11/Nov/2020:00:22:46 +0100] "POST /setup/connecttojira.action HTTP/1.1" 500 64832 "https://confluence.scloud.dsxack.com/setup/connecttojira-start.action" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /opensearch/osd.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /bootstrap/selectsetupstep.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /setup/setupusermanagementchoice-start.action HTTP/1.1" 200 2126 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

I see the Confluence or JIARA (I don't know for sure) have an 503 error error at this request: https://docs.atlassian.com/mywork-confluence-host-plugin/REST/0.1.1582/#id265678  

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

After that, I have a 401 error

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

 

My setup is very basic, Windows 2019 Std vm, with all three components installed on the one server.

In JIRA logs everything is fine, authentication has PASSED:

2020-11-10 23:22:45,625+0000 http-nio-8080-exec-8 anonymous 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1c9livd]

2020-11-10 23:22:45,647+0000 http-nio-8080-exec-8 dsxack 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,696+0000 http-nio-8080-exec-9 anonymous 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1yf9lub]

2020-11-10 23:22:45,731+0000 http-nio-8080-exec-9 dsxack 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,776+0000 http-nio-8080-exec-6 anonymous 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HttpSession created [18mn1zg]

2020-11-10 23:22:45,804+0000 http-nio-8080-exec-6 dsxack 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,987+0000 http-nio-8080-exec-5 anonymous 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HttpSession created [1vcuxiq]

2020-11-10 23:22:46,010+0000 http-nio-8080-exec-5 dsxack 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:46,153+0000 http-nio-8080-exec-3 anonymous 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application HttpSession created [3w9g0h]

2020-11-10 23:22:46,170+0000 http-nio-8080-exec-3 dsxack 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application The user 'dsxack' has PASSED authentication.

But in confluence logs I see the same error as you:

Caused by: com.atlassian.dragonfly.api.JiraIntegrationConfigurationException: cannot create application in Jira. Status Code =401

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.createApplicationInCrowd(CrowdIntegrationConfiguratorImpl.java:87)

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.configureCrowdAuthentication(CrowdIntegrationConfiguratorImpl.java:49)

at com.atlassian.confluence.setup.actions.ConnectToJiraAction.configureJira(ConnectToJiraAction.java:219)

... 386 more

In nginx access logs I have 401 error:

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 534 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 2326 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 41 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "PUT /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HTTP/1.1" 201 208 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 64 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 654 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "PUT /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HTTP/1.1" 204 0 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 541 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

62.217.185.142 - - [11/Nov/2020:00:22:46 +0100] "POST /setup/connecttojira.action HTTP/1.1" 500 64832 "https://confluence.scloud.dsxack.com/setup/connecttojira-start.action" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /opensearch/osd.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /bootstrap/selectsetupstep.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /setup/setupusermanagementchoice-start.action HTTP/1.1" 200 2126 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

I see the Confluence or JIARA (I don't know for sure) have an 503 error error at this request: https://docs.atlassian.com/mywork-confluence-host-plugin/REST/0.1.1582/#id265678  

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

After that, I have a 401 error

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

My comments have been removed (

And I tried so hard to give more information

@Wade Grimm I solved my problem chose the first option: do not connect Confluence to JIRA at the start and create Confluence admin user.

After that I went to jira applications links:

https://jira-domain/plugins/servlet/applinks/listApplicationLinks

and added link to the Confluence:

https://confluence-domain/

After that JIRA and Confluence were linked.

It uses different users for Confluence and JIRA but it is fine for me.

Thanks for this, just uninstalling it now and will try this. I'll post back if I am successful

@Dmitriy Smotrov (dsxack) That seems to have fixed that issue! thank you for that. Now to finish the setup so I can properly demo this product!

 

Cheers

In JIRA logs everything is fine, authentication has PASSED:

2020-11-10 23:22:45,625+0000 http-nio-8080-exec-8 anonymous 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1c9livd]

2020-11-10 23:22:45,647+0000 http-nio-8080-exec-8 dsxack 1402x895x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,696+0000 http-nio-8080-exec-9 anonymous 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo HttpSession created [1yf9lub]

2020-11-10 23:22:45,731+0000 http-nio-8080-exec-9 dsxack 1402x896x1 - 192.168.10.1 /rest/applinks/1.0/authenticationinfo The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,776+0000 http-nio-8080-exec-6 anonymous 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HttpSession created [18mn1zg]

2020-11-10 23:22:45,804+0000 http-nio-8080-exec-6 dsxack 1402x897x1 - 192.168.10.1 /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:45,987+0000 http-nio-8080-exec-5 anonymous 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HttpSession created [1vcuxiq]

2020-11-10 23:22:46,010+0000 http-nio-8080-exec-5 dsxack 1402x899x1 - 192.168.10.1 /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth The user 'dsxack' has PASSED authentication.

2020-11-10 23:22:46,153+0000 http-nio-8080-exec-3 anonymous 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application HttpSession created [3w9g0h]

2020-11-10 23:22:46,170+0000 http-nio-8080-exec-3 dsxack 1402x901x1 - 192.168.10.1 /rest/appmanagement/1/application The user 'dsxack' has PASSED authentication.
But in confluence logs I see the same error as you:

Caused by: com.atlassian.dragonfly.api.JiraIntegrationConfigurationException: cannot create application in Jira. Status Code =401

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.createApplicationInCrowd(CrowdIntegrationConfiguratorImpl.java:87)

at com.atlassian.dragonfly.core.CrowdIntegrationConfiguratorImpl.configureCrowdAuthentication(CrowdIntegrationConfiguratorImpl.java:49)

at com.atlassian.confluence.setup.actions.ConnectToJiraAction.configureJira(ConnectToJiraAction.java:219)

... 386 more

In nginx access logs I have 401 error:

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 534 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/authenticationinfo HTTP/1.1" 200 97 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/1.0/manifest HTTP/1.1" 200 2326 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 41 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:45 +0100] "PUT /rest/applinks/1.0/applicationlink/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b HTTP/1.1" 201 208 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:45 +0100] "GET /rest/applinks/latest/capabilities HTTP/1.1" 200 64 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 654 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "PUT /rest/applinks/3.0/status/b719b0e8-0a55-34bc-9a3c-5e0add55ca8b/oauth HTTP/1.1" 204 0 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "GET /plugins/servlet/oauth/consumer-info HTTP/1.1" 200 541 "-" "Apache-HttpClient/4.5.12 (Java/11.0.9)"

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

62.217.185.142 - - [11/Nov/2020:00:22:46 +0100] "POST /setup/connecttojira.action HTTP/1.1" 500 64832 "https://confluence.scloud.dsxack.com/setup/connecttojira-start.action" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /opensearch/osd.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /bootstrap/selectsetupstep.action HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

62.217.185.142 - - [11/Nov/2020:00:22:47 +0100] "GET /setup/setupusermanagementchoice-start.action HTTP/1.1" 200 2126 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"

I see the Confluence or JIARA (I don't know for sure) have an 503 error error at this request: https://docs.atlassian.com/mywork-confluence-host-plugin/REST/0.1.1582/#id265678  

192.168.10.155 - - [11/Nov/2020:00:22:46 +0100] "POST /rest/mywork/1/client HTTP/1.1" 503 771 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_272)"

After that, I have a 401 error

192.168.10.155 - dsxack [11/Nov/2020:00:22:46 +0100] "POST /rest/appmanagement/1/application?include-request-address=true HTTP/1.1" 401 176 "-" "Jakarta Commons-HttpClient/3.1"

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

59 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you