[SOLVED] OH2.4 Halt after Few Days of Running New Installation

  • Platform information:
    • Hardware: Raspberry PI 3B

    • OS: Openhabian

    • Java Runtime Environment: openjdk version “1.8.0_152”
      OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
      OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, mixed mode, Evaluation)

    • openHAB version: openHAB 2.4.0 Release Build

  • Issue of the topic: After Running for Few days (3-5 Days) Openhab 2.4, Which i did new fresh installation, Stops/halts/hangs. Only hard reboot is the way to recover it.
  • Please post configurations (if applicable):
    • Items configuration related to the issue

// Configuration file for “rrd4j” persistence module

// persistence strategies have a name and a definition and are referred to in the “Items” section
Strategies {
everyMinute: “0 * * * * ?”
everyHour : “0 0 * * * ?”
everyDay : “0 0 0 * * ?”
default = everyChange
}

Items {
RNDLUMENS : strategy = everyChange, everyMinute
BATTANALYSWITCH : strategy = everyChange, everyMinute
BATTANALYWIFI : strategy = everyChange, everyMinute
sonoffbedswitch : strategy = everyChange, everyMinute
sonoffbedquality : strategy = everyChange, everyMinute
sweetwaterswitch : strategy = everyChange, everyMinute
sweetwaterquality : strategy = everyChange, everyMinute
Rpi_temp : strategy = everyChange, everyMinute
ULTRASONICG : strategy = everyChange, everyMinute
ULTRASONIC1SWITCH : strategy = everyChange, everyMinute
//DS182001 : strategy = everyChange, everyMinute
//DS182002 : strategy = everyChange, everyMinute
//Databasesizetm : strategy = everyChange, everyMinute
memUsed : strategy = everyChange, everyMinute
diskspaceused : strategy = everyChange, everyMinute
openhabCpuPercent : strategy = everyChange, everyMinute
Mi_Temperature : strategy = everyChange, everyMinute
Mi_Humidity : strategy = everyChange, everyMinute
Gateway_AmbientLight : strategy = everyChange
G_Gateway_AmbientLight : strategy = everyChange
PZ_Voltage : strategy = everyChange, everyMinute
PZ_Ampere : strategy = everyChange, everyMinute
PZ_Power : strategy = everyChange, everyMinute
PZ_Energy : strategy = everyChange, everyMinute
PZ_Voltage1 : strategy = everyChange, everyMinute
PZ_Ampere1 : strategy = everyChange, everyMinute
PZ_Power1 : strategy = everyChange, everyMinute
PZ_Energy1 : strategy = everyChange, everyMinute
PZ_Voltage2 : strategy = everyChange, everyMinute
PZ_Ampere2 : strategy = everyChange, everyMinute
PZ_Power2 : strategy = everyChange, everyMinute
PZ_Energy2 : strategy = everyChange, everyMinute
InfluxDB_Size : strategy = everyChange, everyMinute
GroundTanklevel : strategy = everyChange, everyMinute
tanklevel : strategy = everyChange, everyMinute
UpsweetTanklevel : strategy = everyChange, everyMinute
InvBattVolt : strategy = everyChange, everyMinute
illumination_natural : strategy = everyChange, everyMinute
solar_water_temp : strategy = everyChange, everyMinute
}

  • Sitemap configuration related to the issue
    Getting Below Error in openhab.log

Complete Openhab.log
https://nopaste.xyz/?42c7492f91134baf#Is24ZMwtrunmnMMSLFbVoKpOnV29svCF6f6vkXHSbek=

Sitemap Configuration:
https://nopaste.xyz/?13293deec95a0e62#hFLcvPo1xMISveV02znIgpx8qJBetOtDbo3hpIT8d7M=

Please help… facing repeated same issues.

That’s not good for your SD card.

Looking at the very long log,:sweat: OH seems to have trouble with the mqtt connection. Maybe try uninstalling the binding, cleaning the cache then reinstalling. Also toward the bottom it mentions several items that are duplicates. Did you create item’s in both PaperUI and in files or maybe have Simple mode turned on?

There’s also an issue with the cloud connection so uninstall/reinstalling might help. You will need to delete the old UUID as the binding will generate a new one.

If you haven’t already, clean the cache, as that’s where I would start. Also check that you have a static/reserved IP address for OH and the EspMilightHubBridgeHandler in your router.

sudo systemctl stop openhab2

sudo openhab-cli clean-cache

sudo systemctl start openhab2
or, if you prefer to reboot use
sudo reboot

I removed binding entry from addons.cfg and everything seems to be normal.

I’m guessing the binding entry removed was mqtt? Please please verify this and mark the topic solved so if others have the same issue they will know what needs to be done.

Thanks

EspMilighthub was binding that i removed.

Still i am getting error

Handler EspMilightHubBridgeHandler tried updating the thing status although the handler was already disposed.

Try cleaning the cache.

sudo systemctl stop openhab2

sudo openhab-cli clean-cache

sudo systemctl start openhab2

If that doesn’t resolve the issue then stop OH, use a text editor, and delete EspMilighthub from /var/lib/openhab2/config/org/openhab/addons.config. Just remember to stop OH before making any change to the above file. Also, make sure you don’t have the binding listed in /etc/openhab2/services/addons, otherwise it will get reloaded when you restart OH.

1 Like

I did uninstalled Binding, But i am not able to delete the thing now. How to forcefully remove thing from Paper UI ?

Verify the binding is removed from /var/lib/openhab2/config/org/openhab/addons.config if it is then you shouldn’t have a “thing” in PaperUI.