- Platform information:
- Hardware: Pi 3B+
- OS: Raspbian
- Java Runtime Environment: openjdk 11.0.9 2020-10-20 LTS
- openHAB version:
Hi, after removing OH2 and installing OH3, it will not start correctly.
Below my status after starting the service
pi@raspberrypi:~ $ sudo systemctl status openhab.service
● openhab.service - Starts and stops the openHAB Home Automation Bus
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-11-19 16:09:01 CET; 3s ago
Docs: http://www.openhab.org
Main PID: 4463 (karaf)
Tasks: 10 (limit: 4915)
CGroup: /system.slice/openhab.service
├─4463 /bin/sh /usr/share/openhab/runtime/bin/karaf
└─4569 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/openhab -Dfelix.cm.
nov 19 16:09:01 raspberrypi systemd[1]: Started Starts and stops the openHAB Home Automation Bus.
nov 19 16:09:01 raspberrypi start.sh[4463]: Launching the openHAB runtime...
Below the status after a minute:
pi@raspberrypi:~ $ sudo systemctl status openhab.service
● openhab.service - Starts and stops the openHAB Home Automation Bus
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Fri 2021-11-19 16:09:28 CET; 4min 1s ago
Docs: http://www.openhab.org
Process: 4463 ExecStart=/usr/share/openhab/start.sh (code=exited, status=0/SUCCESS)
Main PID: 4463 (code=exited, status=0/SUCCESS)
nov 19 16:09:16 raspberrypi start.sh[4463]: ___ ___ ___ ___ | | | | / \ | __ )
nov 19 16:09:16 raspberrypi start.sh[4463]: / _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \
nov 19 16:09:16 raspberrypi start.sh[4463]: | (_) | (_) | __/| | | || _ | / ___ \ | |_) )
nov 19 16:09:16 raspberrypi start.sh[4463]: \___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/
nov 19 16:09:16 raspberrypi start.sh[4463]: |_| 3.1.0 - Release Build
nov 19 16:09:16 raspberrypi start.sh[4463]: [1B blob data]
nov 19 16:09:16 raspberrypi start.sh[4463]: Use '<tab>' for a list of available commands
nov 19 16:09:16 raspberrypi start.sh[4463]: and '[cmd] --help' for help on a specific command.
nov 19 16:09:16 raspberrypi start.sh[4463]: To exit, use '<ctrl-d>' or 'logout'.
nov 19 16:09:20 raspberrypi start.sh[4463]: openhab>
pi@raspberrypi:~ $
It is now Inactive (dead)
This is my log file:
2021-11-19 16:09:21.216 [WARN ] [raf.features.internal.osgi.Activator] - Error starting activator
java.lang.IllegalStateException: BundleContext is no longer valid org.apache.karaf.features.core_4.3.2 [18]
at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:1027) ~[org.eclipse.osgi-3.16.200.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:495) ~[org.eclipse.osgi-3.16.200.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:515) ~[org.eclipse.osgi-3.16.200.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1043) ~[org.eclipse.osgi-3.16.200.jar:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:425) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:413) ~[bundleFile:?]
at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:198) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
What is going wrong?