This page last changed on Jun 03, 2016 by jmangan.

Hi,

I was hoping you guys could give me a hand with something. I'm having a bit of trouble getting my OpenRemote system up and running with my RaspberryPi - Zwave controller. I have tried both the Zwave on the raspberry pi which I used to change the state of a TKBHOME switch. This works fine on its own. I then separately managed to get the OpenRemote controller installed on the raspberry pi(without the ZWave softwear) and was able to get the Raspberry Pi to change the state of an LED connected to the GPIO via the app on my phone. Now Im trying to get the OpenRemote and Zwave software working on the Pi all at once, so that I can change the state of the TKBHOME switch using a console designed through OpenRemote
However when I enter the command
<code>./OpenRemote-Controller-2.1.0/bin/openremote.sh run </code>

into the terminal (ssh) it gives the following reply:

<code>
********************************************************************************

Controller definition was not found in this OpenRemote Controller instance.

If you are starting the controller for the first time, please use your web
browser to connect to the controller home page and synchronize it with your
online account.

********************************************************************************

Could not find a controller definition to load at path '../webapps/controller/controller.xml' (for version 2.0)
INFO 2016-05-24 10:28:04,456 : Controller Definition File Watcher for Default Deployer started.
May 24, 2016 10:28:16 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8688
May 24, 2016 10:28:17 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 55398 ms
May 24, 2016 10:28:17 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create8005:
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

May 24, 2016 10:28:17 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8688
May 24, 2016 10:28:18 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
May 24, 2016 10:28:18 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 3 instance(s) to be deallocated
May 24, 2016 10:28:19 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 3 instance(s) to be deallocated
May 24, 2016 10:28:20 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 3 instance(s) to be deallocated
log4j:WARN No appenders could be found for logger (OpenRemote.Controller.startup.deployer).
log4j:WARN No appenders could be found for logger (OpenRemote.Controller.startup.deployer).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN Please initialize the log4j system properly.
May 24, 2016 10:28:21 AM org.apache.catalina.startup.HostConfig undeployApps
WARNING: Error while removing context [/controller]
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
at java.util.HashMap$EntryIterator.next(HashMap.java:1463)
at java.util.HashMap$EntryIterator.next(HashMap.java:1461)
at java.util.HashMap.putMapEntries(HashMap.java:511)
at java.util.HashMap.clone(HashMap.java:1324)
at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1621)
at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1524)
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)

May 24, 2016 10:28:21 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8688
</code>

Note I am using port 8688 because before this error I was getting another error saying that port 8080 was already in use though I'm not sure changing it to 8688 solved the issue

Also I have already logged into the designer and have a console designed ready to test the system.

For anyone who comes accross the same issue:

Some how the controller was was running automatically at boot of the raspberry pi. shutting down the controller (via ./openremote.sh stop) and restarting (via ./openremote.sh start) did the trick.

Posted by jmangan at Jun 03, 2016 11:21
Document generated by Confluence on Jun 05, 2016 09:33