OpenHAB2 Server stopping unexepected

Hello

My OpenHAB2 Server just stop working from time to time:

cupro@Bunker-Kubuntu:/var/log/openhab2⟫ tail -50 openhab.log
[…INFO about ab.binding.exec.internal.ExecBinding which runs every 15seconds…]
2017-05-15 10:34:39.547 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
cupro@Bunker-Kubuntu:/var/log/openhab2⟫ sudo service openhab2 status
status: Ignoring predefined value for KARAF_HOME
Not Running …
1 cupro@Bunker-Kubuntu:/var/log/openhab2⟫ sudo service openhab2 start

  • Starting openHAB2 server openhab2
    …done.

I have no idea.
It doesn’t run on an RPI, which is the most common failure here I have found.
Its an older desktop client, with Kubuntu.

You need a lot more than just the last line from the logs do diagnose this. All that logging statement says is that it shutdown. And it looks like it shutdown normally. At least it didn’t crash.

Thanks for answering

it wasn’t more in this case :slight_smile:
I have only shorted it … here you see the last minutes before “crash”.
Maybe a better example at the bottom of the post.

2017-05-15 10:30:30.329 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:30:45.275 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:31:00.220 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:31:15.391 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:31:30.329 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:31:45.363 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:32:00.393 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:32:15.293 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:32:30.341 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:32:45.334 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:33:00.487 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:33:15.244 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:33:30.367 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:33:45.272 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:34:00.473 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:34:15.227 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:34:30.191 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-15 10:34:39.547 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-05-15 10:54:04.051 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.items'
2017-05-15 10:54:04.907 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2017-05-15 10:54:10.248 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.rules'
2017-05-15 10:54:12.901 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.script'
2017-05-15 10:54:14.978 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'

I have more examples:
Here is also a problem with a rule, I have since months, without crashes.

2017-05-16 16:07:00.108 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 16:07:15.120 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule BunkerLuft: org.eclipse.smarthome.core.library.types.DecimalType
2017-05-16 16:07:15.130 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 16:07:30.103 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule BunkerLuft: org.eclipse.smarthome.core.library.types.DecimalType
2017-05-16 16:07:30.118 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 16:07:45.131 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule BunkerLuft: org.eclipse.smarthome.core.library.types.DecimalType
2017-05-16 16:07:45.192 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 16:08:00.197 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 16:08:00.210 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule BunkerLuft: org.eclipse.smarthome.core.library.types.DecimalType
2017-05-16 16:08:06.731 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-05-16 16:24:37.615 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.items'
2017-05-16 16:24:38.370 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2017-05-16 16:24:42.837 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.rules'
2017-05-16 16:24:45.445 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.script'
2017-05-16 16:24:47.006 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'

There is another example today with more infos?

2017-05-16 07:50:30.099 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 07:50:45.116 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 07:51:00.078 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 07:51:15.091 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 07:51:26.244 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-05-16 07:51:30.127 [INFO ] [ab.binding.exec.internal.ExecBinding] - executed commandLine 'curl https://api.particle.io/v1/devices/XXX/PoolFilter?access_token=YYY -d args=2'
2017-05-16 07:51:35.940 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Deleting weatherJob-home
2017-05-16 07:51:36.001 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'rack'
2017-05-16 07:51:36.157 [INFO ] [b.core.service.AbstractActiveService] - Exec Refresh Service has been shut down
2017-05-16 07:51:36.479 [ERROR] [.eclipse.smarthome.model.persistence] - [org.eclipse.smarthome.model.persistence.manager(105)] The unsetModelRepository method has thrown an exception
java.lang.NullPointerException
	at org.eclipse.smarthome.model.persistence.internal.PersistenceModelManager.unsetModelRepository(PersistenceModelManager.java:67)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_121]
	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_121]
	at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.inject.BaseMethod$NotResolved.invoke(BaseMethod.java:576)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.inject.BindMethod.invoke(BindMethod.java:655)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.DependencyManager.invokeUnbindMethod(DependencyManager.java:1837)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.DependencyManager.close(DependencyManager.java:1600)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:352)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:152)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:813)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:787)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:579)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.disposeComponents(ConfigurableComponentHolder.java:706)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:523)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:452)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.Activator.access$300(Activator.java:54)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.scr.impl.Activator$ScrExtension.destroy(Activator.java:306)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.utils.extender.AbstractExtender$2.run(AbstractExtender.java:290)[32:org.apache.felix.scr:2.0.6]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
	at org.apache.felix.utils.extender.AbstractExtender.destroyExtension(AbstractExtender.java:312)[32:org.apache.felix.scr:2.0.6]
	at org.apache.felix.utils.extender.AbstractExtender.bundleChanged(AbstractExtender.java:186)[32:org.apache.felix.scr:2.0.6]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.doStop(Module.java:624)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.stop(Module.java:488)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1623)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1542)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:248)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:144)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.doStop(Module.java:626)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.Module.stop(Module.java:488)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:186)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:159)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-05-16 07:51:36.517 [INFO ] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2017-05-16 07:51:36.578 [INFO ] [b.core.service.AbstractActiveService] - HTTP Refresh Service has been shut down
