12 Replies Latest reply on Apr 3, 2014 4:58 AM by tdanner

    Internal Server Error when unmanaging node over HTTP

    brimble2010

      Hi,

       

      I am trying to use the Orion SDK to unmanage a node via a http request. My request is as follows:

      POST https://10.13.36.29:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Nodes/Unmanage HTTP/1.1

      Content-Length: 67

      Host: 10.13.36.29:17778

      Authorization: Basic Q29ubmVjdDpzcG9ydGluZw==

      Body:

      ["N:1114", "2014-03-28T11:55:00Z", "2014-03-28T12:00:00Z", "false"]

       

      And the response I am getting is:

      HTTP/1.1 500 Internal Server Error

      Content-Length: 275

      Content-Type: application/json

      Server: Microsoft-HTTPAPI/2.0

      Date: Fri, 28 Mar 2014 11:53:18 GMT

       

      "The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml', 'Json'. This can be because a WebContentTypeMapper has not been configured on the binding. See the documentation of WebContentTypeMapper for more details."

       

      Is my request correctly formed and is there somewhere that I can take a look at what the internal server error is?

       

      Thanks,

      Kristian

        • Re: Internal Server Error when unmanaging node over HTTP
          tdanner

          Add a "Content-Type: application/json" header to your request.

            • Re: Internal Server Error when unmanaging node over HTTP
              brimble2010

              That moved me on to this error:

              HTTP/1.1 502 internal error - server connection terminated

              Date: Fri, 28 Mar 2014 15:40:23 GMT

              Connection: close

              Via: 1.1 inf9601-wsappcg.sig.ads

              Cache-Control: no-store

              Content-Type: text/html

              Content-Language: en

              Content-Length: 666

               

               

              <HEAD><TITLE>internal error - server connection terminated</TITLE></HEAD>

              <BODY BGCOLOR="white" FGCOLOR="black"><H1>internal error - server connection terminated</H1><HR>

              <FONT FACE="Helvetica,Arial"><B>

              Description: internal error - server connection terminated</B></FONT>

              <HR>

              <!-- default "internal error - server connection terminated" response (502) -->

              </BODY>

               

              Any ideas? Thanks for the help with the first part!

                • Re: Internal Server Error when unmanaging node over HTTP
                  tdanner

                  Strange error. Could you post the full request that led to this?

                    • Re: Internal Server Error when unmanaging node over HTTP
                      brimble2010

                      Pretty much the same request:

                      POST

                      https://10.13.36.29:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Nodes/Unmanage HTTP/1.1

                      User-Agent: Fiddler

                      Authorization: Basic Q29ubmVjdDpzcG9ydGluZw==

                      Content-Type: application/json

                      Host: 10.13.36.29:17778

                      Content-Length: 67

                       

                      ["N:1114", "2014-03-28T15:55:00Z", "2014-03-28T16:00:00Z", "false"]

                       

                       

                      On 28 March 2014 15:48, tdanner <

                        • Re: Internal Server Error when unmanaging node over HTTP
                          tdanner

                          I don't see any clues there (I assume the lack of space between the URL and "HTTP/1.1" is just a copy and paste error in forum reply, not the actual request), so let's look at the log. Examine C:\ProgramData\Solarwinds\InformationService\v3.0\Orion.InformationService.log right after triggering the error and see what you find.

                            • Re: Internal Server Error when unmanaging node over HTTP
                              brimble2010

                              There are a bunch of these at the end of the log:

                               

                              014-03-28 15:44:59,955 [123] ERROR SolarWinds.InformationService.Core.InformationService - Exception caught in method Read

                              System.ArgumentException: Invalid SWIS uri at character 6: Incomplete uri. Parser did not finish in End state, but instead was left in Scheme state

                              Parameter name: uri

                                 at SolarWinds.Data.Utility.SwisUriParser.ParsingError(String message)

                                 at SolarWinds.Data.Utility.SwisUriParser.ParseInternal()

                                 at SolarWinds.Data.Utility.SwisUriParser.Parse(String uri)

                                 at SolarWinds.InformationService.Core.InformationService.Read(String uri)

                               

                              EDIT: looking at the time stamp, this is probably before I was passing the Content-Type in. Since then it doesn't seem to log anything.

                                • Re: Internal Server Error when unmanaging node over HTTP
                                  tdanner

                                  That's extra strange that it is giving you a weird error and not logging anything. You can use the LogAdjuster tool to get more output. Launch LogAdjuster from the start menu. Find the "Information Service 3.0" component and change the level to "DEBUG". Click Apply. No service restart is needed - it will pick up the change automatically. Reproduce the error again. Now the log should have a bunch stuff in it.

                                    • Re: Internal Server Error when unmanaging node over HTTP
                                      brimble2010

                                      After turning the log up to DEBUG, the error seemed to go away I'll assume coincidence.

                                       

                                      I now get a 200 back from the request but the node doesn't become unmanaged. Is there something specific to look for in the log?

                                       

                                      Thanks again.

                                       

                                      EDIT: perhaps this helps?

                                      2014-04-02 12:07:57,898 [141] DEBUG SolarWinds.InformationService.ChangeBroker.QueryEngine - Indication doesn't match any subscription. Indication: System.QueryExecuted
                                      2014-04-02 12:07:57,898 [141] DEBUG SolarWinds.InformationService.ChangeBroker.Broker - Indication reported. Indication Type: System.QueryExecuted, InstanceType: ???
                                      2014-04-02 12:07:58,413 [RetryNotifications] DEBUG SolarWinds.InformationService.ChangeBroker.NotificationManager - Retrying subscription add4af9d-e43a-45ab-8848-5224f567cc17 at net.tcp://10.13.36.29:17777/SolarWinds/PubSub/NodeOperationSubscriber
                                      2014-04-02 12:07:58,413 [STP SmartThreadPool Thread #360] DEBUG SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy - Trying to open connection with certificate authentication to net.tcp://10.13.36.29:17777/SolarWinds/PubSub/NodeOperationSubscriber.
                                      2014-04-02 12:07:58,413 [STP SmartThreadPool Thread #360] DEBUG SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy - Connection with certificate authentication to net.tcp://10.13.36.29:17777/SolarWinds/PubSub/NodeOperationSubscriber has failed, trying to open connection without specific authentication.
                                      2014-04-02 12:07:58,413 [STP SmartThreadPool Thread #360] DEBUG SolarWinds.InformationService.ChangeBroker.Util.PendingNotificationDeliveryAgent - Failed delivering pending notifications to subscription add4af9d-e43a-45ab-8848-5224f567cc17 at net.tcp://10.13.36.29:17777/SolarWinds/PubSub/NodeOperationSubscriber.
                                      System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.tcp://10.13.36.29:17777/SolarWinds/PubSub/NodeOperationSubscriber that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
                                      
                                      Server stack trace: 
                                         at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper& timeoutHelper)
                                         at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
                                         at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
                                         at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
                                         at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
                                         at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
                                         at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
                                         at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
                                         at System.ServiceModel.Channels.CommunicationObject.Open()
                                      
                                      Exception rethrown at [0]: 
                                         at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
                                         at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
                                         at System.ServiceModel.ICommunicationObject.Open()
                                         at SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy.InitializeSubscriber(ICommunicationObject communicationObject)
                                         at SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy.OpenNewConnectionW(NewConnectionInfo newConnectionInfo)
                                         at SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy.OpenNewConnection(NewConnectionInfo newConnectionInfo)
                                         at SolarWinds.InformationService.ChangeBroker.Util.DeliveryAgentFactory.OpenNewConnection(NewConnectionInfo newConnectionInfo)
                                         at SolarWinds.InformationService.ChangeBroker.Util.ExecuteAfterDuration`1.Execute(TActionParameter parameter)
                                         at SolarWinds.InformationService.ChangeBroker.Util.DeliveryAgent.GetNewConnectionAfterDuration(SubscriptionInfo subscription)
                                         at SolarWinds.InformationService.ChangeBroker.Util.DeliveryAgent.GetConnection(SubscriptionInfo subscription)
                                         at SolarWinds.InformationService.ChangeBroker.Util.DeliveryAgent.EnsureEndpointIsListening(SubscriptionInfo subscription)
                                         at SolarWinds.InformationService.ChangeBroker.Util.PendingNotificationDeliveryAgent.DeliverSubscriptionsPendingNotifications(SubscriptionInfo subscription)
                                      2014-04-02 12:07:58,413 [RetryNotifications] DEBUG SolarWinds.InformationService.ChangeBroker.NotificationManager - Retrying subscription 3f14f965-8fad-4bbf-a69d-1993fec71034 at net.tcp://MON8001-ORIPPE:17777/SolarWinds/Orion/AuditSubscriber
                                      2014-04-02 12:07:58,413 [STP SmartThreadPool Thread #361] DEBUG SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy - Trying to open connection with certificate authentication to net.tcp://MON8001-ORIPPE:17777/SolarWinds/Orion/AuditSubscriber.
                                      2014-04-02 12:07:58,429 [STP SmartThreadPool Thread #361] DEBUG SolarWinds.InformationService.ChangeBroker.Clients.DefaultSubscriberProxy - Connection with certificate authentication to net.tcp://MON8001-ORIPPE:17777/SolarWinds/Orion/AuditSubscriber has failed, trying to open connection without specific authentication.
                                      2014-04-02 12:07:58,429 [STP SmartThreadPool Thread #361] DEBUG SolarWinds.InformationService.ChangeBroker.Util.DeliveryAgent - Notification delivered successfully. Subscription ID: 3f14f965-8fad-4bbf-a69d-1993fec71034, Endpoint: net.tcp://MON8001-ORIPPE:17777/SolarWinds/Orion/AuditSubscriber, Indication: System.InstanceModified
                                      2014-04-02 12:07:58,429 [STP SmartThreadPool Thread #361] DEBUG SolarWinds.InformationService.ChangeBroker.Util.PendingNotificationDeliveryAgent - Pending notification delivered: 631
                                      
                        • Re: Internal Server Error when unmanaging node over HTTP
                          brimble2010

                          On a slightly related note, I'd like to also unmanage applications as well as nodes. I've tried the following URLs but to no avail:

                          https://host:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.APM.Application/Unmanage and https://host:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.APM/Application/Unmanage but to no avail.