Thanks, Julio. It looks like my mistake was following the minor-upgrade steps, then going off piste with manual steps. I've now rolled back to the starting place, and will have another stab at it tomorrow using the link you provided. S -----Original Message----- From: Julio Gonzalez <jgonzalez@suse.com> Sent: 24 June 2021 13:31 To: uyuni-users@opensuse.org; users@lists.uyuni-project.org Cc: Simon Avery <Simon.Avery@atass-sports.co.uk>; Joseph Cayouette <JCayouette@suse.com> Subject: [EXTERNAL EMAIL] Re: Unable to restart Uyuni following Uyuni upgrade 2021-06 On jueves, 24 de junio de 2021 14:20:41 (CEST) Simon Avery wrote:
Hi Folk,
Thanks for the new release - but I'm having significant issues (around four hours so far) in updating this and currently have a broken system.
Please advise!
'spacewalk-server status' reports all is fine, however the webui times out (At other stages, it was returning a 404 for all urls)
Steps I have done:
* Changed repos and upgraded base OS to Leap 15.3
* Upgraded database as per https://www.uyuni-project.org/uyuni-docs/en/uyuni/upgrade/db-migration -13.h tml * Changed the Uyuni repo. * Normal Uyuni upgrade.
Wrong steps. https://www.uyuni-project.org/doc/2021.06/release-notes-uyuni-server.html
Upgrade notes WARNING: Check "Update from previous versions of Uyuni Server" section below for details, as this release updates the base OS from openSUSE Leap 15.2 to openSUSE Leap 15.3, and there are special steps required. You need at least Uyuni 2020.07 already installed to perform the upgrade.
Update from previous versions of Uyuni Server WARNING: Make sure you check the documentation this time. Because of the change from openSUSE Leap 15.2 to openSUSE Leap 15.3, some special steps are required! WARNING: This applies not only when updating from 2021.05, but also when updating from any version after 2020.07 (included). Updating from 2020.06 and older is not supported anymore. See the "Upgrade Guide" for detailed instructions on how to upgrade. You will need to follow the "Upgrade the Server" > "Server - Major Upgrade"
Then if you go to that section... section.
All connected clients will continue to run and are manageable unchanged
And the doc: https://www.uyuni-project.org/uyuni-docs/en/uyuni/upgrade/server-major-upgra... *Maybe* you can fix the issues by doing the procedure again, EXCEPT the call to /usr/lib/susemanager/bin/pg-migrate-12-to-13.sh (step 3) as you already did that. That should work, but if you have a backup, it's better if you restore it and start the upgrade again. TBH, I wonder if we should not just remove the "Upgrade the Database" and integrate it with the the "Server - Major Upgrade" section. Joseph any opinion?
All package issues seemingly resolved, apart from this:
Problem: the to be installed patch:SUSE-2020-3767-1.noarch conflicts with 'apache-commons-el < 1.0-3.3.1' provided by the installed apache-commons-el-1.0-bp153.2.24.noarch Solution 1: Following actions will be done: deinstallation of apache-commons-el-1.0-bp153.2.24.noarch deinstallation of spacewalk-java-4.2.23-1.7.uyuni1.noarch deinstallation of spacewalk-common-4.2.3-1.6.uyuni1.noarch deinstallation of spacewalk-postgresql-4.2.3-1.6.uyuni1.noarch deinstallation of patterns-uyuni_server-2021.06-2.3.uyuni1.x86_64 deinstallation of susemanager-4.2.19-1.2.uyuni1.x86_64 deinstallation of supportutils-plugin-susemanager-4.2.2-2.4.uyuni1.noarch deinstallation of uyuni-cluster-provider-caasp-4.2.3-1.4.uyuni1.noarch Solution 2: do not install patch:SUSE-2020-3767-1.noarch
(Did try #1, then reinstalling uyuni-server patterns, but it just reappears. ISTR there was a breaking issue with apache-commons-el in a previous update)
The main issue appears to be related to this, in catalina's logs: (The dir is present and has an index.jsp file and dirs.)
24-Jun-2021 11:24:31.328 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.36] 24-Jun-2021 11:24:31.357 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/srv/tomcat/webapps/rhn] 24-Jun-2021 11:24:33.950 SEVERE [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/srv/tomcat/webapps/rhn] java.lang.IllegalStateException: Error starting child at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java: 720) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690 ) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java :1132 ) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java: 1865) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executor s.jav a:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExe cutor Service.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(Abstract Execu torService.java:118) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.ja va:10 44) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: 309) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBas e.jav a:123) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java: 423) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366 ) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.jav a:936 ) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java: 841) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.j ava:1 384) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.j ava:1 374) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExe cutor Service.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(Abstract Execu torService.java:140) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.jav a:909 ) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.j ava:2 62) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardService .java :421) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.j ava:9 30) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:633) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM ethod AccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del egati ngMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/rhn ]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(Lifecyc leBas e.java:440) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java: 717) ... 37 more Caused by: java.lang.NullPointerException at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScan ner.j ava:382) at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner .java :195) at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(C ontex tConfig.java:1971) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java :1129 ) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig .java :775) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig .java :301) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBas e.jav a:123) at org.apache.catalina.core.StandardContext.startInternal(StandardContext .java :5044) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ... 38 more 24-Jun-2021 11:24:33.958 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/srv/tomcat/webapps/rhn] has finished in [2,601] ms 24-Jun-2021 11:24:33.990 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-127.0.0.1-8009"] 24-Jun-2021 11:24:34.297 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-0:0:0:0:0:0:0:1-8009"] 24-Jun-2021 11:24:34.509 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-8080"] 24-Jun-2021 11:24:34.564 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [3,354] milliseconds
Simon Avery Linux Systems Administrator
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com