Icloud binding - General SSLEngine problem

get this Status: OFFLINE - COMMUNICATION_ERROR java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge

With snapshot 1428

#1425 is also not working:

2018-11-18 18:07:52.829 [WARN ] [l.handler.ICloudAccountBridgeHandler] - Unable to refresh device data
java.io.IOException: java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

openHAB 2.4.0~M5-1 (Milestone Build) also not working

iCloud binding worked fine with Build #1414, but after switch to #1425 it stopped working. Then Milestone build #M5 fresh installed, I got the following failure text for iCloud bridge in Paper UI:
OFFLINE - COMMUNICATION_ERROR java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: General SSLEngine problem.

Log from Frontail:

2018-11-19 23:18:16.808 [WARN ] [d.handler.ICloudAccountBridgeHandler] - Unable to refresh device data
	at org.openhab.binding.icloud.internal.ICloudConnection.requestDeviceStatusJSON(ICloudConnection.java:68) ~[?:?]
	at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.lambda$0(ICloudAccountBridgeHandler.java:81) ~[?:?]
	at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.refreshData(ICloudAccountBridgeHandler.java:132) ~[?:?]
	at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.lambda$1(ICloudAccountBridgeHandler.java:123) ~[?:?]
2018-11-19 23:21:36.128 [hingStatusInfoChangedEvent] - 'icloud:account:f4bc670e' changed from OFFLINE (COMMUNICATION_ERROR): java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: General SSLEngine problem to UNINITIALIZED
2018-11-19 23:21:36.143 [hingStatusInfoChangedEvent] - 'icloud:account:f4bc670e' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

I’m running openHAB on a Synology DS415+ (DSM DSM 6.2.1-23824 Update 1). The iCloud binding startet working again with your snapshot version, thanks! But after a few hours openHAB’s responsiveness slowed down considerably until it stopped working altogether and the Basic UI page wouldn’t open anymore. Once I uninstalled the iCloud snapshot everything was back to normal.
Usually openHAB uses below 1% of CPU, with the binding running it was up to around 20%.

I can reproduce this by putting a wrong email/password, please check carefully.

It is not part of M5 and I’m surprised that was solved for you in build 1414 because the openHAB changes were only merged on the 8th of november, so after you posted that was solved for you, but I did not want disturb that party :slight_smile:

Given all confusion above, what version are you running, the one I posted somewhere or a pure one from the snapshot repository.

I’m running version:

275 β”‚ Active   β”‚  80 β”‚ 2.4.0.201811202338     β”‚ iCloud Binding

I rechecked. PW is correct. HOWEVER I am using Apple 2FA. I created an application password and use this. But it gives the error.

206 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811221535 β”‚ iCloud Binding

Sh…

Please note: Application specific passwords are not supported. You’ll need to provide the account password to the Binding.

I missed that in the original description. Works like a charm…

#Generated by Maven
#Wed Sep 19 21:34:46 CEST 2018
version=2.4.0-SNAPSHOT

That is indeed an old version with a thread leak. The new version will only work with milestone 6 or a recent snapshot :thinking:

which one is the old version? Please excuse this beginner question but where do I get the recent version, how do I replace my old version and when would a nightly snapshot show the latest one so a apt-get upgrade will do the trick?

How did you install this version, I assume you installed it to your addons folder? There you can remove it.

What openHAB version are you running and how did you install it, this will give some ideas what the best upgrade path would be.

I am using openhabian, switched to Openhab snapshot and just upgraded. No manual installation.

And how did you install this version of the iCloud version? I meant whether you installed that one in the addons folder?

If so then you should remove that one install the normal version via the paperUI

I installed via paperUI. There was no manual installation.

Sorry names is not really my thing :blush:

@j.koopmann glad to read that it all works for you nothing to worry about.

@zuernc my comment about the old version was for you

Dear Martin, @martinvw

thanks for your support. The iCloud binding is running fine again with:

*** openHAB 2.4.0~M6-1 (Milestone Build)**

and the installed binding is via the (fresh) M6-installation:

