Internal Server 500 error when we click on Metrics tab


Description

When clicking on the "Metrics" tab in the alert inside the Operator Workspace we get the following error message:

Internal Server 500 error displayed. An error has occurred. Please refresh or contact support

Release or Environment

All releases where the MetricBase [com.snc.clotho] plugin is activatedd.

Cause

The main reason for the error was because the Clotho DB was offline.

We will see the following in the sys_logs:

Failed to connect to com.snc.clotho.config.GlideSimpleClient@1d885f1: Unavailable Clients: : com.snc.clotho.config.GlideSimpleClient.connect(GlideSimpleClient.java:51)
com.snc.clotho.config.GlideClientFactory.canConnect(GlideClientFactory.java:61)
com.snc.clotho.config.GlideClientFactory.getClient(GlideClientFactory.java:26)
com.snc.clotho.config.GlideClientFactory.getClient(GlideClientFactory.java:37)
com.snc.clotho.config.ClothoClientManager.createClient(ClothoClientManager.java:328)
com.snc.clotho.config.ClothoClientManager.refreshWithException(ClothoClientManager.java:120)
com.snc.clotho.config.ClothoClientManager.refresh(ClothoClientManager.java:103)
com.snc.clotho.scriptable.ScopedClothoConfigService.jsStaticFunction_refresh(ScopedClothoConfigService.java:35)
sun.reflect.GeneratedMethodAccessor1478.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)


Also, we can check if the Clotho DB is working by testing the Clotho DB or checking the stats in Stats.do page

Resolution

After fixing the Clotho DB the issue was resolved.