2017-05-16 07:51:36.623 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-05-16 07:51:39.824 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2017-05-16 07:51:39.866 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2017-05-16 07:51:39.889 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-05-16 09:59:41.369 [WARN ] [eclipse.jetty.servlet.ServletHandler] - 
javax.servlet.ServletException: java.lang.IllegalStateException: Request scope has been already shut down.
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[10:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[72:org.eclipse.jetty.io:9.2.19.v20160908]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: java.lang.IllegalStateException: Request scope has been already shut down.
	at jersey.repackaged.com.google.common.base.Preconditions.checkState(Preconditions.java:173)[153:org.glassfish.jersey.bundles.repackaged.jersey-guava:2.22.2]
	at org.glassfish.jersey.process.internal.RequestScope.retrieveCurrent(RequestScope.java:239)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:314)[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[158:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	... 26 more
2017-05-16 09:59:48.678 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.items'
2017-05-16 09:59:49.345 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2017-05-16 09:59:54.321 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.rules'
2017-05-16 09:59:57.962 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dragonlair.script'
2017-05-16 09:59:59.341 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'

It isn’t clear what is happening from these logs.

BasicUI is stopping but then it is acting like it is restarting, at least enough to reload your configs.

Look at your syslogs to see if the karaf console is writing out something. What ever is happening is either not being logged by openHAB or is happening outside of openHAB logging.

Look at the time … I am restarting the service … it is not starting by itself!

ok next time the crash happens i try syslog

hab gegoogled … I have found /var/log/syslog.1 and this is the whole day:
are there other logfiles which could be intersting?

May 16 07:37:22 Bunker-Kubuntu anacron[32285]: Job `cron.daily' terminated
May 16 07:37:22 Bunker-Kubuntu anacron[32285]: Normal exit (1 job run)
May 16 07:39:01 Bunker-Kubuntu CRON[777]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 08:09:01 Bunker-Kubuntu CRON[1891]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 08:17:01 Bunker-Kubuntu CRON[1903]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 08:39:01 Bunker-Kubuntu CRON[1909]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 09:09:01 Bunker-Kubuntu CRON[1924]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 09:17:01 Bunker-Kubuntu CRON[1937]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 09:39:01 Bunker-Kubuntu CRON[1943]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 15 11:32:01 Bunker-Kubuntu console-kit-daemon[1538]: GLib-CRITICAL: Source ID 76 was not found when attempting to remove it
May 16 10:03:04 Bunker-Kubuntu console-kit-daemon[1538]: GLib-CRITICAL: Source ID 127 was not found when attempting to remove it
May 16 10:03:04 Bunker-Kubuntu console-kit-daemon[1538]: GLib-CRITICAL: Source ID 107 was not found when attempting to remove it
May 16 10:09:01 Bunker-Kubuntu CRON[7324]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 10:17:01 Bunker-Kubuntu CRON[7923]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 10:39:01 Bunker-Kubuntu CRON[9557]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 11:09:01 Bunker-Kubuntu CRON[11804]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 11:17:01 Bunker-Kubuntu CRON[12413]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 11:39:01 Bunker-Kubuntu CRON[14055]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 12:09:01 Bunker-Kubuntu CRON[16288]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 12:17:01 Bunker-Kubuntu CRON[16898]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 12:39:01 Bunker-Kubuntu CRON[18543]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 13:09:01 Bunker-Kubuntu CRON[20786]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 13:17:01 Bunker-Kubuntu CRON[21393]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 13:39:01 Bunker-Kubuntu CRON[23033]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 14:09:01 Bunker-Kubuntu CRON[25272]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 14:17:01 Bunker-Kubuntu CRON[25874]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 14:39:01 Bunker-Kubuntu CRON[27517]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 15:09:01 Bunker-Kubuntu CRON[29759]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 15:17:01 Bunker-Kubuntu CRON[30373]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 15:39:01 Bunker-Kubuntu CRON[32015]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 16:09:01 Bunker-Kubuntu CRON[1862]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 16:17:01 Bunker-Kubuntu CRON[1874]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 10:03:04 Bunker-Kubuntu console-kit-daemon[1538]: GLib-CRITICAL: Source ID 107 was not found when attempting to remove it
May 16 16:27:03 Bunker-Kubuntu console-kit-daemon[1538]: GLib-CRITICAL: Source ID 137 was not found when attempting to remove it
May 16 16:39:01 Bunker-Kubuntu CRON[6181]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 17:09:01 Bunker-Kubuntu CRON[8436]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 17:17:01 Bunker-Kubuntu CRON[9040]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 17:39:01 Bunker-Kubuntu CRON[10748]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 18:09:01 Bunker-Kubuntu CRON[12994]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 18:17:01 Bunker-Kubuntu CRON[13619]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 18:39:01 Bunker-Kubuntu CRON[28924]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 19:09:01 Bunker-Kubuntu CRON[22551]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 19:17:02 Bunker-Kubuntu CRON[29813]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 19:39:01 Bunker-Kubuntu CRON[16712]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 20:09:01 Bunker-Kubuntu CRON[10943]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 20:17:01 Bunker-Kubuntu CRON[17731]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 20:39:01 Bunker-Kubuntu CRON[5118]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 21:09:01 Bunker-Kubuntu CRON[30996]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 21:17:01 Bunker-Kubuntu CRON[6170]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 16 21:39:01 Bunker-Kubuntu CRON[25219]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 22:09:01 Bunker-Kubuntu CRON[19343]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
May 16 22:17:01 Bunker-Kubuntu CRON[26144]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

-rw-r--r-- 1 root    root       192 May 15 07:58 alternatives.log
-rw-r--r-- 1 root    root      9098 May 14 22:16 alternatives.log.1
-rw-r--r-- 1 root    root       140 Sep  9  2013 alternatives.log.10.gz
-rw-r--r-- 1 root    root      2938 Sep  8  2013 alternatives.log.11.gz
-rw-r--r-- 1 root    root       225 Jul 12  2013 alternatives.log.12.gz
-rw-r--r-- 1 root    root       311 Mar  4 15:07 alternatives.log.2.gz
-rw-r--r-- 1 root    root       240 Nov 21  2015 alternatives.log.3.gz
-rw-r--r-- 1 root    root       432 Apr 21  2015 alternatives.log.4.gz
-rw-r--r-- 1 root    root       140 Mar 29  2015 alternatives.log.5.gz
-rw-r--r-- 1 root    root       727 Mar 28  2015 alternatives.log.6.gz
-rw-r--r-- 1 root    root      4150 Oct 21  2014 alternatives.log.7.gz
-rw-r--r-- 1 root    root       738 Oct 14  2014 alternatives.log.8.gz
-rw-r--r-- 1 root    root       365 Sep  9  2014 alternatives.log.9.gz
drwxr-x--- 2 root    adm       4096 May 14 07:47 apache2
-rw-r--r-- 1 root    root       717 Oct 15  2014 apcupsd.events
-rw-r----- 1 root    adm          0 Feb 11 07:45 apport.log
-rw-r----- 1 root    adm        420 Feb 11 06:17 apport.log.1
-rw-r----- 1 root    adm        233 Aug 15  2016 apport.log.2.gz
-rw-r----- 1 root    adm        231 Aug 20  2015 apport.log.3.gz
-rw-r----- 1 root    adm        219 Mar 26  2015 apport.log.4.gz
-rw-r----- 1 root    adm        731 Oct 27  2014 apport.log.5.gz
-rw-r----- 1 root    adm        756 Oct 21  2014 apport.log.6.gz
-rw-r----- 1 syslog  adm        114 May  2 04:39 kern.log.2.gz
-rw-r----- 1 syslog  adm        260 Mar 11 19:30 kern.log.3.gz
-rw-r----- 1 syslog  adm        126 Mar  9 03:24 kern.log.4.gz
-rw-rw-r-- 1 root    utmp    292292 May 16 18:22 lastlog
drwxr-xr-x 2 root    root      4096 May 14 22:45 lightdm
-rw-r----- 1 syslog  adm          0 Dec 23  2012 mail.err
-rw-r----- 1 syslog  adm        590 May 15 07:58 mail.log
-rw-r----- 1 syslog  adm        114 May 14 22:45 mail.log.1
-rw-r----- 1 syslog  adm        291 May  8 07:43 mail.log.2.gz
-rw-r----- 1 syslog  adm        295 May  1 07:43 mail.log.3.gz
-rw-r----- 1 syslog  adm        631 Mar  9 09:20 mail.log.4.gz
drwxr-s--- 2 mysql   adm       4096 May 16 07:37 mysql
-rw-r----- 1 mysql   adm          0 Apr 10  2015 mysql.err
-rw-r----- 1 mysql   adm          0 May 16 07:37 mysql.log
-rw-r----- 1 mysql   adm         20 May 15 07:56 mysql.log.1.gz
-rw-r----- 1 mysql   adm         20 May 14 07:47 mysql.log.2.gz
-rw-r----- 1 mysql   adm         20 May 13 07:54 mysql.log.3.gz
-rw-r----- 1 mysql   adm         20 May 12 07:48 mysql.log.4.gz
-rw-r----- 1 mysql   adm         20 May 11 07:54 mysql.log.5.gz
-rw-r----- 1 mysql   adm         20 May 10 07:59 mysql.log.6.gz
-rw-r----- 1 mysql   adm         20 May  9 07:41 mysql.log.7.gz
drwxr-s--x 2 nagios  adm       4096 Nov 21  2015 nagios3
drwxr-xr-x 2 root    root      4096 Dec 23  2012 news
drwxr-xr-x 2 root    openhab   4096 Sep 12  2014 openhab
drwxr-xr-x 2 openhab openhab   4096 May 16 22:16 openhab2
-rw-r--r-- 1 root    root         0 May 15 07:56 pm-powersave.log
-rw-r--r-- 1 root    root      1670 May 14 22:47 pm-powersave.log.1
-rw-r--r-- 1 root    root       428 Apr  4  2016 pm-powersave.log.2.gz
-rw-r--r-- 1 root    root       406 Mar  5  2016 pm-powersave.log.3.gz
-rw-r--r-- 1 root    root       406 Dec  5  2015 pm-powersave.log.4.gz
-rw-r--r-- 1 root    root         0 May 18  2013 pm-suspend.log
-rw-r--r-- 1 root    root      7648 May 18  2013 pm-suspend.log.1
-rw-r--r-- 1 root    root      3084 Mar 26  2013 pm-suspend.log.2.gz
-rw-r--r-- 1 root    root      1745 Feb 22  2013 pm-suspend.log.3.gz
drwxr-x--- 2 root    adm       4096 Oct  5  2012 samba
-rw-r----- 1 syslog  adm       9112 May 16 22:17 syslog
-rw-r----- 1 syslog  adm      15084 May 16 07:37 syslog.1
-rw-r----- 1 syslog  adm      26673 May 15 07:56 syslog.2.gz
-rw-r----- 1 syslog  adm       1050 May 14 07:47 syslog.3.gz
-rw-r----- 1 syslog  adm        959 May 13 07:54 syslog.4.gz
-rw-r----- 1 syslog  adm       1112 May 12 07:48 syslog.5.gz
-rw-r----- 1 syslog  adm       1044 May 11 07:54 syslog.6.gz
-rw-r----- 1 syslog  adm       1014 May 10 07:59 syslog.7.gz

I’m out of ideas. I don’t see anything to explain the shutdowns.

When OH goes down is it consuming a lot of resources?

How can I see that in the past?

You can’t. You will have to wait for OH to crash again and then run top to see if OH is consuming a lot of resources at that time.

Shot a few minutes after crash.

Well, OH isn’t even in the list. Not sure where to go from here. Maybe try a reinstall. OH. I’m out of ideas. There is nothing seen thus far that shows any indication why it’s crashing.

A programmer-friend think it could be a memory leak. I have checked the java process … it is growing and growing. Maybe one of the new rules. But he doesn’t know much enough about openHAB. Maybe I create variables which I didn’t destroy … how to destroy variables in openhab?

I use a global Variable for a DMXDATA string.
Than I check the different items for RGB, White, Amber, UV, Dimmer and build a string.
If the string is different to the last one I send it to my DMX Sender.

var String DMXDATAhexcurrent = ""

rule "DMXHexPar"
when
        Time cron "* * * * * ?"
then

        var HSBType HSBhex1

        var DMXDATAhex = ""

        HSBhex1 = hexGroup1.state as HSBType

        var string hex1redValue = (HSBhex1.red.floatValue * 2.55).intValue.toString
        var string hex1greenValue = (HSBhex1.green.floatValue * 2.55).intValue.toString
        var string hex1blueValue = (HSBhex1.blue.floatValue * 2.55).intValue.toString

        //hex1redValue = "0"
        //hex1greenValue = "0"
        //hex1blueValue = "0"

        var DMXhexdimmer1 = (hex1dimmer.state as DecimalType * 2.55).intValue.toString
        var DMXhex1A = (hex1A.state as DecimalType * 2.55).intValue.toString
        var DMXhex1W = (hex1W.state as DecimalType * 2.55).intValue.toString
        var DMXhex1UV = (hex1UV.state as DecimalType * 2.55).intValue.toString

        DMXDATAhex = "200," + hex1redValue + "," + hex1greenValue + "," + hex1blueValue + "," + DMXhex1W  + "," + DMXhex1A  + "," + DMXhex1UV  + "," + DMXhexdimmer1 + ",255,0,0,0,0"

        if(DMXDATAhexcurrent!=DMXDATAhex){
                DMX.postUpdate(DMXDATAhex)
                executeCommandLine("/home/cupro/scripts/particle_dmux.py " + DMXDATAhex)
                DMXDATAhexcurrent=DMXDATAhex
        }
end

Destroying variables when you are done with them is not something you do in rules.

If it does have a memory leak, it needs to be fixed in oh code. The problem is that it has really hard to find unless you know what you are looking for. The only way I know of to Barrie it down is to uninstall bindings one by one until OH stops growing until it crashes. Then you will know which binding to file an issue against.

Thanks … I have not solved it until yet … I am not able to uninstall any bindings in the moment. I will install a new server during this year. Than I can test the old server.

PID		USER 	PR 	NI	VIRT		RES		SHR		S	%CPU	%MEM	TIME+		COMMAND
3940	openhab 	20	0	484820	253940	11604	S 	23.9		13.1		295:08.47	java
3940	openhab 	20	0	485844	254804	11604	S	20.9		13.2		325:14.50	java
3940	openhab	20	0	500176	268532	11760	S	19.9		13.9		558:50.50	java
3940	openhab	20	0	505236	273292	10788	S	21.9		14.1		617:42.4		java

Grad eben hatte ich wieder nen Absturz. Beim Start 8% MEM … nach 4 Minuten 10%.
Teilweise hatte ich jetzt Wochenlang keinen Absturz und dann wieder jeden zweiten Tag, echt faszinierend.