This page last changed on Dec 19, 2014 by pz1.

Eric, thanks for your hard work on this new release, which now does support export/import. I'll give it a spin

Get this error

INFO 2014-12-20 15:43:50,820 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 15:43:52,061 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 15:43:52,131 : 

--------------------------------------------------------------------

  UNDEPLOYING CURRENT CONTROLLER RUNTIME...

--------------------------------------------------------------------

INFO 2014-12-20 15:43:52,138 : Stopped event processor : Drools Rule Engine
ERROR 2014-12-20 15:43:52,141 : Could not start remote access service due to configuration error: 
org.openremote.controller.exception.ConfigurationException: Controller identity process interrupted.
	at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.getControllerIdentity(Unknown Source)
	at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.getRemoteCommandService(Unknown Source)
	at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)
INFO 2014-12-20 15:43:52,153 : Thread 'Remote Command Thread' stopped.
INFO 2014-12-20 15:43:52,154 : Stopped event processor : RRD4J Data Logger
INFO 2014-12-20 15:43:52,339 : Shutdown complete.
INFO 2014-12-20 15:43:52,340 : 

--------------------------------------------------------------------

  DEPLOYING NEW CONTROLLER RUNTIME...

etc seems normal

INFO 2014-12-20 15:44:08,211 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:10,105 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:11,333 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:12,583 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:13,797 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:15,022 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:16,304 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:17,540 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:18,822 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:20,072 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:21,305 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:22,572 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:23,923 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:25,223 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:26,449 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:27,679 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:28,908 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:30,132 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-20 16:01:31,454 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
continues forever

Posted by pz1 at Dec 20, 2014 14:50

and this one

	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.KeyStoreException: java.io.IOException: Error initialising store of key store: java.security.InvalidKeyException: Illegal key size
	at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineSetKeyEntry(Unknown Source)
	at java.security.KeyStoreSpi.engineSetEntry(KeyStoreSpi.java:549)
	at java.security.KeyStore.setEntry(KeyStore.java:1326)
	at org.openremote.security.PasswordManager.add(PasswordManager.java:368)
	... 41 more
INFO 2014-12-21 14:10:06,456 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-21 14:10:07,872 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-21 14:10:09,363 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-21 14:10:10,723 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2014-12-21 14:10:11,557 : 

--------------------------------------------------------------------

  UNDEPLOYING CURRENT CONTROLLER RUNTIME...

--------------------------------------------------------------------

INFO 2014-12-21 14:10:11,562 : Stopped event processor : Drools Rule Engine
ERROR 2014-12-21 14:10:11,562 : Could not start remote access service due to configuration error: 
org.openremote.controller.exception.ConfigurationException: Controller identity process interrupted.
	at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.getControllerIdentity(Unknown Source)
	at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.getRemoteCommandService(Unknown Source)
	at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)
INFO 2014-12-21 14:10:11,563 : Thread 'Remote Command Thread' stopped.
INFO 2014-12-21 14:10:11,597 : Stopped event processor : RRD4J Data Logger
INFO 2014-12-21 14:10:11,663 : Shutdown complete.
INFO 2014-12-21 14:10:11,664 : 

--------------------------------------------------------------------

  DEPLOYING NEW CONTROLLER RUNTIME...
Posted by pz1 at Dec 21, 2014 13:35

Controller was upgrade from 1.013 to 1.1.0
Since upgrade to 1.1.0 I did notice that the following rule only runs once when I restart the controller.
There are no warnings about rules in the log. I am not 100% sure if it still did work just before the upgrade.
Sometime ago I did add a rule for UDPlistener

// Process Solar energy production data

rule "Combine Solar Power"
when
  Range(source=="SolarPowerLevel", $w1 : value)
  Range(source=="SolarPowerLevel2", $w2 : value)
  Range(source=="SolarDayProduction", $wh1 : value)
  Range(source=="SolarDayProduction2", $wh2 : value)
then
  Integer CombinedSolarPower = (Integer) $w1 + (Integer) $w2;
  Integer CombinedSolarProduction = (Integer) $wh1 + (Integer) $wh2;
  Integer FourtyPctSolarPower = (4 * CombinedSolarPower)/10; 
  execute.command("VirtualCombinedSolarPower", CombinedSolarPower);
  execute.command("VirtualCombinedSolarProduction", CombinedSolarProduction);
  execute.command("ImVC40PctSolarPower", FourtyPctSolarPower);
  execute.command("VirtualCombinedSolarkW",String.format("%.3f", CombinedSolarPower/1000.0));
  execute.command("VirtualCombinedSolarkWh",String.format("%.3f", CombinedSolarProduction/1000.0));
