Cloud OFFLINE

Do you use the services cfg file for installing your binding or just PaperUI?

What package did you select when installing OH minimal, standard, expert?

PaperUI
Standard

No issue there.

Double-check the services addons.cfg and make sure it looks ok. You can manually add the bindings with OH running in /ect/openhab2/services/addons.cfg then restart.

Just some FYI:
/var/lib/openhab2/config/org/openhab/addons.config contains the parameters that we set in /etc/openhab2/services/addons.cfg (this file is parsed, and entered in ConfigAdmin with config pid: org.openhab.addons )

If the above didn’t work you could stop OH and try manually adding the cloud connector binding and Rules Engine to /var/lib/openhab2/config/org/openhab/addons.config.

EDIT:
Uninstall the RuleEngine and see if that makes a difference with the cloud being offline. I wouldn’t think it matters but making the suggestion b/c the two get uninstalled together.

Would it just behoove me to wipe everything and start new? I have everything except a few rules hard coded. I could just copy all my files back over…

I actually have a pi4 anyways I could use…

That is always an option, just not as satisfying as a solution. :wink:

You can use sudo openhab-cli backup then move the zip file and restore it after a fresh install.

You can start a fresh install and try the suggestion above while everything is getting set up. Who know’s, the cloud may connect during that time. :smile:

2020-04-15 13:02:20.788 [WARN ] [okhttp3.OkHttpClient ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);

@Branden_Smale I gotta few things to take care of so I’ll check back later.

One other thing to try is use the openhabian-config tool and select option 10 and run numbers 11, 13 and 14…Think those last two are correct? The wording is svr mount, add needed packages, fix permissions.

1 Like

That’s a good sign. :+1:

The warning is known and nothing to worry about but it does look like something with the clould is happening. :clap:

I would expect you to see the connection go online soon.

Made the changes in config tool. opehHAB restarted and the connector was uninstalled again…

2020-04-15 13:17:25.725 [thome.event.ExtensionEvent] - Extension ‘misc-openhabcloud’ has been uninstalled.

2020-04-15 13:20:08.291 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}

io.socket.engineio.client.EngineIOException: xhr poll error

at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]

at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:26) [bundleFile:?]

at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:140) [bundleFile:?]

at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

Caused by: java.net.SocketTimeoutException: timeout

at okio.Okio$4.newTimeoutException(Okio.java:230) ~[?:?]

at okio.AsyncTimeout.exit(AsyncTimeout.java:285) ~[?:?]

at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) ~[?:?]

at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[?:?]

at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[?:?]

at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[?:?]

at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[?:?]

at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]

at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]

at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]

at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[?:?]

at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) ~[?:?]

at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]

... 3 more

Caused by: java.net.SocketException: Socket closed

at java.net.SocketInputStream.read(SocketInputStream.java:204) ~[?:1.8.0_222]

at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_222]

at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:1.8.0_222]

at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:1.8.0_222]

at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) ~[?:1.8.0_222]

at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) ~[?:1.8.0_222]

at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) ~[?:1.8.0_222]

at okio.Okio$2.read(Okio.java:139) ~[?:?]

at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[?:?]

at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[?:?]

at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[?:?]

at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[?:?]

at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[?:?]

at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]

at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]

at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]

at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]

at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[?:?]

at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) ~[?:?]

at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]

... 3 more

2020-04-15 13:20:08.369 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO disconnected

2020-04-15 13:20:08.376 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = de09fc53-b654-40a8-8497-b99c36337c36, base URL = http://localhost:8080)

2020-04-15 13:20:09.901 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}

io.socket.engineio.client.EngineIOException: xhr poll error

at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]

at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:26) [bundleFile:?]

at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:140) [bundleFile:?]

at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

Caused by: java.io.IOException: 502

at io.socket.engineio.client.transports.PollingXHR$Request$1.onResponse(PollingXHR.java:234) ~[?:?]

at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) ~[?:?]

at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]

... 3 more

2020-04-15 13:20:09.934 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO disconnected

2020-04-15 13:20:09.935 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = de09fc53-b654-40a8-8497-b99c36337c36, base URL = http://localhost:8080)

Blockquote

:exploding_head:

The binding getting uninstalled I’m not sure about but the warning you got in the logs looked promising. I would reinstall the binding via the addons file and give it a few hours.

Gotta run, best of luck and will check back later.

Thanks for the help

All those warning are b/c OH needs to be restarted a few times. :wink:

1 Like

Everytime I do, have to re-install anything under the Misc. tab. I’m just going to go the new install route with the backup I just made. OH has come so far since my 1.x times…I just haven’t stayed up to date…I like where 3 is going…can’t wait.

The fact that add-ons are being installed and uninstalled again points to addons.cfg. Just to make sure you are starting clean, stop openHAB, open addons.cfg and comment out everything. Then open /var/lib/openhab2/config/org/openhab/addons.config and make sure it lists everything you want installed and nothing else, then restart openHAB.

Then only install new bindings through PaperUI or the REST API or Karaf Console and do not edit addons.cfg.

Also note that the REST API has moved from the Misc category to the UIs category. Bindings that keep restarting over and over is a sign that you have a binding to be installed that doesn’t exist. This caught a lot of users.

Rich,

This is the addons.cfg:

# The base installation package of this openHAB instance (default is "standard")
# Valid options:
#   - minimal  : Installation only with dashboard, but no UIs or other addons
#   - standard : Typical installation with all standards UIs
#   - demo     : A demo setup which includes UIs, a few bindings, config files etc.
#
package = standard

# Access Remote Add-on Repositories
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.
# This not only makes latest snapshots of add-ons available, it is also required for the installation of
# any legacy 1.x add-on and all experimental features. (default is false for offline distro, true for online distro)
#
remote = true

# Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is 
# already a 2.x version available (requires remote repo access, see above). (default is false)
#
#legacy = true

# Include experimental add-ons. If set to true, it also allows the installation of extensions that are not (yet) part
# of the official distribution and need further testing (requires remote repo access, see above). (default is false)
#
experimental = true


# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
#binding=

# A comma-separated list of UIs to install (e.g. "basic,paper")
ui = basic,paper,habmin

# A comma-separated list of persistence services to install (e.g. "rrd4j,jpa")
#persistence = mapdb

# A comma-separated list of actions to install (e.g. "mail,pushover")
action = 

# A comma-separated list of transformation services to install (e.g. "map,jsonpath")
transformation = 

# A comma-separated list of voice services to install (e.g. "marytts,freetts")
voice = 

# A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
misc =

'''

and this is addons.config:


:org.apache.felix.configadmin.revision:=L"33"
action=""
binding=",astro,expire1,ntp,zwave,wifiled"
experimental="true"
misc=",ruleengine"
package="standard"
persistence="mapdb"
remote="true"
service.pid="org.openhab.addons"
transformation=""
ui="basic,paper,habmin"
voice=

sorry for the formatting issues…thought block quote was correct, apparently its not.

At least I could read it without glasses :smiley: