Internal Server error while accessing Autoinstallation profiles in SMLM WebUI
This document (000021949) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Multi Linux Manager 5.x
Situation
After migration from SUSE Manager 4.3 to SUSE Multi Linux Manager 5.x, clicking Autoinstallation Profiles results in an Internal Server Error in the WebUI.
The following is logged in the rhn.webui.log:
ERROR com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction. Rolling back
javax.servlet.ServletException: java.lang.NullPointerException: Cannot invoke "org.cobbler.Profile.getName()" because "prof" is null
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) ~[struts.jar:1.2.9]
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) ~[struts.jar:1.2.9]
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237) ~[struts.jar:1.2.9]
at com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:103) ~[rhn.jar:?]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) ~[struts.jar:1.2.9]
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) ~[struts.jar:1.2.9]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:529) ~[tomcat-servlet-4.0-api.jar:4.0.FR]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) ~[tomcat-servlet-4.0-api.jar:4.0.FR]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199) ~[catalina.jar:9.0.98]
at
Resolution
Each *.json file of the profile need to be verified and the files with an incorrect path for the distribution must be replaced with the correct one.
The files where the distribution path is correct can be ignored.
Get the list of profiles and the distributions:
ls -l /var/lib/cobbler/collections/distros/
ls -l /srv/www/distributions/
Example :
Edit the distro file sles15sp5-suse-base:1:JLR.json :
change the wrong path
initrd "/srv/www/htdocs/distros/SLES-15-SP5-DVD-x86_64/boot/x86_64/loader/initrd"
kernel "/srv/www/htdocs/distros/SLES-15-SP5-DVD-x86_64/boot/x86_64/loader/linux"
to
initrd "/srv/www/distributions/1-sles15sp5-base/boot/x86_64/loader/initrd"
kernel "/srv/www/distributions/1-sles15sp5-base/boot/x86_64/loader/linux"
Follow the same procedure for all the distribution files and then restart the cobbler service:
systemctl restart cobblerd
Cause
The profiles are corrupted during the migration from SUSE Manager 4.3 to any version less than SUSE Multi Linux Manager 5.0.5.
Status
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021949
- Creation Date: 29-Jul-2025
- Modified Date:26-Aug-2025
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com