UIM Admin Console HTTP Status 500 – Internal Server Error
search cancel

UIM Admin Console HTTP Status 500 – Internal Server Error

book

Article ID: 218418

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

After successfully upgrading UIM 20.3.3 from version 20.1.0 with Primary Hub running on Linux 7.4 system, logging into Admin Console as "administrator" produced the following error:


HTTP Status 500 – Internal Server Error
Type Exception Report

Message An exception occurred processing [jsp/view.jsp] at line [38]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: An exception occurred processing [jsp/view.jsp] at line [38]

35: <%
36:     String ht = DEF_HEIGHT;
37:     String cp = request.getContextPath();
38:     Locale locale = LocaleUtils.getBestLocale(request);
39:     String strLocale = locale.toString();
40:     String isPortlet = (String)session.getAttribute("is_portlet");
41:     // handle cases where extra locale information is passed in; our downstream tools only use the primary identifier


Stacktrace:
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:611)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:490)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:378)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:326)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
 com.firehunter.adminconsole_core.NimsofCsrfPreventionFilter.doFilter(NimsofCsrfPreventionFilter.java:195)
 com.firehunter.adminconsole.config.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:126)
 org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)
 com.firehunter.adminconsole.filter.XSSParamFilter.doFilter(XSSParamFilter.java:107)
Root Cause

javax.servlet.ServletException: java.lang.NoSuchMethodError: com.firehunter.ump.auth.NmsAuth.getLiferayUserByLoginName(Ljava/lang/String;)Lcom/liferay/portal/model/User;
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:664)
 org.apache.jsp.jsp.view_jsp._jspService(view_jsp.java:462)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:467)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:378)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:326)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
 com.firehunter.adminconsole_core.NimsofCsrfPreventionFilter.doFilter(NimsofCsrfPreventionFilter.java:195)
 com.firehunter.adminconsole.config.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:126)
 org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)
 com.firehunter.adminconsole.filter.XSSParamFilter.doFilter(XSSParamFilter.java:107)
Root Cause

java.lang.NoSuchMethodError: com.firehunter.ump.auth.NmsAuth.getLiferayUserByLoginName(Ljava/lang/String;)Lcom/liferay/portal/model/User;
 com.nimsoft.nimbus.probe.service.wasp.api.i18n.LocaleUtils.getBestLocale(LocaleUtils.java:63)
 org.apache.jsp.jsp.view_jsp._jspService(view_jsp.java:188)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:467)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:378)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:326)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
 com.firehunter.adminconsole_core.NimsofCsrfPreventionFilter.doFilter(NimsofCsrfPreventionFilter.java:195)
 com.firehunter.adminconsole.config.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:126)
 org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)
 com.firehunter.adminconsole.filter.XSSParamFilter.doFilter(XSSParamFilter.java:107)
Note The full stack trace of the root cause is available in the server logs.

Environment

Release : 20.3

Component : UIM - ADMIN_CONSOLE

Resolution

- The wasp on Primary Hub was rebuilt following the below document after which the issue was resolved:

How to reinstall the web-based Admin Console on the Primary hub (broadcom.com)

 

Note:

- The above technical guide solution assumes you don't have Operator Console installed on the same Primary Hub robot, i.e. you have Operator Console installed on a separate robot. In case you have Operator Console installed alongside Primary Hub on the same robot, redeploy the necessary Operator Console packages as well along with the packages mentioned in the above technical guide

 

Issue 2:

After following the above solution, ran into the following new error in the Admin Console:

 

HTTP STATUS 408

The request was not produced within the time that the server was prepared to wait.

 

Solution:

- Observed the Primary Hub's wasp directory (path: /opt/nimsoft/probes/service) had its permissions and the directory owner changed. The Owner was changed from "uim install user" to user "root" and the file permissions set as "rwx------" .

- Reverted the permissions and the owner of the directory to 'UIM installed user' following the below commands:

cd /opt 
sudo chown uimadmin:uimadmin -R nimsoft
sudo chmod 755 -R nimsoft

- Restart wasp probe to resolve the issue

 

Note:

- in the above example:

(a) nimsoft is installed in its default location, i.e. /opt

(b) "uimadmin" is the UIM installed user