KB Article #180537
Inability to export or import server configuration
Problem
In some situation, you might experience errors when trying to export or import the Server Configuration. The export doesn't complete neither from the Admin UI nor from the command line of the server.
Symptoms
When using the system_export
script in the server's terminal, the following message will be thrown:
java.lang.NullPointerException at com.tumbleweed.st.util.SystemConfigExportImporRunUtil.isRunning(SystemConfigExportImporRunUtil.java:101) at com.tumbleweed.st.util.SystemConfigExportImporRunUtil.isExportRunning(SystemConfigExportImporRunUtil.java:43) at com.tumbleweed.st.server.exportimport.SystemConfigExportUtil.systemConfigExport(SystemConfigExportUtil.java:132) at com.tumbleweed.st.server.exportimport.SystemConfigCommandlineUtil.main(SystemConfigCommandlineUtil.java:358)
When attempting the export from the Admin UI you won't be able to load the Operations -> Server Configuration -> Import/Export Server Configuration page, and you will be greeted by an Internal Server Error
. The following message will be observed on the Server Log page:
Unexpected exception caught by error page.
With Stack Trace:
java.lang.NullPointerException at com.tumbleweed.st.util.SystemConfigExportImporRunUtil.isRunning(SystemConfigExportImporRunUtil.java:101) at com.tumbleweed.st.util.SystemConfigExportImporRunUtil.isExportRunning(SystemConfigExportImporRunUtil.java:43) at com.tumbleweed.st.server.admin.configuration.ServerImportExportContext.doGet(ServerImportExportContext.java:76) at com.tumbleweed.tda.tags.control.ContextHandler.handleAction(ContextHandler.java:88) at com.tumbleweed.tda.tags.control.ContextHandlerTag.doEndTag(ContextHandlerTag.java:96) at org.apache.jsp.configuration.serverImportExport_jspx._jspx_meth_control_005fcontext_005f0(serverImportExport_jspx.java:649) at org.apache.jsp.configuration.serverImportExport_jspx._jspService(serverImportExport_jspx.java:108) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
Resolution
One possible cause for these errors might be a leftover file in the $FILEDRIVEHOME/var/tmp
folder. If it exists, remove it and then attempt the configuration export again.