Test Confluence Configuration Failed in Sharepoint

Symptoms

The Test Configuration from Sharepoint to Confluence fails in the Confluence Settings page. There can as well occur different error messages in the Confluence Settings page as different entries in the SharePoint ULS log.

Examples for error messages in the Confluence Settings page

Image 1: Possible message in Confluence Settings page (click to enlarge)

Image 2: Another possible Error message in Confluence Settings page (click to enlarge)

Image 3: Another possible Error message in Confluence Settings page (click to enlarge)

Image 4: Another possible Error message in Confluence Settings page (click to enlarge)

Examples for error entries in the SharePoint ULS log

ERROR: Invalid Credentials
Unable to connect to Confluence. Make sure that Confluence is running at http://<your confluence url> and that the SharePoint Plugin is installed properly (see http://<your confluence url>/admin/plugins.action).
Atlassian.Confluence.SharePoint.WebServices.LicenceCheckFailedException: Unable to connect to Confluence ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 53.48.17.196:443    
 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)    
 at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)     -
 -- End of inner exception stack trace ---    
 at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)    
 at System.Net.HttpWebRequest.GetRequestStream()    
 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)    
 at Atlassian.Confluence.SharePoint.ConfluenceLicenseWebService.LicenseVerificationPublicService.isLicenseValid()    
 at Atlassian.Confluence.SharePoint.WebServices.Internal.LicenceChecker.IsLicenceValid(String confluenceUrl, String confluenceUsername, String confluencePassword)     -
 -- End of inner exception stack trace ---    
 at Atlassian.Confluence.SharePoint.WebServices.Internal.LicenceChecker.IsLicenceValid(String confluenceUrl, String confluenceUsername, String confluencePassword)    
 at Atlassian.Confluence.SharePoint.WebServices.Internal.TokenService.GetConfluenceToken(String confluenceUrl, String confluenceUsername, String confluencePassword)    
 at Atlassian.Confluence.SharePoint.Presenters.ConfluenceSettingsPresenter.TestSettings(String clientsite, String clientusername, String clientpassword, String windowsauthchecked, String ssoapplicationname, TestSettingsExceptionHandle exceptionHandle)

Diagnosis

To help you troubleshoot this issue, you can run the SharePoint Diagnostic tool. Please run this tool from the machine where SharePoint is installed.

Furthermore it can be helpfull to execute the isLicenseValid method directly and review the response. For details see Test web services via SoapUI.

Cause

There can be many things that go wrong. Common causes are the following:

  1. Confluence is not running.
  2. Wrong user name and password.
  3. Remote API (XML-RPC & SOAP) is not turned on in Confluence administration console.
  4. Using other form of authentication than NTLM, eg. NTLMv2.

Resolution

  1. Make sure that Confluence is running and accessible.
  2. Make sure the same username and password can be used to log into Confluence.
  3. Go to http://<your confluence url>/admin/viewgeneralconfig.action and turn on Remote API (XML-RPC & SOAP).
  4. If Legacy SharePoint Connector plugin version is older than 1.2 or Confluence is hosted on a non-Windows environment,  make sure that you are using NTLMv1.

Filter by label

There are no items with the selected labels at this time.