We are getting 404 Response for all the APIs in one of the environments "hybrid" as shown below:
curl -v "https://myorg-hybrid.apigee.net/apps" ... HTTP/1.1 404 Not Found <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> </body> </html>How to troubleshoot this issue ?
Solved! Go to Solution.
/opt/nginx/conf.d
on the Routers and noticed that the conf files for the Virtual Hosts in "hybrid" environment were missing.
/opt/apigee/var/log/edge-router/logs/startupruntimeerrors.log
and noticed the below exception:
2018-04-17 16:53:22,737 org:orionhealth-internal env:hybrid main ERROR STARTUP_RUNTIME_ERROR - AbstractConfigurator.handleUpdate() : 'status':'error', 'action':'add','type':'KeyStore','message':'ADD KeyStore /organizations/myorg/environments/hybrid/keystores/test_trust_store/','ExceptionMessage':'{}' java.lang.NullPointerException: null at com.apigee.entities.configurators.KeyStore.handleAdd(KeyStore.java:76) ~[config-entities-1.0.0.jar:na] at com.apigee.entities.AbstractConfigurator.handleUpdate(AbstractConfigurator.java:137) ~[config-entities-1.0.0.jar:na] at com.apigee.application.entities.Environment.handleUpdate(Environment.java:108) [application-classification-1.0.0.jar:na] ... <snipped>
GET v1/organizations/myorg/environments/hybrid/keystores
The truststore was listed in the output of this API.
GET v1/organizations/myorg/environments/hybrid/keystores/test_trust_store { "code" : "messaging.config.beans.KeyStoreNotFound", "message" : "Key store with name : test_trust_store not found in environment : hybrid", "contexts" : [ ] }
After this, we started getting successful responses for all the APIs in hybrid environment.
/opt/nginx/conf.d
on the Routers and noticed that the conf files for the Virtual Hosts in "hybrid" environment were missing.
/opt/apigee/var/log/edge-router/logs/startupruntimeerrors.log
and noticed the below exception:
2018-04-17 16:53:22,737 org:orionhealth-internal env:hybrid main ERROR STARTUP_RUNTIME_ERROR - AbstractConfigurator.handleUpdate() : 'status':'error', 'action':'add','type':'KeyStore','message':'ADD KeyStore /organizations/myorg/environments/hybrid/keystores/test_trust_store/','ExceptionMessage':'{}' java.lang.NullPointerException: null at com.apigee.entities.configurators.KeyStore.handleAdd(KeyStore.java:76) ~[config-entities-1.0.0.jar:na] at com.apigee.entities.AbstractConfigurator.handleUpdate(AbstractConfigurator.java:137) ~[config-entities-1.0.0.jar:na] at com.apigee.application.entities.Environment.handleUpdate(Environment.java:108) [application-classification-1.0.0.jar:na] ... <snipped>
GET v1/organizations/myorg/environments/hybrid/keystores
The truststore was listed in the output of this API.
GET v1/organizations/myorg/environments/hybrid/keystores/test_trust_store { "code" : "messaging.config.beans.KeyStoreNotFound", "message" : "Key store with name : test_trust_store not found in environment : hybrid", "contexts" : [ ] }
After this, we started getting successful responses for all the APIs in hybrid environment.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |