oH 1.8.3 - Can´t connect to myopenhab.org

Hi there,

i´m currently trying to connect my openHAB 1.8.3 installation to myopenhab.org.
The goal is to connect oH and Alexa through myopenhab.org.

myopenhab.org always says my installation is Offline.
I already checked some of the threads here and none of the solutions helped.

Environment:
Raspberry Pi 3
Raspbian 8 Jessie
openHAB 1.8.3

I already checked the UUID and Secret twice and even deleted them and used the newly created.

openhab.cfg

security:option=EXTERNAL
security:netmask=192.168.2.0/24

Debug Log (with only myopenhab)

2018-03-27 12:21:17.034 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'myopenhab.persist'
2018-03-27 12:21:32.561 [DEBUG] [.m.i.MyOpenHABServiceActivator] - MyOpenHAB service has been started.
2018-03-27 12:21:32.568 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - setEventPublisher
2018-03-27 12:21:32.569 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - my.openHAB service activated
2018-03-27 12:21:32.571 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - config is null
2018-03-27 12:21:32.574 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - UUID file found at '/usr/share/openhab/webapps/static/uuid' with content '4def12f1-9c16-456f-acb7-8bbdcae45a43'
2018-03-27 12:21:32.575 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - Secret file already exists at '/usr/share/openhab/webapps/static/secret' with content 'jjF2geECnn9thyBpA6yX'
2018-03-27 12:21:32.576 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - UUID = 4def12f1-9c16-456f-acb7-8bbdcae45a43, secret = jjF2geECnn9thyBpA6yX
2018-03-27 12:21:32.583 [DEBUG] [.p.internal.PersistenceManager] - Initializing myopenhab persistence service.
2018-03-27 12:21:32.609 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - UUID file found at '/usr/share/openhab/webapps/static/uuid' with content '4def12f1-9c16-456f-acb7-8bbdcae45a43'
2018-03-27 12:21:32.613 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - Secret file already exists at '/usr/share/openhab/webapps/static/secret' with content 'jjF2geECnn9thyBpA6yX'
2018-03-27 12:21:32.616 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - Version file found at '/usr/share/openhab/webapps/static/version' with content '1.8.3'
2018-03-27 12:21:32.723 [DEBUG] [.myopenhab.internal.MyOHClient] - Manager.EVENT_TRANSPORT
2018-03-27 12:21:33.053 [DEBUG] [.myopenhab.internal.MyOHClient] - Transport.EVENT_REQUEST_HEADERS
2018-03-27 12:21:33.507 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - store(calAbfallTonne), state = Undefined
2018-03-27 12:21:33.509 [DEBUG] [.myopenhab.internal.MyOHClient] - No connection, Item update is not sent
2018-03-27 12:21:33.514 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - store(calAbfallDate), state = Undefined
2018-03-27 12:21:33.515 [DEBUG] [.myopenhab.internal.MyOHClient] - No connection, Item update is not sent
2018-03-27 12:21:36.676 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - store(Wohnzimmer), state = Undefined
2018-03-27 12:21:36.678 [DEBUG] [.myopenhab.internal.MyOHClient] - No connection, Item update is not sent

Any ideas how to get my oH intallation to speak with myopenhab.org?

Cheers
Michael

What Java -version do you have (should be above 1.8.0_104 I think) . This error is overcome by updating the Java version in most cases!

pi@HER-MB-OpenHab:~ $ sudo apt-cache showpkg oracle-java8-jdk 
Package: oracle-java8-jdk
Versions: 
8u65 (/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_jessie_main_binary-armhf_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_jessie_main_binary-armhf_Packages
                  MD5: 8fb8c32eba2d82fb7a74c04bb9c5cd11


Reverse Depends: 
  wolfram-engine,oracle-java8-jdk
  wolfram-engine,oracle-java8-jdk
  greenfoot,oracle-java8-jdk
  bluej,oracle-java8-jdk
Dependencies: 
8u65 - libasound2 (2 1.0.16) libc6 (2 2.4) libgcc1 (2 1:4.4.0) libx11-6 (0 (null)) libxext6 (0 (null)) libxi6 (0 (null)) libxrender1 (0 (null)) libxtst6 (0 (null)) netbase (0 (null)) 
Provides: 
8u65 - java8-sdk java8-runtime-headless java8-runtime java7-sdk java7-runtime-headless java7-runtime java6-sdk java6-runtime-headless java6-runtime java5-sdk java5-runtime-headless java5-runtime java2-sdk java2-runtime-headless java2-runtime java2-compiler java-virtual-machine java-sdk java-runtime-headless java-runtime java-compiler java-browser-plugin 
Reverse Provides: 

java -v

Are you sure?

pi@HER-MB-OpenHab:/etc/openhab $ java -v
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Edit:

pi@HER-MB-OpenHab:/etc/openhab $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

How to only update the Java environment? :slight_smile:

How about looking Here?
Look under “Meeting requirements”.

  1. I´m using 1.8.3 and not 2
  2. There´s nothing like “Meeting requirements” in your link

How do i only update the oracle java environment?

It is understood that you are (still) on 1.8.3, and please scroll down to see the bold printed "MeetIng requirements ". They talk about updating or installing java . I think 1.8.3 will run on the same java as 2.x( keeping fingers crossed) Else use the search function of the forum (that is what I did).

BTW: An Installation of OH2 using a openhabian image is pretty easy, don’t get left behind!

Sorry but there´s no information about updating an existing java environment… or i´m not able to find it…
Just some suggestions for Zulu.
I don´t want to change my whole system, just updating the java to get myopenhab.org back running.

Meeting the Requirements: As a first step, please verify, that your system meets the prerequisites. You may want to install Zulu, a fully certified Java build as a package or manually.

Alternatively, Zulu Embedded can be installed for small systems either from the same package repository as above or manually. If you’re unsure which manual file you should download, using dpkg --print-architecture or rpm -q --qf ‘%{ARCH}\n’ rpm in your Linux terminal should point you in the right direction (e.g. armhf means ARM Hard Float).

When installing Zulu or Zulu Embedded from a .zip or .tar archive, make sure to set Zulu as the main Java “alternative”.

Note: Make sure to download Zulu or Java 8, as openHAB is not yet compatible with Java 9.

Zu is an alternative for Java.

I´m now on Java 1.8.0_161 and myopenhab.org still says Offline

pi@HER-MB-OpenHab:~ $ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) Client VM (build 25.161-b12, mixed mode)
pi@HER-MB-OpenHab:~ $ javac -version
javac 1.8.0_161

When creating the myopenhab account, you should have received an email which should have been answered for confirmation (if I’m not mistaken).

I´m already logged in…
I already added the UUID and the Secret.

Did you expose any items to myopenhab?
Have a look into This old thread, the problem there was solved by exposing items.

And how could i expose items in oH 1.8.3?

I just have a myopenhab.persist

Strategies {
	default = everyChange
}
Items {
	* : strategy = everyChange
}

The addon is org.openhab.io.myopenhab-1.8.0.jar
I already searched for newer version but can´t find any.

I’m sorry, but I forgot that such is possible via PaperUI and that belongs to OH2.
I guess I’m out of ideas. Sorry for that.