Troubleshooting Network Director

Troubleshooting resources and tips for Network Director.

Valid in version: 7.0

Troubleshooting Overview Troubleshooting PM Database Queries

Table of Contents

  1. Connection Errors Returned for Configured Context Paths
  2. Unable to Access Policy Manager Container
  3. Virtual Service Client Cannot Connect to Physical Service
  4. Cannot Connect to Physical Service that Requires WS-Security Headers

Connection Errors Returned for Configured Context Paths

A number of different issues might cause a connection error to be returned from the Network Director. For example:

  • There might be a 404 error on loading the WSDL for a SOAP service. If you use the browser to access the WSDL using {endpoint}?wsdl, and get a 404 error rather than the WSDL file, the first step in troubleshooting is to check that the virtual service is providing a WSDL. For instructions, see To check that the Network Director can retrieve the virtual service WSDL later in this section.
  • For a SOAP or REST service, you might send a request to the virtual service and receive a 404 in response.

If you are getting a 404 when invoking a virtual service, here are some things you can check:

  • Check to see if the service is being hosted. To do this, enable the jetty URL to verify that all services/context paths are available. For instructions, see Check Context Paths Hosted on Network Director below).
  • Make sure that the context path being sent by the consumer matches the context path for the virtual service being invoked.
  • For a REST service:
    • Verify that the context path being sent by the consumer matches the virtual service context path.
    • Make sure the correct content type is being set in the HTTP header.
    • If there is a payload, make sure the payload is consistent with the content-type.
  • Check the usage logs to see if the physical service is responding with the 404. If it is the physical service responding with a 404, verify the physical service access point.
  • Check if there is an issue with the firewall or load balancer that the consumer is sending the request through.

Check Context Paths Hosted on Network Director

If a 404 is returned to the consumer when trying to invoke a virtual service, check the context paths hosted on the Network Director.

Solution:

Possible reasons for this issue are:

To check whether the service is deployed to the Network Director

Check the contexts hosted on the Network Director.

There is a URL you can use to list all the context paths hosted on the Network Director. To view the context paths, you must first enable a configuration setting as described below.

To check context paths from the Network Director
  1. Log in to the Akana Administration Console for the Network Director instance at http://{nd_host}:{nd_port}/admin/console.html.
  2. Click the Configuration tab.
  3. In the Configuration Categories section on the left, choose com.soa.transport.jetty.defaultservlet.
  4. Set the value of the jetty.information.servlet.listContexts property to true.
  5. Click Apply Changes.
  6. Check the URL to get the list of context paths on the Network Director and see if your service is listed:
    http://{nd_host}:{nd_port}/com.soa.transport.jetty/information

Virtual Service Cannot Connect to Physical Service

If the virtual service cannot connect to the next-hop service or physical service, two possible causes are:

  • The physical service is down.
  • The wrong access point has been configured for the physical service.
Solution:

To help determine where the issue lies, first send a request to the endpoint you listed under the physical service access point. Verify that the response was received. Depending on the results:

  • If the physical service is down, contact the physical service provider.
  • If the direct request was successful, and there is a firewall between the virtual service and the physical service, check in case there's an issue with either of the following:
    • Firewall
    • Proxy server

back to top

Unable to Access Policy Manager Container

In some cases it has happened that consumers were unable to connect to the Policy Manager 6.1 services, with no error when loading bundles, and with the log showing the following entry:

ERROR - Attempting to invoke method refresh on 
com.soa.container.configuration.service.ContainerConfigPollingService.

One possible cause of this issue is that the maximum number of threads for the HTTP listener is set to 0 and must be increased.

Solution:

As a workaround, you can edit the system.properties file to create a temporary HTTPS listener entry. This will allow you to log in and increase the number of threads on the HTTP listener. You must then restore the original system.properties file.

To increase the maximum number of threads for the HTTP listener
  1. Go to the ./sm60/instances/{pm_instance} folder on your machine and find the system.properties file. Save a backup copy of the original file.
  2. In the file, find the org.osgi.service.http.port property and set it to 9900 (or your original port).
  3. Modify the property name and value as shown below:

    org.osgi.service.http.port.secure: set it to 9943 (or some other port)

    Note: This change creates a temporary HTTPS listener so that you can log in and update the thread count for the HTTP listener.

  4. Restart the container.
  5. Go to https://host:9943/ (or applicable port number) and log in to the Policy Manager console.
  6. Change the default listener pool parameters to valid values. For example:
    • min thread=5
    • max thread=200
  7. Restore the original system.properties file.
  8. Restart the container.

back to top

Virtual Service Client Cannot Connect to Physical Service

