SEVERE Error 'couldn't start framework' after installing binding (SNMP)

I’m running OH 3.1.0 - Releas Build with openHABian ({2021-09-02T22:55:03+02:00}) on a Raspberry PI 4 (4GB)

Tried to install the SNMP binding and getting this error every minute now:

2021-10-12 08:28:49.609 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-snmp': Error:

	Error downloading mvn:org.apache.karaf.features/org.apache.karaf.features.command/4.3.2

Didn’t quite get, what this error means, something with maven?

oh! the logs didn’t quite show, but as I tried to enter the console, I got the following error:

[08:45:26] openhabian@openhabMain:~$ openhab-cli console

Error: Could not find or load main class org.apache.karaf.client.Main
Caused by: java.lang.ClassNotFoundException: org.apache.karaf.client.Main

So I rebooted my Pi and after that, OH3 didn’t come up again:

[08:51:22] openhabian@openhabMain:~$ sudo /bin/systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
   Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2021-10-12 08:51:23 CEST; 4s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 5436 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
 Main PID: 5436 (code=exited, status=255/EXCEPTION)

I tried:

sudo openhab-cli reset-ownership 

and then starting OH3 with debug again

[09:03:33] openhabian@openhabMain:~$ sudo openhab-cli start --debug

A systemd service configuration exists...
Use 'sudo /bin/systemctl start openhab.service' to start an openHAB service
Launching an instance in this terminal..
Launching the openHAB runtime...
Listening for transport dt_socket at address: 5005
Could not resolve mvn:org.eclipse.platform/org.eclipse.osgi/3.16.200

So, what’s going on here?

Tried switching the JDK from

[09:09:57] openhabian@openhabMain:~$ 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)

to

[09:12:19] openhabian@openhabMain:~$ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

but still (after clean-cache):

[09:12:46] openhabian@openhabMain:~$ sudo openhab-cli start --debug

A systemd service configuration exists...
Use 'sudo /bin/systemctl start openhab.service' to start an openHAB service
Launching an instance in this terminal..
Launching the openHAB runtime...
Listening for transport dt_socket at address: 5005
Could not resolve mvn:org.eclipse.platform/org.eclipse.osgi/3.16.200

What I did was to use option 02 in openhabian-config to Upgrade System, and it installed a bunch of new packages. But that was after I ran into the above initial problem with the failed SNMP-binding installation…

finally, this one did the trick and I could start my openHAB3 again:

sudo apt-get --reinstall install openhab

after that I could start my openHAB again.

Still don’t know, what went wrong in the first place…?