OH 3.1 changed IP, not wont run

Hi All

Running OH3.1 stable on Ubuntu 20, Im settting up a new system to migrate over to from 2.5.

It was running DHCP, so i edited the netplan file , changed the IP, re-ssh’d in and now OH wont start

Any ideas?


kris@ihp:~$ systemctl status openhab
● 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 Thu 2021-09-16 07:37:47 AEST; 4s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 18843 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
   Main PID: 18843 (code=exited, status=1/FAILURE)

Sep 16 07:37:47 ihp systemd[1]: openhab.service: Main process exited, code=exited, status=1/FAILURE
Sep 16 07:37:47 ihp systemd[1]: openhab.service: Failed with result 'exit-code'.
kris@ihp:~$ java -version
openjdk version "11.0.8" 2020-07-14 LTS
OpenJDK Runtime Environment Zulu11.41+23-CA (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.41+23-CA (build 11.0.8+10-LTS, mixed mode)
kris@ihp:~$


Thanks!

Anything at all in openhab.log? The output from systemctl doesn’t give us much to go on.

Maybe there is something useful in the syslog.

I can’t imagine he what you changed would have done anything to break OH.

Not really, dont believe these are related:


2021-09-15 21:18:17.090 [ERROR] [Events.Framework                    ] - FrameworkEvent ERROR
java.lang.IllegalStateException: Configuration Admin service has been unregistered
        at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfigurationManager(ConfigurationAdminImpl.java:325) ~[?:?]
        at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfiguration(ConfigurationAdminImpl.java:156) ~[?:?]
        at org.apache.karaf.log.core.internal.LogServiceImpl.getConfiguration(LogServiceImpl.java:121) ~[?:?]
        at org.apache.karaf.log.core.internal.LogServiceImpl.setLevel(LogServiceImpl.java:103) ~[?:?]
        at org.apache.karaf.log.command.LogTail$LogServiceTracker.removedService(LogTail.java:103) ~[?:?]
        at org.apache.karaf.log.command.LogTail$LogServiceTracker.removedService(LogTail.java:76) ~[?:?]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969) ~[osgi.core-7.0.0.jar:?]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:871) ~[osgi.core-7.0.0.jar:?]
        at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341) ~[osgi.core-7.0.0.jar:?]
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911) ~[osgi.core-7.0.0.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:120) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:957) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:936) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:873) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:241) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.apache.karaf.util.tracker.BaseActivator.doStop(BaseActivator.java:146) ~[?:?]
        at org.apache.karaf.util.tracker.BaseActivator.stop(BaseActivator.java:108) ~[?:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:871) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[org.eclipse.osgi-3.16.200.jar:?]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:863) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:1026) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:371) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.doStop(Module.java:660) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.stop(Module.java:521) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1886) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1761) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:275) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:203) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.doStop(Module.java:660) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.stop(Module.java:521) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:207) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:221) ~[org.eclipse.osgi-3.16.200.jar:?]
        at java.lang.Thread.run(Thread.java:834) ~[?:?]
2021-09-15 21:18:17.112 [ERROR] [Events.Framework                    ] - FrameworkEvent ERROR
java.lang.IllegalStateException: Configuration Admin service has been unregistered
        at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfigurationManager(ConfigurationAdminImpl.java:325) ~[?:?]
        at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfiguration(ConfigurationAdminImpl.java:156) ~[?:?]
        at org.apache.karaf.log.core.internal.LogServiceImpl.getConfiguration(LogServiceImpl.java:121) ~[?:?]
        at org.apache.karaf.log.core.internal.LogServiceImpl.setLevel(LogServiceImpl.java:103) ~[?:?]
        at org.apache.karaf.log.command.LogTail$LogServiceTracker.removedService(LogTail.java:103) ~[?:?]
        at org.apache.karaf.log.command.LogTail$LogServiceTracker.removedService(LogTail.java:76) ~[?:?]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969) ~[osgi.core-7.0.0.jar:?]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:871) ~[osgi.core-7.0.0.jar:?]
        at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341) ~[osgi.core-7.0.0.jar:?]
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911) ~[osgi.core-7.0.0.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:120) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:957) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:936) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:873) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:241) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.apache.karaf.util.tracker.BaseActivator.doStop(BaseActivator.java:146) ~[?:?]
        at org.apache.karaf.util.tracker.BaseActivator.stop(BaseActivator.java:108) ~[?:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:871) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[org.eclipse.osgi-3.16.200.jar:?]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:863) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:1026) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:371) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.doStop(Module.java:660) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.stop(Module.java:521) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1886) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1761) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:275) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:203) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.doStop(Module.java:660) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.Module.stop(Module.java:521) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:207) ~[org.eclipse.osgi-3.16.200.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:221) ~[org.eclipse.osgi-3.16.200.jar:?]
        at java.lang.Thread.run(Thread.java:834) ~[?:?]

Is that the full content of openhab.log or just the first error. It might be useful to see how far along in the boot openHAB got before crashing if there is more in the logs than that.

Have you tried to run it manually? Maybe that will give a more reasonable error.

Hi Rich, yep that was the full log. I just rebuilt the server - faster :confused: