ver2.5 fisrt time run- controller not able to synchronize with online designer account

Hi,

after starting the controller (windows 7) and launching the web interface (localhost:8688/controller), it is asking me to add the mac address (displayed on the browser).
Welcome to OpenRemote Controller

Please link this controller to your designer account.
Your mac address to use is: 2C-27-D7-1C-84-1B

Use “Controller management” in OpenRemote designer to create link.

Downloading account configuration failed : designer.openremote.com

When i login to the designer and from the manage controller dialogue try to add the controller mac address, it gives an error:
No controller with the given MAC address was found or maybe it’s linked already.
Please start your controller before linking it, make sure it is not linked yet and that it has internet access.

in the terminal window it constantly keeps showing “unable to retrieve controller identity”

boot.log file shows:
TRACE 2016-06-17 11:07:35,281 : Unable to retrieve controller identity
org.openremote.controller.exception.ConnectionException: The required password for user ‘’ was not found. Password manager error : User credentials were not present, please synchronize the controller with your OpenRemote Designer/Beehive account first.
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.connect(Unknown Source)
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.httpRequest(Unknown Source)
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.httpPost(Unknown Source)
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)
Caused by: org.openremote.controller.service.Deployer$PasswordException: User credentials were not present, please synchronize the controller with your OpenRemote Designer/Beehive account first.
at org.openremote.controller.service.Deployer.getPassword(Unknown Source)
… 7 more
INFO 2016-06-17 11:07:35,281 : Unable to retrieve controller identity, retrying in 1,000 milliseconds…
INFO 2016-06-17 11:07:35,281 : Unable to retrieve controller identity, retrying in 1,000 milliseconds…
DEBUG 2016-06-17 11:07:36,284 : Error in attempting to retrieve the return code while cleaning up connection : I/O error while reading HTTPS response code : designer.openremote.com
org.openremote.controller.exception.ConnectionException: I/O error while reading HTTPS response code : designer.openremote.com
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.getResponseCode(Unknown Source)
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.release(Unknown Source)
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.connect(Unknown Source)
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.httpRequest(Unknown Source)
at org.openremote.controller.service.BeehiveCommandCheckService$BeehiveCommandChecker.httpPost(Unknown Source)
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)
Caused by: java.net.UnknownHostException: designer.openremote.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
… 9 more

boot.log (103 KB)

Hi,

i tried the same process on a different computer (Mac) and this time i am able to link the MAC address of the controller in the open remote designer. However, when i use the same username/ password that i use successfully to login to the openremote designer account, while synching the openremote controller, i get the error message :

Authentication failed, please check your username and password.

log shows following :

ERROR 2016-06-18 11:39:28,612 : Synchronizing controller with online account failed : Authentication failed, please check your username and password.

org.openremote.controller.exception.ConnectionException: Authentication failed, please check your username and password.

at org.openremote.controller.service.Deployer$BeehiveConnection.downloadZip(Unknown Source)

at org.openremote.controller.service.Deployer$BeehiveConnection.access$300(Unknown Source)

at org.openremote.controller.service.Deployer.deployFromOnline(Unknown Source)

at org.openremote.controller.action.ConfigManageController.syncOnline(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:434)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:372)

at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

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$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)

ERROR [HTTP-Thread-1]: Synchronizing controller with online account failed : Authentication failed, please check your username and password.

org.openremote.controller.exception.ConnectionException: Authentication failed, please check your username and password.

at org.openremote.controller.service.Deployer$BeehiveConnection.downloadZip(Unknown Source)

at org.openremote.controller.service.Deployer$BeehiveConnection.access$300(Unknown Source)

at org.openremote.controller.service.Deployer.deployFromOnline(Unknown Source)

at org.openremote.controller.action.ConfigManageController.syncOnline(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:434)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:372)

at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

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$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)

any help would be greatly appreciated!

The user name and password are case sensitive.

Oddly I can log in to the designer with a username in part capitals, but the controller needs that username to all be in lowercase

Thanks Stuart. I am certain i had everything lower case. Just to be sure i tried it again and same results.
it shows This controller is linked to account ID: 747
Authentication failed, please check your username and password.

it also happens to have added a “.” in the username. The original username that i had created and also happens to be what is noted in the confirmation email i received is “openremotewindows7”. However, when i clicked the activation link, it had auto-populated “openremote.windows7” and that the one which is letting me login to the designer but fails authentication when trying to synch the controller with the designer. is there a limitation on the length of the username?

You'll have to wait for an official reply, but in the mean time, you could log into the online designer and add another user (email address).
This would mean you can create a new username to test your theory.

Good luck

(FYI, as of 09:30 GMT, it looks like the online designer is not working properly)

The only limitation on the username is the one from the underlying DB and I can’t remember from the top of my head what the column size is.
But if the user was created with that name, then there are no other limitations.

There are some issues with the controller handling certain errors so that it’ll report invalid username/password when in fact the underlying error is not an authentication issue.

The whole controller identity / linking mechanism still has some issues and work would be required on that part.
It is however only required if you want to use auto-discovery. It is not used at all for syncing the configuration from the designer to the controller.