General Troubleshooting
The following table provides information for troubleshooting general Mashery Local (for Appliance and Docker) issues.
Form Factor | Issue | Notes |
---|---|---|
All | API call returns a 596 error |
Possible Cause API is configured with specific supported HTTP Methods, and the HTTP Method used for this call is not allowed. Diagnostic Steps Resolution |
Appliance | API call returns a 596 error |
Possible Cause
Memcached is not running Diagnostic Steps Check that the API configuration is loaded into memcache:
Resolution If the response is coming from the master and the settings are not in memcache, you likely have a synchronization issue. If the response is coming from the slave and the settings are not in memcache, you like have a replication issue. Force a memcache load of the service definitions: /opt/javaproxy/proxy/memcacheloader --env production --verbose --service |
Docker | API call returns a 596 Error |
Possible Cause Memcached container is not running. Diagnostic Steps Resolution
|
All | API call returns intermittent 596 error on a previously working slave. |
Possible Cause
Sync between master and one or more slaves is not working. Diagnostic Steps Errors are intermittent indicating that there is a problem with one slave. Use the following command:
python /opt/mashery/utilities/debug_util.pySelect Option 3 (Show Slave Status). This option displays whether a Slave is functioning correctly, including its status, the Master systems IP address and any replication errors that are present between Master and Slave. Resolution If errors are present, recreate the Slave instance. |
All | API call returns 596 error on a new slave. |
Possible Cause Sync between master and slave is not working. Diagnostic Steps When connecting a new slave to a Master, the customer sees this error:
Registering as Slave ERROR: Failed to configure the node as slave. Resolution This can happen if the IP Address of the Master was changed after the initial installation of the Master. The built in Debug Utility (debug_util.py) should be run on the Master in order to fix this. Have the customer run the debug_util.py on the "Master", using the following command:
python /opt/mashery/utilities/debug_util.pySelect Option 5. (Update record or Master IP address in Master. (Master IP address has changed and registration of new Slave with cluster fails)). The customer should then be able to register the new Slave to the Master node. |
All | Mashery Local Web Console is blank. |
Possible Cause Disk is full. Diagnostic Steps Review disk space using the "df -h" command. This will give you a percentage usage of both disks (there are usually 2 disks, 1 "system" and the other "mnt" (mnt contains the logs and the mysql database, the rest is on system) Resolution If disk space utilization is over 90% for either disk, customer should ask their System Administrator to increase the size of the respective disk. |
All | Mashery Local Web Console is blank. |
Possible Cause Available memory is low. Diagnostic Steps Review free memory using the "free -h" command. Resolution If available memory is low or the system is using swap, customer should ask their System Administrator to increase the size of memory on this instance or add more nodes to the cluster so that this instance is not at capacity. |
Appliance | Mashery Local Web Console is blank. |
Possible Cause Basic processes are not running. Diagnostic Steps Resolution If any of these processes are not running, reboot Mashery Local instance. |
All | Cannot synchronize API Settings. |
Possible Cause Connection to Mashery On-Prem Manager (MOM) is not present. Diagnostic Steps Run the following command:dig api-mom.mashery.com If you get a response, then try:
curl -k https://api-mom.mashery.com/ping Resolution If you get a response, then you do have a good connection to MOM. If you do not get a response, check your network configuration to ensure outbound HTTPS / 443 access is allowed. |
All | Mashery Local returns a 503 Service Unavailable error. |
Possible Cause Failsafe is being triggered for the endpoint in question. Diagnostic Steps Confirm that the error message of
503_Service_Unavailable_Proxyis being returned. Resolution This means Mashery's failsafe has been triggered due to excessive 504 responses from the API over a short period of time. It could be that the customer's origin servers are now taking longer than the configured connection or response TTLs set on the endpoint. If those values are low, then the customer should increase the values. If they are already high, then the customer needs to improve performance on their origin server to alleviate the issue. |
Docker | Docker Instance cannot be reached. |
Possible Cause Docker containers need to be returned to a clean state. Diagnostic Steps Error checking TLS connection: Something went wrong running an SSH command! error getting ip address: host is not running Docker-Machine instances in Timeout state Resolution
If you are connected to the VPN, disconnect VPN docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) docker rmi $(docker images -q) Open Virtualbox, click File -> Preferences -> Network -> Host-only Network, remove Vboxnet# unset ${!DOCKER*} Restart Docker Terminal and start creating new instance. |