Openhabian 3.0 RC2 migration/upgrade not working

Hi haybolat,

for me it didn’t worked via openhabian-config.

I did following steps:

Remove OpenJDK:

sudo apt-get purge openJDK*

Download and install latest Zulu11 package:

check version with java -version

1 Like

Thank you friends.

1 Like

Hey.
I’ve got pretty much the same problem, but still no solution …

I tried to upgrade from 2.5 to 3.0 and followed the instruction here in the community, which said something like “u will need java 11, which will be provided by openhab installation”, so i was like ‘oh, you got java 8 installed, but well then, openhab will fix this’ …

It does not ^^

I installed openhab 3.0, which told me after installation, that java 11 is missing …
So after all i purged all java 8 installations (zulu and openjdk), but still when i type “java -version” i get java 8 shown as installed.
Nevermind, i installed zulu 11 manually (as openhab_knx tells in his post) configured it to be used, so when i type “java -version” now i get zulu 11 as active java framework.

Still the problem is there, that openhab 3.0 does not start.
When checking open oports, i see no service listening on :8080
Maybe you got another hint for this?

can you check the status with:
sudo service openhab status

Was just about to add this to original post ;D

    sudo systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-12-22 13:46:22 CET; 8min ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
 Main PID: 7671 (java)
    Tasks: 148 (limit: 2063)
   CGroup: /system.slice/openhab.service
           └─7671 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime

hmm looks good, you did a reboot after zulu11 installation for sure?

Yep, did several reboots.
Also did update & dist-upgrade everything else before and after installation / migration.

I’m confused, as any other service on my RPi is running well (grafana ; pihole ; deconz / phoscon etc.)


EDIT:
oh wait … openhab just came up with initial setup.
Wow … ths took over 15 mins now.
And seems like some settings i made in 2.5 are gone.

Of course i made a backup, as it was mentioned in the upgrade tutorial.
Should i restore all settings, or will this break the new 3.0 version?

It’s now like, my rules are there, and my items also are.
But all things are gone and are now shown as “new” in the inbox.
also my location is lost and api keys for opwnweather

good to hear :muscle:
sorry, no experience with oh2-oh3 migration. I started from scratch to get rid of my unused und misconfigured stuff over the last years.

1 Like

Hi,
None of my mqtt links worked after OH3 migration. I am getting the following errors. What should I do? Can you help me please?

2020-12-22 17:18:42.580 [ERROR] [nhab.core.thing.binding.ThingFactory] - Thing factory (class org.openhab.binding.icloud.internal.ICloudHandlerFactory) returned null on create thing when it reports to support the thing type (icloud:device).

2020-12-22 17:18:42.582 [WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type icloud:device.

2020-12-22 17:18:42.586 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'icloud:device:XXXXXXXXXXXXXXX' to inbox.

2020-12-22 17:18:43.850 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = XXXXXXXXXXXXXXXXXXXXXXXXXXX, base URL = http://localhost:8080)

2020-12-22 17:19:25.879 [WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'mqttitude1' does not exist - ignoring it.

2020-12-22 17:19:25.883 [WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'mqtt1' does not exist - ignoring it.

2020-12-22 17:19:25.898 [WARN ] [core.karaf.internal.FeatureInstaller] - The misc add-on 'gcal1' does not exist - ignoring it.

2020-12-22 17:19:25.903 [WARN ] [core.karaf.internal.FeatureInstaller] - The misc add-on 'ruleengine' does not exist - ignoring it.

2020-12-22 17:19:25.910 [WARN ] [core.karaf.internal.FeatureInstaller] - The persistence add-on 'mysql' does not exist - ignoring it.

2020-12-22 17:19:25.928 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'classic' does not exist - ignoring it.

2020-12-22 17:19:25.932 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'paper' does not exist - ignoring it.

i looks like you were using mqtt version 1.x.
This is not supported in OH3 anymore. (check the forum for more details)

1 Like

Hi,
how do i upgrade mqtt. I have no idea. I would like you to be helpful.

check the new binding

I don’t understand, please help. I did not understand how to upgrade.

i don’t know how you are using mqtt. What is your usecase?
First step is to install the new binding.

Bindings - mqtt install.

I already installed mqtt

Another option would be to run mqtt1 in OH2 and link it to OH3 with the remoteopenhab binding.

Presumably you have configuration files. Use this guide to convert:

I can not find any explanatory information for those who do not know. There is no document detailing the transition from Mqtt1 to Mqtt2. Please, I ask the knowing friends to make detailed documents. There are other people like me who have other problems.

Did you click the link provided? It takes you directly to the part of the document called Converting an MQTT1 installation - you might say it is a “document detailing the transition from Mqtt1 to Mqtt2”…

It explains the link conversion you say. I’m asking how to change mqtt2 usage instead of mqtt1.