This page last changed on Apr 17, 2013 by juha.
Thank you for your great work putting together OpenRemote!
When I try to run the Controller on a Synology, it unfortunately crashes after a couple of hours with the exception below. I don't manage to figure out what the issue is. My IP/KNX gateway is a Siemens N148/22.
Thanks for your help!
ERROR [KNX IP reconnector]: Disconnect failed
org.openremote.controller.protocol.knx.ip.KnxIpException: Disconnect failed
Exception in thread "KNX IP reconnector" java.lang.IllegalStateException: Shutdown in progress
Apr 16, 2013 2:41:18 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Apr 16, 2013 2:41:20 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-18581
Judging by the log snippet, the controller is in the shutdown sequence. That is, someone or something has sent the controller process a kill signal (assuming it wasn't you). Most likely this is then something the operating system is doing.
These can be difficult to track down sometimes. Try to dig into the operating system logs to see what's happening (sorry can't point you to the right ones, others with more experience with Linux may be able to give more specifics). One example we've seen before is if the system is running low on memory, the operating system starts killing processes to ensure the kernel and core services can continue to run or can be closed down cleanly. Maybe that's the case here too?
But if you shut down the controller process by yourself then the error you showed is not the main cause, just due to unclean shutdown sequence in the controller implementation itself.
Posted by juha at Apr 17, 2013 04:21
I've experimented the same behavior on Synology.
I haven't found the reason, but now, it's stable.
What I have done?
Remove the openremote package from pcloader and its java package.
Remove the usage of RRD graph
Install DSM 4.2, with synology java wrapper and tomcat package.
Deploy a build war file of the r4783 checkin version of controller.
And now it's working.
What is your configuration?
Posted by yannph at Apr 17, 2013 07:46
To get a better insight could you both specify the type of synology box and DSM release you were using?
@Yann, do you also use KNX?
Posted by pz1 at Apr 17, 2013 08:34
Thank you for your feedback.
I am using DSM 4.2-3161 on a DS209. I don't think the issue is related to a memory problem since the memory usage is around 35%.
@Yann, I will try to deploy the war package as you suggested and update you.
Thanks for your support.
Posted by guillaume at Apr 17, 2013 08:41
Yes I'm a KNX adept with RRD and emonCMS energy monitoring graph
DSM 4.2 on syno 1512+
Posted by yannph at Apr 17, 2013 09:33
So the common denominator is KNX and Patters package for Synology? The CPU's are ARM and x86.
Posted by pz1 at Apr 17, 2013 11:51
Is this due to the same reasons or is there a different reason why this is happening?
I am running the package from PCLOADER on a Synology DS412+.
Not running the java from PDLOADER, installed java manager and installed a java jdk-6u45.
Posted by istian at Oct 14, 2013 18:57
I have Tomcat and java installed, but how do I use this to install the OR Controller on the NAS?
Does anybody know how to do this?
The controller running with the PCLOADER is not running as it should and is giving me problems.
If somebody in here can help me set this up on my synology DS 412+ using Tomcat and Java I would
be very greatful!
Posted by istian at Oct 14, 2013 22:09
OR consists of two WARs - webconsole and controller - which are deployed in tomcat. Get a stable version of these two and copy them to tomcat webapps directory.
Posted by atamariya at Oct 15, 2013 04:34
I downloaded the OpenRemote (OpenRemote-Controller-18.104.22.168_Snapshot-2013-06-17)
After extracting the folder I managed to find only 1 war file, this under Webapps and filename webconsole.war.
Therefore I am lacking the controller war. I have searched the folder, but the only .war file is the webconsole.war.
Where do I find the controller war file?
Posted by istian at Oct 15, 2013 10:19
The error shown here is related to not receiving an acknowledgement frame to an KNX IP tunneling request (looks like a read request? Which would only be made at startup to retrieve the device state).
It is a bit odd. Haven't seen that error before. There's something not right with the setup but the error logs don't reveal the reason. Can you get any functionality working on this system, or does everything fail with this same error?
Posted by juha at Oct 15, 2013 11:13
The war file is unpacked so it is the webapps/controller directory as a whole that you would need to copy to Tomcat's webapps directory, next to the webconsole.war.
However, the OR distribution you downloaded already includes Tomcat, so a separate Tomcat install on your Synology is really not necessary. You just need the Java package and then the OR binary extracted on the system. I don't know the details of the Synology system but I would imagine doing the latter is a bit of a less effort than trying to build your own custom install of Tomcat for OR.
Posted by juha at Oct 15, 2013 11:16
That is what makes this the biggest issue.
Everytime I get this kind of error, the functionality that stops working is different.
The functionality connected to the iPhone app, switches, sliders, buttons etc always work.
The functionality that is damaged are rules, especially rules connected to change in status off a
sensor, and when a time delay is involved.
For instance, I have rule stating that when off signal is recevied, then dim down light with a delay stated at 45 min.
Some of these rules stops working, but not all of them. So basically the whole setup up becomes very untrustworthy in
terms of timebased rules ang logical functionality.
Posted by istian at Oct 15, 2013 12:52
I have installed java jdk-6u45, and extracted the OR folder (OpenRemote-Controller-22.214.171.124_Snapshot-2013-06-17).
When I go to the bin folder and type ./openremote.sh run, i get the message -ash: ./openremote.sh: Permission denied.
I have also tried typing start instead of run, with same result.
I am logged in via ssh, and logged inn as ROOT user.
Posted by istian at Oct 15, 2013 13:32
> sh openremote.sh run
> cd bin
> chmod a+x *.sh
After which you can do:
> ./openremote.sh run
Posted by juha at Oct 15, 2013 13:41
sh openremote.sh run worked like a charm Thanks
How do Sync this with the WEB Design UI when running this on my NAS?
Figured this out.
This still remains:
How do I stop/reboot the controller?
When I close my terminal on my Mac, the Controller shuts down....
How do I keep it running?
Posted by istian at Oct 15, 2013 13:46
Run the process in background.
Posted by atamariya at Oct 16, 2013 05:42
I have now installed the latest version of the controller on my Synology DS412+.
(The way you described below)
Even with the new controller I get this error.
I am however starting to see a trend. It is always a motion sensor that starts the error.
And the error do crash some of my rules, but not all of them, but so far I have not seen a trend
in what type of rules that crash.
Posted by istian at Oct 16, 2013 07:16
I tried to run your command, but as soon as I closed the Terminal window on my Mac, the Controller stopped running.
Posted by istian at Oct 16, 2013 08:20
I keep getting this on a daily basis now. The sensors the always triggers the error are motion sensors.
Because of this error many of my rules stops working, making the whole setup "untrusworthy" and making power saving functions obsolete.
Do you have any idea of what could be the problem, or how to fix it?
Posted by istian at Oct 21, 2013 09:44
I have an idea I can try in the code, it's a bit of a long shot but may be worth a try. I won't be able to look at it in the next few days though. Please ping back to me next week if I haven't come back then. At least I can give an update on when I might be able to try something.
Posted by juha at Oct 22, 2013 20:24
Any new status on this issue?
Some additional information. I have since last time added new sensors (currenctly expanding my KNX system).
The sensors copied in my screendump above no longer seems to experience the issue.
However, the newly added sensors are now experience this issue.
The error seems to only effect the latest added sensors.
There are occasions that older sensors still experience this issue, but the majority of the time it is only the new ones.
Also, stopping the controller and then restarting it, for then to sync multiple times before actually starting to use the system helps to reduce the
chance of this error occouring.
Posted by istian at Nov 04, 2013 10:42
Will get to it after working on a few documents first and getting a pile of paperwork done. Might even be this week if I get lucky.
As I said, it's bit of a long shot so it may have no impact. Reviewing the code, when no ACK is received our client side does a bit of a drastic measure and attempts to close the connection (and then hopefully re-open it). I can try to change this behavior a bit to not completely kill and rebuild the connection but it may not make a difference, or even make things worse depending how the ACK matching is done, something else I need to check....
Posted by juha at Nov 06, 2013 02:18
Not sure if this is supported in Mac, but linux would allow you to run OR as a service.
Posted by atamariya at Nov 06, 2013 03:34
Tracking similar issue here: Controller Ok on 2.0.2, not working on 2.1 or 2.2. Need to add more details on the ACK failures.
Posted by juha at Dec 07, 2013 11:25
This continues to be an issue for me, but today I noticed something that might be the reason why it crashes...
Many of my sensors, rules, commands and so on includes letters æ, å and æ.
I have been playing with an old lap top (Usually i use my synology and Mac Mini).
I tried to run the controller from the laptop, and I started to get invalid characters when the rule engine was starting up. When chaining the name of my rules that included æ,å ø the error went away.
I have never gotten that message when running on Mac or Synology.
Could this be the cause of this error?
If so, I will take the time to change all my rules, sensors and command....
Your opinion would be good before I start the work
Posted by istian at Feb 02, 2014 14:29