[SOLVED] Karaf error when starting openhab2 on rpi3

looks like you are back up now

time to clean up some other issues:

do you need the embedded MQTT Broker?
looks like you are using already another Broker on your system (maybe Mosquitto?) that is conflicting with the embedded.

If you are using an external broker, uninstall the embedded broker addon

Ps: When starting code fences, use: ``` in one line, paste the stuff in the next line and at the end close the code with another ``` in a new line

like this:
```
code/logā€¦
code/logā€¦
code/logā€¦
code/logā€¦
code/logā€¦
code/logā€¦
```

2018-12-21 23:31:33.089 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-misc-mqttbroker'
2018-12-21 23:38:00.070 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:00.076 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:00.081 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:03.534 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:03.541 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:03.546 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:03.743 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:03.748 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:03.752 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:07.243 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:07.245 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:07.248 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:07.407 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:07.410 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:07.414 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:09.057 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:09.061 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:09.067 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:09.299 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:09.305 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:09.310 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:12.811 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:12.815 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:12.820 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:13.012 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:13.015 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:13.019 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:15.006 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 510564 failed: null
2018-12-21 23:38:15.012 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2018-12-21 23:38:43.633 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:43.637 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Bedroom_Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-12-21 23:38:43.640 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text

this is another kind of problem. In your sitemap, you refer to an Item with a name Bedroom_Temperature
does this Item exist?

this is just a warning. have you configured properly the openhabcloud connector?

this needs some attention as well. check the contents of this file.

Bedroom_Temperature does exist in both files but doesnā€™t have any mqtt lines associated with it yet.

I have had the cloud connector configured for months and it has been fine.

The home.things file is empty apart from /this is the things file
Change to //this I the things file
and I think thatā€™s solved it

it doesnā€™t have to have any binding (mqtt or other) configured
it just has to exist (with a name) if you need to use it in your sitemap
can you post its definition from the items file to check it?
there is a reason why your sitemap is screaming that it cannot find it :slight_smile:

correct. comments are with 2 forward slashes.

Number  Bed_Temperature  "temperature [%.1f]" <temperature>

Ok, here are your Java upgrade instructions: follow them step by step:

sudo su
apt-get update && apt-get install dirmngr
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/oracle.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list.d/oracle.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update && apt-get install oracle-java8-installer oracle-java8-set-default
apt-get purge zulu-embedded-8 oracle-java8-jdk

say goodbye to Zulu, say hello to Oracle with apt

check with

java -version

openHAB2 is not so smart yet to translate Bed to Bedroom :slight_smile: We donā€™t have Machine Learning algorithms embedded into OH2 yet :wink:

remember the error:

Cannot retrieve item 'Bedroom_Temperature'

Java updated. Item updated but still my items arenā€™t responding and they log is saying jetty error

I need to see the logs :slight_smile:

what do you mean ā€œarenā€™t respondingā€? when using the sitemap? directly or via openHAB Cloud?

Both basic ui on web interface and cloud, the items for example a light responds to commands I send from my mqtt tool though. So somethingā€™s missing somewhere

most likely your MQTT addon has lost its connection to the Broker
which broker are you using? Mosquitto?

since you recently upgraded to 2.4.0 stable, keep in mind that the existing MQTT v1 binding has been automagically uninstalled for you since you are supposed to work with the new MQTT v2 binding.

To bring back MQTT v1 to life, enable Legacy Addons from PaperUI and install MQTT v1 again.

I have enabled legacy adding and saved configuration but the v1 mqtt binding isnā€™t appearing?

restart OH2 (it shouldnā€™t be needed) just to be sure
check again in PaperUI the addons. it should appear

Restarted OH2 and I cannot access the web interface now I get this message on my browser

HTTP ERROR 404

Problem accessing /start/index. Reason:

Not Found

Powered by Jetty:// 9.4.11.v20180605

UPDATE!
Can now access web interface and all my items are responding :grimacing:

be patient :slight_smile:
you are running OH2 on an rPi3 which takes a few seconds to startup the OH2 service

Haha :laughing: thank you for your help. Just a little note though. When I log into ssh using the terminal shows me the status of the system ie if there is any updates and cpu usage. In its place now is this.

2018-12-22 07:31:58,292: FireMotD: Info: No FireMotD ExportFile detected. Please generate with "sudo .\FireMotD -S"

So I used the stated command and it said command unknown ?

1 Like

Personally, I donā€™t use openHABian (I shouldā€¦ I know :slight_smile:)
check this out: [SOLVED] OpenHAB 2.3.0-1 Stable: No FireMotD ExportFile detected - #12

Thatā€™s solved it. I had to go into openhabian-Config and apply improvements to the firemotd then regenerate the command :grinning:

P.s I canā€™t believe you donā€™t use openhabian. Thanks again for your help Dim. Your are a legend

1 Like