If the client application cannot connect to the physical service, check the following:

  1. If it isn't a SOAP service, go to Hosted Service Issues below to check if the service is running.
  2. If it is a SOAP service, check that the virtual service is providing a WSDL. See To check that the Network Director can retrieve the virtual service WSDL below.
  3. Depending on the results, do one of the following:
    • If there is an error retrieving the WSDL, there is an issue with hosting the virtual service. Go to the Hosted Service Issues section below.
    • If there was no error with the WSDL, the issue is at the policy/contract level. For additional troubleshooting steps, go to To check policy configuration below. If it is an issue with the policy or contract there should be an error in the alerts or the monitoring data for the service.
To check that the Network Director can retrieve the virtual service WSDL
  1. Open a browser.
  2. Enter the URL of the virtual service:
    {nd_host}:{nd_port}/{service_context_path}
  3. Append ?wsdl to the end of the URL.

    The WSDL file for the virtual service should be displayed in the browser. Proceed depending on what you see:

    • If the WSDL file is not displayed, there is an issue with the hosted service. For additional troubleshooting steps, go to the next section, Hosted Service Issues, below.
    • If the WDSL file is displayed, this means that the service is hosted correctly; therefore, the physical service address must be wrong, or there must be an issue with the physical service. Check the access point in the Policy Manager user interface to make sure it is correct. One possible scenario is that the physical endpoint changed after setup. You can make sure you can successfully call the physical service in the same way you did for the virtual service in Step 2, using the URL of the physical service as set up in Policy Manager container.

Hosted Service Issues

If you cannot connect to the service, and you were not able to retrieve the WSDL file, follow the steps below.

To resolve issues with hosting the virtual service
  1. Verify the access point being used. To do this:
    • In Policy Manager, from the organization tree, select the virtual service.
    • In the right pane, click the Access Points tab.
    • Verify that the access point is still listed for that service. If it isn't listed, go to the Network Director container, Hosted Services tab, and click Host Virtual Service. Select the virtual service to host on the Network Director container or cluster.
  2. Next, verify the status of the container. To do this:
    • In Policy Manager, from the organization tree, select the container that hosts the virtual service.
    • In the right pane, click the Details tab.
    • Check the status of the container. The status should display as Started, with a green icon.
  3. Take additional steps depending on the container status and settings:
    • If the container has not started, check that the bundles have loaded.
    • Stopped or Unresponsive: In Network Director, go to the Network Director Container Detail Page for the container and view the status indicator for the container. There are three statuses: Started, Stopped, and Unresponsive. The status is communicated from Network Director to Policy Manager every 15 seconds using the Policy Manager service called Container State Service. If Policy Manager doesn't receive a response from Network Director in a certain amount of time, the status is reported as Unresponsive. If there is no response for an extended period of time the status is reported as Stopped. This indicates a communication problem between Policy Manager and Network Director.
    • Check the Network Director log file and see if there are any issues connecting to Policy Manager.
    • Check the Policy Manager log to see if there are any errors when the Network Director is connecting to Policy Manager to update its state.
    • HTTPS address listed as service access point: Verify that the HTTPS listener has PKI keys and an X.509 certificate attached.
To check policy configuration
  1. Log in to the Policy Manager console.
  2. Select the virtual service and then check for errors under Workbench > Monitoring > Alerts.

    Checking policy configuration

  3. Make sure:
    • The consumer is included in the contract of the service.
    • The contract is activated.
    • There is only one contract active for the service.

Contract Not Configured

If an Authorization Failed message is returned when consuming a service, one possible cause is that the contract is not configured.

Solution:

To check whether the contract is configured correctly, and correct as needed, follow the steps below.

To configure a contract
  1. Log in to the Policy Manager console.
  2. From the organization tree, select the virtual service.
  3. Verify that the intended consumer is listed under the consumers portlet for the virtual service.

    Note: If the intended consumer is not listed, you'll need to create another version of the contract. On the action panel to the right, click Start New Version. Under consumer identities, add the new consumer and then activate the new version of the contract. This will create a new version that includes the appropriate consumer.

  4. Verify that the approval status of the provided contract is Activated.
  5. If the contract is listed as Deactivated, activate it:
    1. From the Consumers portlet, select the contract.
    2. From the actions portlet, select Activate Contract.
    3. Wait for approximately one minute for the contract to go into effect.

back to top

Cannot Connect to Physical Service that Requires WS-Security Headers

If requests to a physical service that requires WS-Security headers fail, it might be because the WS- Security headers are being stripped out.

By default, the Network Director strips out the WS-Security headers before sending the request to the physical endpoint.

Solution:

If the WS-Security headers are required by the physical endpoint, you can set a property in the Akana Administration Console for the Network Director instance so that the headers are not stripped out.

To modify configuration to keep the WS-Security headers
  1. Log in to the Akana Administration Console for the Network Director instance (http:// {nd_host}:{nd_port}/admin).
  2. Click the Configuration tab.
  3. In the Categories portlet, select the com.soa.wssecurity category.
  4. Set the value of the keepsecurityHeader property to true.
  5. Click Apply Changes.

Back to top