*** 210 β”‚ Active β”‚ 80 β”‚ 2.4.0.M6 β”‚ iCloud Binding**

Appeared channels in Paper UI are: Battery Status, Battery Level, Low Battery, Find my iPhone & Location. The other channels (according to docs): Location, Accuracy & Last Update can be established also in the .items file by deduction.

hey @martinvw,
sorry i read though this and in a resent post you said

i have never tried the icloud binding before today.
im using openhabian 4.14.79-v7+ #1159
which is using openhab 2.4.0~20181112034355-1 (Build #1422)
i installed the icloud binding via paperUI
my apple id/pw uses 2fa but never found where to put the code nore did the code ever show up on my devices.

logs are showing

2018-11-24 23:37:32.577 [ERROR] [org.openhab.binding.icloud ] - bundle org.openhab.binding.icloud:2.4.0.201811232341 (253)[org.openhab.binding.icloud.internal.ICloudTlsCertificateProvider(23)] : Could not load implementation object class org.openhab.binding.icloud.internal.ICloudTlsCertificateProvider
java.lang.ClassNotFoundException: org.openhab.binding.icloud.internal.ICloudTlsCertificateProvider cannot be found by org.openhab.binding.icloud_2.4.0.201811232341
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484) ~[?:?]

and it goes on for ages.
i have tried restarting openhabian. i have not tried the fixes that are mentioned in earlier post due to earlier quote.

hope i have given enough info to help solve error

thanks in advance.

You should use your normal password, it should AFAIK just work.

Could you also post a full output of bundle:list.

The class not found sounds suspicious either a mismatching smarthome version or the jar from that day might be corrupt. So you also try to upgrade first :slight_smile:

how do i do that in openhabian?
i logged in via putty and did bundle:list but i get

-bash: bundle:list: command not found

