This guide provides instructions on how to use a third-party debugging tool called "TCPTrace" to help diagnose problems with the SharePoint Connector.
Downloading TCPTrace
You can download TCPTrace from pocketsoap.com. Once downloaded, you can unzip the TcpTrace.exe file and place it somewhere on your local computer where you can run it.
Configuring Confluence to use TCPTrace
If you are diagnosing a problem where Confluence is having problems communicating with SharePoint, follow these instructions.
- Copy tcptrace.exe to your Confluence server
- Double-click tcptrace.exe to run it. You will be asked to configure the following values:
- 'Listen on Port #': Set this to an un-used TCP Port on your Confluence server (eg. "7070")
- 'Destination Server': Set this to the IP address or server name of your SharePoint server
- 'Destination Port #': Set this to the port used by your SharePoint site (the default is '80')
- 'Create Log File': Ensure this option is selected
- 'Log Filename': Enter in a location where a log file can be created
- 'Use XML logfile format': Ensure this option is selected
- Click the 'OK' button to start TCPTrace.
- Log in to your Confluence server and go to the 'SharePoint Admin' page in the Admin Console (eg. http://confluence-server/admin/sharepoint-admin/sharepoint-admin.action)
- Edit the details of your SharePoint integration here and replace the 'SharePoint URL' with a URL that points to TCPTrace. For example, if your SharePoint URL was "http://sharepoint.mydomain.com/sites/testing" then you would change it to "http://localhost:7070/sites/testing"
- Click 'Update Settings' to save your changes to the configuration.
- Click 'Test Connection' and ensure that the TCPTrace window begins to capture traffic. If the TCPTrace window remains blank, it has not been configured correctly.
- Now perform your test. For example, if there was a problem with the SharePoint List (sp-list) macro, you would now go to a Confluence page and use the sp-list macro and demonstrate the problem. If the problem you are experiencing is in the 'Test Connection' step, then you can skip this.
- In TCPTrace, select 'Stop Trace' from the 'File' menu.
- Go to the 'Log Filename' location you configured in Step 2 and ensure that the log file has been created and contains some output from TCPTrace.
- Examine the log file for problems, or attach the log file to a support ticket so that Atlassian Support Engineers can investigate the log file for problems.
- Don't forget to revert your changes to the Confluence configuration when finished.
Configuring SharePoint to use TCPTrace
If you are diagnosing a problem where SharePoint is having problems communicating with Confluence, follow these instructions.
- Copy tcptrace.exe to your SharePoint server
- Double-click tcptrace.exe to run it. You will be asked to configure the following values:
- 'Listen on Port #': Set this to an un-used TCP Port on your SharePoint server (eg. "7070")
- 'Destination Server': Set this to the IP address or server name of your Confluence server
- 'Destination Port #': Set this to the port used by your Confluence site (the default is '8080', but is commonly re-configured to be '80')
- 'Create Log File': Ensure this option is selected
- 'Log Filename': Enter in a location where a log file can be created
- 'Use XML logfile format': Ensure this option is selected
- Click the 'OK' button to start TCPTrace.
- Log in to your SharePoint server and go to the 'Confluence Settings' administrative page (eg. http://sharepoint.mydomain.com/_layouts/Atlassian/ConfluenceSettings.aspx).
- Edit the details of your Confluence integration here and replace the 'Confluence Base URL' with a URL that points to TCPTrace. For example, if your Confluence URL was "http://confluence.mydomain.com:8080/confluence" then you would change it to "http://localhost:7070/confluence"
- Click 'Test Connection' and ensure that the TCPTrace window begins to capture traffic. If the TCPTrace window remains blank, it has not been configured correctly.
- Click on the 'OK' button to save your changes
- Now perform your test. For example, if there was a problem with the Confluence Page web part, you would now go to a SharePoint page and use the web part to demonstrate the problem. If the problem you are experiencing is in the 'Test Connection' step, then you can skip this.
- In TCPTrace, select 'Stop Trace' from the 'File' menu.
- Go to the 'Log Filename' location you configured in Step 2 and ensure that the log file has been created and contains some output from TCPTrace.
- Examine the log file for problems, or attach the log file to a support ticket so that Atlassian Support Engineers can investigate the log file for problems.
- Don't forget to revert the changes to your SharePoint configuration when finished/