tronghuyict56 / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Dropbox bundle failing to start/authenticate in v1.3 #395

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to start the Dropbox bundle (place in /addons)
2.
3.

What is the expected output? What do you see instead?

Previously was working fine, then upgraded to 1.3 SNAPSHOT and started getting 
this exception when starting up. Tried re-authenticating but no joy. 
Found this link which might be related 
https://forums.dropbox.com/topic.php?id=45870.

Am aware of one other user seeing the same thing.

22:38:00.892 ERROR o.o.i.d.i.DropboxSynchronizer[:844]- Synchronization files 
with Dropbox throws an exception
com.dropbox.client2.exception.DropboxSSLException: javax.net.ssl.SSLException: 
hostname in certificate didn't match: <api.dropbox.com/108.160.162.54> != 
<*.dropbox.com>
        at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:416)
        at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:337)
        at com.dropbox.client2.RESTUtility.streamRequest(RESTUtility.java:192)
        at com.dropbox.client2.RESTUtility.request(RESTUtility.java:122)
        at com.dropbox.client2.DropboxAPI.delta(DropboxAPI.java:2247)
        at org.openhab.io.dropbox.internal.DropboxSynchronizer.syncDropboxToLocal(DropboxSynchronizer.java:335)
Caused by: javax.net.ssl.SSLException: hostname in certificate didn't match: 
<api.dropbox.com/108.160.162.54> != <*.dropbox.com>
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:228)
        at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:149)
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:130)
        at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)
        at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:495)

What version of the product are you using? On what operating system?

1.3 SNAPSHOT on Ubuntu 12.04

Please provide any additional information below.

Original issue reported on code.google.com by ben.jone...@gmail.com on 11 Aug 2013 at 8:46

GoogleCodeExporter commented 8 years ago

Original comment by teichsta on 13 Aug 2013 at 8:16

GoogleCodeExporter commented 8 years ago
Any luck with this Thomas - I am getting a bit nervous now all my config is not 
getting automatically backed up to Dropbox!

Original comment by ben.jone...@gmail.com on 23 Aug 2013 at 1:49

GoogleCodeExporter commented 8 years ago
seems a problem with httpclient 4.1.x 
according t forum should be fixed by using httpclient 4.2.x

Original comment by ramazany...@gmail.com on 9 Sep 2013 at 10:06

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 11 Sep 2013 at 5:01

GoogleCodeExporter commented 8 years ago
> seems a problem with httpclient 4.1.x 
where did you get that from?

Original comment by teichsta on 11 Sep 2013 at 5:46

GoogleCodeExporter commented 8 years ago

Original comment by teichsta on 12 Sep 2013 at 12:27

GoogleCodeExporter commented 8 years ago
fixed with 
http://code.google.com/p/openhab/source/detail?r=8d30840d1a6221a52c575709a48d75f
cdd09de33&name=1.3.1. Issue will be left open until the wiki is updated 
accordingly

Original comment by teichsta on 14 Sep 2013 at 10:54

GoogleCodeExporter commented 8 years ago
Issue is fixed. Could somebody else confirm the that Dropbox synchronisation is 
working again.

Original comment by teichsta on 15 Sep 2013 at 3:14

GoogleCodeExporter commented 8 years ago
I can't get this change set to compile in my clone. Are you able build a binary 
for 1.3.0? More than happy to test.

Original comment by ben.jone...@gmail.com on 15 Sep 2013 at 10:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
you can find the latest build on our ci server 
https://openhab.ci.cloudbees.com/job/openHAB/

Original comment by teichsta on 16 Sep 2013 at 9:15

GoogleCodeExporter commented 8 years ago
Thanks Thomas, I keep forgetting about the build server!

Original comment by ben.jone...@gmail.com on 16 Sep 2013 at 9:32

GoogleCodeExporter commented 8 years ago
Thomas - I tried the new binding and managed to authenticate (by running 
start.sh instead of my usual Ubuntu startup script). Everything seemed to be 
working, but when I stopped the process (using Ctrl+C) I couldn't see any auth 
file being written anywhere.

I looked in /opt/openhab, /opt/openhab/etc and /opt/openhab/configuation but no 
sign of anything. Upon restarting openHAB (either via start.sh or my Ubuntu 
startup script) I am prompted to authenticate again.

Is it possible the auth file is not getting written properly? Or am I doing 
something wrong?!

Original comment by ben.jone...@gmail.com on 16 Sep 2013 at 11:13

GoogleCodeExporter commented 8 years ago
>Is it possible the auth file is not getting written properly? Or am I doing 
something wrong?!

The file was written but to a temporary space ;-)  The piece was left over from 
some experiments i did. Reverted to the location it used to be.

Original comment by teichsta on 16 Sep 2013 at 1:06

GoogleCodeExporter commented 8 years ago
Sweet - that seems to be better. Cheers, all working now!

Original comment by ben.jone...@gmail.com on 16 Sep 2013 at 8:42