Openhab issue after update

I was running openhab 3.0.0 and just ran the update to 3.1.0 all went fine. It prompted about the jre update and regrettably I did it.

Now I get:

2021-08-04 13:31:38.837 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Could not resolve mvn:org.eclipse.platform/org.eclipse.osgi/3.12.100
        at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
        at org.apache.karaf.main.Main.createClassLoader(Main.java:512)
        at org.apache.karaf.main.Main.launch(Main.java:282)
        at org.apache.karaf.main.Main.main(Main.java:183)

2021-08-04 13:31:48.644 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Could not resolve mvn:org.eclipse.platform/org.eclipse.osgi/3.12.100
        at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
        at org.apache.karaf.main.Main.createClassLoader(Main.java:512)
        at org.apache.karaf.main.Main.launch(Main.java:282)
        at org.apache.karaf.main.Main.main(Main.java:183)

I have tried clearing the cache, fix the permissions rebooted and I seem like I am in a dead lock.

Java -version
openjdk version “11.0.12” 2021-07-20 LTS
OpenJDK Runtime Environment Zulu11.50+19-CA (build 11.0.12+7-LTS)
OpenJDK Client VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode)

I am not to sure if I should roll back java (not that right now I know how) or what. Could anyone shed some light on it?

I have found a how to rollback:

#go to folder
/opt/jdk/

#download
sudo wget https://cdn.azul.com/zulu-embedded/bin/zulu11.43.88-ca-jdk11.0.9-linux_aarch32hf.tar.gz

#unpack
sudo tar -xzvf zulu11.43.88-ca-jdk11.0.9-linux_aarch32hf.tar.gz

#create alternative
sudo update-alternatives --install /usr/bin/java java /opt/jdk/zulu11.43.88-ca-jdk11.0.9-linux_aarch32hf/bin/java 100

#update to new alternative – select new java version
sudo update-alternatives --config java

#check version
java -version

Rebooted but same error

I have decided that over the years it has had a lot of playing around and a fresh install wouldn’t be a bad start with restoring the backup.

Just in case someone else runs into this issue. I also upgraded from 3.0 to 3.1 and got a similar error message. In my case it could be fixed by deleting the userdata/etc folder (which I had copied from 3.0) and replacing it with the userdata/etc folder from 3.1.