end
Posted by pz1 at Dec 21, 2014 13:51

deleted duplicate message

Posted by pz1 at Dec 21, 2014 13:52

For some for me as yet obscure reason the rule has started working properly again. It may indeed be related with my UDPListener rule. The fact is that since yesterday my RaZberry had not been sending status updates anymore. I could send sensor-value pairs from RaZberry using the scriptfile that was made for that purpose. The OpenRemote side handled that manually sent value correctly, so I assumed there was no problem there.
I remain puzzeled why this rule was affected, while other cron based rules worked correctly. Note all data for this solar rule were collected on OpenRemote, that runs on a Synology NAS. So nothing to do with RaZberry

Posted by pz1 at Dec 22, 2014 11:05

No one seeing this, or am I the only user?

Posted by pz1 at Dec 22, 2014 11:06

Just upgrade from 14pro to 110 and got the same message. have you found out what is it?

Posted by rberg at Jan 04, 2015 21:41

Regarding the "Unable to retrieve controller identity" it only occurs in Linux (Java 6, 7 &8) and Windows (Java 7).
Running in OS X (Java 8) it won't show this message.

Regarding the UDPListener,
It is not working in Linux. I have tested in Ubuntu with Java 6, 7 and 8. the UDP port will not be open for IPV4.
I've created another thread about this UDP issue in Linux.

Posted by rberg at Jan 04, 2015 22:27

Thanks for confirming my finding. No I have no solution. Hope to get some response this week.

Posted by pz1 at Jan 05, 2015 07:43

Regarding the "Unable to retrieve controller identity", have you (both of you) re-synchronized the design on the controller since the update?

There is a new "credentials mechanism" in place in this release that will securely store the credentials that were last used during a sync operation with the online designer.
I would need to double check but it might be that the "controller identity" code requires those credentials to access the cloud.

Easiest is if you could watch the log, do a synchronization and confirm whether or not this warning message goes away after that.

Posted by ebariaux at Jan 05, 2015 13:40

Pieter,

Regarding this one

Caused by: java.security.KeyStoreException: java.io.IOException: Error initialising store of key store: java.security.InvalidKeyException: Illegal key size
	at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineSetKeyEntry(Unknown Source)
	at java.security.KeyStoreSpi.engineSetEntry(KeyStoreSpi.java:549)
	at java.security.KeyStore.setEntry(KeyStore.java:1326)
	at org.openremote.security.PasswordManager.add(PasswordManager.java:368)
	... 41 more

Is that when running on the NAS ? Do you also have it if you run the controller on a desktop machine ?

Posted by ebariaux at Jan 05, 2015 13:41

Yes, this one is on the NAS. I don't have a controller on the desktop anymore since I had to install JRE 7

Posted by pz1 at Jan 05, 2015 14:25

Just now and before I have done several re-syncs since the new designer. I am pretty sure I had upgraded my controller to 1.1.0, but in the sync window I just noticed that it still says 1.0.13beta. So something must have gone wrong here with copy and pasting new directories over old ones. I'll take a closer look on my installation.
edit: I did manualy copy the following directories over my existing Pro installation on Synology
edit2: I also had deleted the webconsole tree before restarting OpenRemote controller

bin
conf
lib
\webbapps
 \controller
  common
  css
  js
  jslib
  META-INF
  WEB-INF
 webconsole.war

Next on DS212+ console with FileManager I selected the OpenRemote root directory. Right mouse button and select properties. Next copied those settings to all subdirectories
Files are dated 2014-12-16 as they are in the 1.1.0-ZIP

Posted by pz1 at Jan 05, 2015 14:39

Yes, I did re-sync.
In my sync window I can see pro 1.1.0 as it should be. The sync show as successful.

Posted by rberg at Jan 05, 2015 15:31

Something had gone wrong in the controller/js folder. Fixed it, and I do have Pro 1.1.0 now as controller. After a sync there are still the same errors.

Posted by pz1 at Jan 05, 2015 16:14

I've been using OpenRemote for about a year and purchased the OpenRemote Pro designer a few months ago hoping to have some additional tools to design the surface, but because of the missing import from the free designer and the missing serial port feature I never used it since. Now that there is an import feature I have some basic question about the desiner:

1) I've tried to import the zip file from the free designer, but I get an error message that this zip file cannot be imported. Could this be a problem because I'am using the 2.2 preview designer (with additional support for Emails, Text-to-Speech, Serial port) or is an import from the free designer simply not possible?

2) Do I have to upgrade my current "free" OpenRemote Controller to the Pro Controller if I want to use the Pro Designer? And if so, where do I get the latest version?

3) When will the features of the "preview Controller v2.2" be available in the release version of the designer and the controller?

Posted by thenetstriker at Jan 07, 2015 16:28

I have found that within the pro designer, if i export a ZIP and import the same file without touching it it fails with an error... I can't access designer right now for the specific error but, i tested it with an extremely basic test.

Posted by jgearinger at Jan 08, 2015 01:30

1) The export/import feature is specific to the Pro designer, you can't import a file exported with the free designer into the Pro version.

2) Not sure what you mean, but there is no export from free and import to Pro feature.

3) What feature are you specifically looking at ? I can then take a look at integrating that into the Pro roadmap.

Posted by ebariaux at Jan 08, 2015 12:33

Could you please send me your export file to eric at openremote dot org ?

I've done quite a few exports / imports with pretty complex designs without issues.

Posted by ebariaux at Jan 08, 2015 12:34

1) Sad to hear that. It was a lot of work to configure all the commands, sensors and layouts. Is there no possibility to just import single parts of the free designer? Maybe just the commands and sensors?
Edit: I just realized that (after a browser refresh) the layouts from the free designer were imported into the pro designer, despite the error. (Error: Invalid import file: no building modeler data) Just the commands, sensors, macros etc. not. Maybe this error occurs just because of the email and serial port commands that do not exist in the pro designer?

2) What I meant with question two was that I found two separate source code repositorys for the controller. One is the version I'am currently running: https://svn.code.sf.net/p/openremote/code/tags/project/Controller/Controller_2_0_0/
and the other seams to be a pro version of the controller: https://svn.code.sf.net/p/openremote/code/tags/project/Controller/Controller_ProInstaller_1_1_0_20141218/
So my question is, do I have to replace my controller with the pro version if I want to use the pro designer and where do I get the compiled version of it? And do I have to replace the webconsole to or can I keep the existing webconsole?

3) I'am currently using the special version 2.2 from this forum page: http://www.openremote.org/display/forums/Emails%2C+Text-to-Speech%2C+Serial+Port
This version has additional support to send Emails, Text-to-Speech and serial ports. But the implementation of those features is not final. The email extension can only send mails using the gmail smtp (I'ha to recompile that class myself to add support for other email providers) and the serial port extension is missing an option to set an "end of transmission" hex string. Default for serial port end of transmission is CRLF, but my device sends just an EOT character, so I also had to compile this class on my own to implement that. I asked for an option to configure the end of transmission string in the forum thread above but it was never implemented.

Posted by thenetstriker at Jan 08, 2015 15:50

1) Very surprise it does this. I'll double check.

2) When you log in to the Pro Designer, you'll have a "Download resources" link in the top right.
This allows you to download the latest controller package (so compiled), including the latest Web console.

You can use a non Pro version of the controller with the Pro Designer but will need to edit entries in the config.properties file to make sure it points to the appropriate server (best thing is to compare your config.properties with the one from the packaged Pro controller).

3) Am I correct to understand that you're using the e-mails and the serial port features but not the TTS one ?
We'll check the Pro roadmap and see how those can be brought to the Pro implementation.

Posted by ebariaux at Jan 11, 2015 17:49

1) Thanks, it would be really great if I would be able to import the settings from the free designer.

2) Thanks for the hint. I will try this as soon as the email and serial feature is implemented in the pro version.

3) Yes, I am only using the email and serial features of this version, I never tried the TTS feature.

Posted by thenetstriker at Jan 12, 2015 15:30
INFO 2015-01-31 12:00:11,537 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2015-01-31 12:00:12,759 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...
INFO 2015-01-31 12:00:14,002 : Unable to retrieve controller identity, retrying in 1,000 milliseconds...

Even after updating to Java 8, I still do have this error with logs drowning in useless messages. When will the final Pro 1.1.1 arrive? (and does it fix this problem)

Posted by pz1 at Jan 30, 2015 19:57

Still have the 'unable to retrieve controller identity...' problem.
Downloaded the latest controller pro today and running on windows 8.
Syncing works fine.

Posted by fichrist at Feb 08, 2015 12:03

Got this fixed by applying: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
Instruction are in the ZIP. Please note that if you have Java 6, you need jce6 etc.

The steps I took

  • Installed this Java Cryptography Extension (JCE)
  • Reboot Synology DS212+
  • Run Controller and synchronise.

Error message, and "unable to retrieve identy" are gone now

Posted by pz1 at Feb 13, 2015 11:55
Document generated by Confluence on Jun 05, 2016 09:38