The revision is deployed, but traffic cannot flow. Invalid syslog config: Invalid HostName 'IP' for Syslog handler

0 0 679

This article applies to Apigee cloud customers only.

Question:

Our API proxy has not been modified for the past 7 months, and today it is returning 404s for all API calls

HTTP/1.1 404 Not Found
Content-Type: application/json
Date: Wed, 19 Oct 2016 15:29:11 GMT
Server: Apigee Router
Content-Length: 190
Connection: keep-alive

{"fault":{"faultstring":"Unable to identify proxy for host: default and url: /v1/abc/def/dosomething","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

On the enterprise.apigee.com UI, when opening the proxy bundle, it shows

Error in deployment for environment prod.
The revision is deployed, but traffic cannot flow. Invalid syslog config: Invalid HostName 'IP' for Syslog handler

Answer:

In the past, Apigee had a misconfigured DNS entry in the cloud setup which would append the apigee domain 'apigee.com' to an invalid hostname and return an invalid default IP.

In this case, there is a MessageLogging policy in the 'DoSomething' proxy and it is not attached to any flow. This unused MessageLogging policy has an invalid hostname in the <Host/> field, i.e., <Host>IP</Host>.

Even the policy is not attached to any flow, during the server startup time, a server would need to load and validate the policy so it is in fact a deployment action.

Apigee Operations team recently, early October 2016, made the DNS correction and as a result of the correction, an invalid hostname would no longer be resolved to an IP.

For this incident, Apigee message processors were restarted due to maintenance, hence, servers failed to load the 'DoSomething' proxy and returned 404s for all API traffic coming through this proxy.

Workaround:

  1. Provide a valid hostname which could resolve to a valid IP,
  2. Provide a valid IP in the <Host/> field of the MessageLogging policy, or
  3. Remove the MessageLogging policy from the proxy bundle as it is not used, redeploy the proxy.

Customer chose option #3 and the case was resolved.

Additional references:

https://community.apigee.com/questions/33310/what-does-the-below-deployment-error-mean.html

Version history
Last update:
‎10-20-2016 11:48 AM
Updated by: