Send Docs Feedback

Note: Most user interface tasks can be performed in Edge Classic or the New Edge experience. For an overview, getting started topics, and release notes specific to the New Edge experience, see the docs.

The revision is deployed, but traffic cannot flow. Error while accessing datastore;Please retry later

Error text

Error in deployment for environment test.
The revision is deployed, but traffic cannot flow. Error while accessing datastore;Please retry later

If the message includes the words traffic cannot flow, it means that the proxy could not be deployed to ANY available Message Processors or Routers.

If the message says traffic can flow, but flow may be impaired, it means the proxy might have been deployed to some, but not to all available Message Processors or Routers (a partial deployment).

Cause

This error indicates a problem related to Cassandra, the internal datastore used by Apigee Edge.

  • Network connectivity issue: Communication failed between a Message Processor and Cassandra due to network connectivity issues or firewall rules.

  • Deployment errors due to Cassandra restarts: One or more Cassandra nodes were unavailable because they were restarted as part of routine maintenance.

  • Spike in read request latency on Cassandra: If one or more Cassandra nodes are performing a large number of concurrent reads, then they may respond slowly due to a spike in read request latency.

  • API Proxy Bundle larger than 15MB: Cassandra has been configured to not allow API proxy bundles larger than 15MB in size.

See What you can do below for more information.

What you can do

Edge Private Cloud

If you are on Edge Private Cloud, you may be able to diagnose and resolve this problem yourself. For troubleshooting instructions, go to the Edge Public Cloud Troubleshooting Guide and locate the section that describes this error. If the problem persists, contact Apigee Support. See also What to include when you contact Tech Support or the Community.

Edge Public Cloud

If you are on Edge Public Cloud, you may need expert help from Apigee to resolve this error. However, you can try the steps outlined in the Troubleshooting section below before contacting Apigee Support or posting the issue to the Apigee Community. See also What to include when you contact Tech Support or the Community.
 

Troubleshooting

For Cloud customers, check the Apigee status page for outages

Deployment errors can occur when there is an outage in Edge for the Cloud. Use the following URL to check the current Edge status to see if there is an outage:  https://status.apigee.com

Force undeploy and redeploy

In some cases, undeploying and redeploying the proxy revision will correct the problem. Apigee recommends that you do a forced undeploy using the Deployments API with the parameter force=true. If the forced undeploy works, try redeploying the proxy.

Create a new proxy revision

If undeploy/redeploy does not work, try deploying the proxy as a new revision. Sometimes if you delete certain policies from a proxy and then redeploy as the same revision, you can get a deployment error. See About revisions.

Check the deployment status of your proxy

Use the Deployments API to check the deployment status of your proxy to the Message Processors and routers in your environment. This step can indicate the source of the problem. For example, it'll show you which Message Processors or routers have errors.

If necessary, you can always include the response information when you contact Apigee Support or post your issue on the Apigee Community. See also What to include when you contact Tech Support or the Community.

Create and deploy a simple pass-through proxy

Create a "hello world" proxy and deploy it. If it deploys successfully, then there might be a problem with the size of the proxy bundle that's not deploying properly. See the next section Move resource files to the Environment or Organization level.

Move resource files to the Environment or Organization level

If you're on Public Cloud, you can try this solution if you suspect you have an unusually large proxy bundle. If you're on Private Cloud, additional troubleshooting steps are described in Edge Public Cloud Troubleshooting Guide.

For example, if you're deploying a proxy with a Java Callout and the Java code includes a large number of JAR files, it's possible your proxy is exceeding a size limit (by default 15 Mb).

  1. Move any resource files, such as NodeJS Script files and modules, JavaScript files, or JAR files to the environment or organization level. For more information on resource files, see Resource files.
  2. Deploy the API proxy and see if the error goes away. If the problem persists, contact Apigee Support.

     

Help or comments?