never mind worked out how to get the bundle:list. haven’t logged in the karaf console before

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
ID β”‚ State β”‚ Lvl β”‚ Version β”‚ Name
────┼──────────┼─────┼────────────────────────┼────────────────────────────────
20 β”‚ Active β”‚ 80 β”‚ 5.3.1.201602281253 β”‚ OSGi JAX-RS Connector
21 β”‚ Active β”‚ 80 β”‚ 2.7.0.v20170129-0911 β”‚ Gson: Google Json Library for
23 β”‚ Active β”‚ 80 β”‚ 3.0.0.v201312141243 β”‚ Google Guice (No AOP)
26 β”‚ Active β”‚ 80 β”‚ 3.5.4 β”‚ JmDNS
28 β”‚ Active β”‚ 80 β”‚ 1.0.0 β”‚ Units of Measurement API
30 β”‚ Active β”‚ 80 β”‚ 1.1.0.Final β”‚ Bean Validation API
31 β”‚ Active β”‚ 80 β”‚ 2.0.1 β”‚ javax.ws.rs-api
32 β”‚ Active β”‚ 80 β”‚ 3.2.0.v201101311130 β”‚ ANTLR Runtime
35 β”‚ Active β”‚ 80 β”‚ 3.2.1 β”‚ Commons Collections
36 β”‚ Active β”‚ 80 β”‚ 1.1 β”‚ Commons Exec
37 β”‚ Active β”‚ 80 β”‚ 2.2.0 β”‚ Commons IO
38 β”‚ Active β”‚ 80 β”‚ 2.6 β”‚ Commons Lang
47 β”‚ Active β”‚ 80 β”‚ 4.2.1 β”‚ Apache Karaf :: OSGi Services
63 β”‚ Active β”‚ 80 β”‚ 4.6.0 β”‚ Apache XBean OSGI Bundle Utili
64 β”‚ Active β”‚ 80 β”‚ 4.6.0 β”‚ Apache XBean :: Classpath Reso
65 β”‚ Active β”‚ 80 β”‚ 2.12.0.v20160420-0247 β”‚ EMF Common
66 β”‚ Active β”‚ 80 β”‚ 2.12.0.v20160420-0247 β”‚ EMF Ecore
67 β”‚ Active β”‚ 80 β”‚ 2.11.0.v20160420-0247 β”‚ EMF Change Model
68 β”‚ Active β”‚ 80 β”‚ 2.12.0.v20160420-0247 β”‚ EMF XML/XMI Persistence
69 β”‚ Active β”‚ 80 β”‚ 3.8.0.v20160509-1230 β”‚ Common Eclipse Runtime
70 β”‚ Active β”‚ 80 β”‚ 3.6.100.v20160223-2218 β”‚ Extension Registry Support
80 β”‚ Active β”‚ 80 β”‚ 9.4.11.v20180605 β”‚ Jetty :: Proxy
94 β”‚ Active β”‚ 80 β”‚ 0.4.1.v20180515-1321 β”‚ org.eclipse.lsp4j
95 β”‚ Active β”‚ 80 β”‚ 0.4.1.v20180515-1321 β”‚ org.eclipse.lsp4j.jsonrpc
96 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Config Core
97 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Configuratio
98 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Configuratio
99 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Config Dispa
100 β”‚ Active β”‚ 75 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Config XML
101 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core
102 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Audio
103 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Binding
104 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core ID
105 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Persist
106 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Scheduler Se
107 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Semanti
108 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Thing
109 β”‚ Active β”‚ 75 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Thing X
110 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Transformati
111 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core Voice
112 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Console
113 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Console for
114 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome HTTP Interfa
115 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome JavaSound I/
116 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Monitor
117 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Net I/O Bund
118 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome REST Interfa
119 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Core REST API
120 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome REST mDNS An
121 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome REST Interfa
122 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Sitemap REST
123 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome SSE REST API
124 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Voice REST A
125 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Bonjour/MDS
126 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Web Audio Su
127 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Model Core
128 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Item Model
129 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Item Model I
130 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Item Model R
131 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Language Ser
132 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Persistence
133 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Persistence
134 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Persistence
135 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Rule Model
136 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Rule Model I
137 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Rule Runtime
138 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Script
139 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Script Model
140 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Script Runti
141 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Sitemap Model
142 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Sitemap Mode
143 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Sitemap Runt
144 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Thing Model
145 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Thing Model
146 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Thing Model
147 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Json Storage
148 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome UI
149 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome UI Icons
150 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Classic Icon
151 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1629 β”‚ Xtend Runtime Library
152 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1629 β”‚ Xtend Macro Interfaces
153 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1821 β”‚ Xtext
154 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1833 β”‚ Xtext Common Types
155 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1821 β”‚ Xtext IDE Core
156 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1821 β”‚ Xtext Utility
157 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1833 β”‚ Xbase Model
158 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1833 β”‚ Xbase Generic IDE Services
159 β”‚ Active β”‚ 80 β”‚ 2.14.0.v20180522-1629 β”‚ Xbase Runtime Library
174 β”‚ Active β”‚ 80 β”‚ 1.9.6 β”‚ MIME streaming extension
176 β”‚ Active β”‚ 80 β”‚ 6.2.0 β”‚ org.objectweb.asm
177 β”‚ Active β”‚ 80 β”‚ 6.2.0 β”‚ org.objectweb.asm.commons
178 β”‚ Active β”‚ 80 β”‚ 6.2.0 β”‚ org.objectweb.asm.tree
179 β”‚ Active β”‚ 90 β”‚ 2.4.0.201811110923 β”‚ openHAB Core
180 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ openHAB Karaf Integration
182 β”‚ Resolved β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ openHAB Sound Support, Hosts:
183 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ openHAB Dashboard UI
188 β”‚ Active β”‚ 80 β”‚ 1.0.2 β”‚ Units of Measurement Common Li
189 β”‚ Active β”‚ 80 β”‚ 1.0.8 β”‚ Units of Measurement Implement
190 β”‚ Active β”‚ 80 β”‚ 3.3.0 β”‚ Commons Net
191 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome DMX Binding
193 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Paper UI, Fr
194 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ DenonMarantz Binding
198 β”‚ Resolved β”‚ 75 β”‚ 2.4.0.201811110923 β”‚ openHAB Paper UI Theme Fragmen
200 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Astro Binding
201 β”‚ Active β”‚ 80 β”‚ 1.6.0 β”‚ Commons Codec
202 β”‚ Active β”‚ 80 β”‚ 4.2.3 β”‚ Apache HttpClient OSGi bundle
203 β”‚ Active β”‚ 80 β”‚ 4.2.3 β”‚ Apache HttpCore OSGi bundle
204 β”‚ Active β”‚ 80 β”‚ 3.1.0.7 β”‚ Apache ServiceMix :: Bundles :
205 β”‚ Active β”‚ 80 β”‚ 1.13.0.201811120308 β”‚ openHAB TCP-UDP Binding
206 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ openHAB 1.x Compatibility Layer
212 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Configuratio
213 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome UPnP Transpo
214 β”‚ Active β”‚ 80 β”‚ 2.4.0 β”‚ JUPnP Library
215 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ Kodi Binding
216 β”‚ Active β”‚ 80 β”‚ 1.1.1.201605111122 β”‚ Swagger Provider
217 β”‚ Active β”‚ 80 β”‚ 2.4.5 β”‚ Jackson-annotations
218 β”‚ Active β”‚ 80 β”‚ 2.4.5 β”‚ Jackson-core
219 β”‚ Active β”‚ 80 β”‚ 2.4.5 β”‚ jackson-databind
220 β”‚ Active β”‚ 80 β”‚ 2.4.5 β”‚ Jackson-dataformat-XML
221 β”‚ Active β”‚ 80 β”‚ 2.4.5 β”‚ Jackson-dataformat-YAML
222 β”‚ Active β”‚ 80 β”‚ 2.4.5 β”‚ Jackson-module-JAXB-annotations
223 β”‚ Active β”‚ 80 β”‚ 18.0.0 β”‚ Guava: Google Core Libraries f
224 β”‚ Active β”‚ 80 β”‚ 1.5.8 β”‚ swagger-annotations
225 β”‚ Active β”‚ 80 β”‚ 1.5.8 β”‚ swagger-core
226 β”‚ Active β”‚ 80 β”‚ 1.5.8 β”‚ swagger-jaxrs
227 β”‚ Active β”‚ 80 β”‚ 1.5.8 β”‚ swagger-models
228 β”‚ Active β”‚ 80 β”‚ 3.19.0.GA β”‚ Javassist
229 β”‚ Active β”‚ 80 β”‚ 3.2.1 β”‚ Apache Commons Lang
230 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ openHAB REST Documentation
231 β”‚ Active β”‚ 80 β”‚ 0.9.10.v20160429-1435 β”‚ reflections (wrap)
232 β”‚ Active β”‚ 80 β”‚ 3.1.4 β”‚ Stax2 API
233 β”‚ Active β”‚ 80 β”‚ 1.5.8.v20160511-1038 β”‚ swagger-jersey2-jaxrs (wrap)
235 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811110923 β”‚ Exec Binding
237 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome IoT Marketpl
238 β”‚ Active β”‚ 80 β”‚ 2.2.0.201711091019 β”‚ Sony Binding
240 β”‚ Active β”‚ 80 β”‚ 1.13.0.201811150509 β”‚ openHAB GPIO Binding
241 β”‚ Active β”‚ 80 β”‚ 1.13.0.201811150509 β”‚ openHAB GPIO IO Module
245 β”‚ Active β”‚ 75 β”‚ 0.10.0.201811171951 β”‚ Eclipse SmartHome Map Transfor
246 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811221857 β”‚ GlobalCache Binding
251 β”‚ Active β”‚ 80 β”‚ 0.10.0.201811100937 β”‚ Eclipse SmartHome Basic UI, Fr
252 β”‚ Resolved β”‚ 75 β”‚ 2.4.0.201811110923 β”‚ openHAB Basic UI Fragment, Hos
253 β”‚ Active β”‚ 80 β”‚ 2.4.0.201811232341 β”‚ iCloud Binding