Clear the Cache

you can try
sudo openhab-cli reset-ownership

Not sure you want to start deleting files at this moment. The question of course would be: why would the ownership have changed? There is also a chance that your SD card is corrupted (assuming you are using a raspberry). But you are not giving a lot of information, so it will be difficult to help.

Thank you for the support. But I think ownership isn’t an issue. I only did the few steps from post no1 and from there on nothing worked, because openhabcloud,and all other bindings couldn’t be installed as seen in the error I posted above.
But after deleting that addon.config file (I read in another thread that this should help) openhab doesnt even try to install those addons. I dont get any error messages in the logs.
SD card isnt corrupted, as I can still see my items, things sitemap and rules folders.

When was the last time you restarted OH/Pi before clearing the cache? If it has been a while, lot’s of things could have happened in between that caused this situation. Which makes it harder to find the root cause.

Did you check the logs of the Raspbian system, like syslog? Are there any errors there?
Also, I recommend a few steps to try:

  1. Stop OH.
  2. Remove all bindings from addon.cfg (and addon.config just to be sure).
  3. Clear temp and cache directories (you can just delete the content of these two directories - not the directories themselves).
  4. Start OH and let it settle for 5 minutes.
  5. Restart OH and see if it comes up without issues.
  6. If so, start adding the bindings again.

Thank you noppes.
Last time the system was restarted was about 3 month ago.
I never cleared the cache before and the system has been running for about 18 month.
How do you clear temp?
Is it: sudo openhab-cli clear-temp ?

Well, I already started with a new SD card.
At least I made a backup of my sitemap, items, rules folder but still will be a lot of work.

I believe this is a dangerous advice. I hosed my OH couple hours ago by deleting contents of cache and tmp. I’ve now tried getting it back, but no luck. This is container install, everything in volume mounts for config. After I deleted the cache and tmp, OpenHAB gui is not reachable, and some felix complains about missing bundle dirs. It looks for nonexistent directories, probably something from the times this was not container based install yet.

Need to sleep now, and try fixing it tomorrow evening. Let’s see how many hours it takes to get it back. I have backup from 2.3, from which I just spent an evening converting it all to 2.5.1 with new MQTT rules, before doing this cleanup and hosing the install. Do’h.

You can use rm -rf <openhab-dir>/userdata/tmp/*

It’s worth noting that deleting the contents of the cache and tmp folders is exactly what the Linux installation scripts (apt and yum) do every time you upgrade. It is also exactly what the entrypoint.sh script does in the Docker container when it detects that your mounted userdata folder is for a version of OH different from the version of OH that will run in the container. They are also part of the steps for those using a manual install of OH to upgrade/downgrade their OH instance.

Clear the cache must be done in these situations to force OH to download and install the version of the binding that corresponds with that instance of OH. When you’ve upgraded or when you encounter certain types of errors, clearing the cache will force OH to reinstall all the add-ons, just like it does when upgrading. Consequently it can solve some types of errors.

It is not something you do periodically as a maintenance step. It should only be performed when you are experiencing certain types of errors that might be corrected by reinstalling all the add-ons again.

2 Likes

I’m sorry I caused useless noise here. It wasn’t that catastrophic now that I look at it with fresh eyes at the morning. I just had shit luck with two failures at the same time while I was bouncing the container up and down frequently.

So first of all the fenix error is likely due that I have some years back moved OH from native install to container. So there was a file:

openhab_userdata/config/org/apache/felix/fileinstall/a3d26444-7239-4cf1-841b-375af82a5901.config

which had wrong paths for felix.fileinstall.dir and felix.fileinstall.tmpdir, pointing to some legacy place in /var/lib… which is not valid for container any longer. So finding those and adding the necessary dirs fixed the error.

At the same time, I was hit a weird occurence of cruft in iptables. For some reason there were double NAT rules for the container, which the old ones took precedence. That lead me not to reach the container. Perhaps I had pressed ctrl-c or something in middle of container creation or something, but it made it look like openhab didn’t run gui.

So my bad, I apologize the false claim of this being bad advice.

FYI, if you are interested, this was the iptables problem:

grep '8083\|8101\|5007' iptables-save.txt 
-A CNI-DN-c8003dd990a68ae51b1c9 -s 10.88.7.54/32 -p tcp -m tcp --dport 8101 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-c8003dd990a68ae51b1c9 -s 127.0.0.1/32 -p tcp -m tcp --dport 8101 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-c8003dd990a68ae51b1c9 -p tcp -m tcp --dport 8101 -j DNAT --to-destination 10.88.7.54:8101
-A CNI-DN-c8003dd990a68ae51b1c9 -s 10.88.7.54/32 -p tcp -m tcp --dport 5007 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-c8003dd990a68ae51b1c9 -s 127.0.0.1/32 -p tcp -m tcp --dport 5007 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-c8003dd990a68ae51b1c9 -p tcp -m tcp --dport 5007 -j DNAT --to-destination 10.88.7.54:5007
-A CNI-DN-c8003dd990a68ae51b1c9 -s 10.88.7.54/32 -p tcp -m tcp --dport 8083 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-c8003dd990a68ae51b1c9 -s 127.0.0.1/32 -p tcp -m tcp --dport 8083 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-c8003dd990a68ae51b1c9 -p tcp -m tcp --dport 8083 -j DNAT --to-destination 10.88.7.54:8080
-A CNI-DN-ee918de3a9eecddcdd1f6 -s 10.88.7.42/32 -p tcp -m tcp --dport 8083 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-ee918de3a9eecddcdd1f6 -s 127.0.0.1/32 -p tcp -m tcp --dport 8083 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-ee918de3a9eecddcdd1f6 -p tcp -m tcp --dport 8083 -j DNAT --to-destination 10.88.7.42:8080
-A CNI-DN-ee918de3a9eecddcdd1f6 -s 10.88.7.42/32 -p tcp -m tcp --dport 8101 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-ee918de3a9eecddcdd1f6 -s 127.0.0.1/32 -p tcp -m tcp --dport 8101 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-ee918de3a9eecddcdd1f6 -p tcp -m tcp --dport 8101 -j DNAT --to-destination 10.88.7.42:8101
-A CNI-DN-ee918de3a9eecddcdd1f6 -s 10.88.7.42/32 -p tcp -m tcp --dport 5007 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-ee918de3a9eecddcdd1f6 -s 127.0.0.1/32 -p tcp -m tcp --dport 5007 -j CNI-HOSTPORT-SETMARK
-A CNI-DN-ee918de3a9eecddcdd1f6 -p tcp -m tcp --dport 5007 -j DNAT --to-destination 10.88.7.42:5007
-A CNI-HOSTPORT-DNAT -p tcp -m comment --comment "dnat name: \"podman\" id: \"dd23bf1a31d0f36d19e6b1590d09d2b0918f255e98589ff1b50517530ed161a6\"" -m multiport --dports 8083,8101,5007 -j CNI-DN-ee918de3a9eecddcdd1f6
-A CNI-HOSTPORT-DNAT -p tcp -m comment --comment "dnat name: \"podman\" id: \"dd0e4c0ccff270c05f731de2934dc338fc9ee738cdc9f6d08364bffb6c9811ff\"" -m multiport --dports 8101,5007,8083 -j CNI-DN-c8003dd990a68ae51b1c9

but that’s off topic.

Perhaps but if someone runs into this problem perhaps they will see this post and be able to figure it out. I’m glad you got back up and running!

pheew, me too. Even though I’m not through the update yet, still stuff to do. But I created an issue about in hopes it would get fixed one day:

1 Like

Just wanted to add along with what @rlkoshak has already said. You should also not use /* to clear the cache folders. This does not remove all files in these directories, and it’s unclear (to me at least) what effect that this mismatch has.

If you absolutely have to clear the cache yourself, the easiest way is to delete the directory.

Hello
I had my own problem with another card
one hundred new ones installation openhab 2.5
and stopped working

2020-02-22 08:08:40.892 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 34 to 33

2020-02-22 08:08:40.948 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29744 to 29753

2020-02-22 08:08:40.964 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1179 to 1167

2020-02-22 08:08:40.968 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 29.8 to 29.5

2020-02-22 08:08:40.985 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 49.7 to 48.7

2020-02-22 08:08:40.998 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 70.2 to 70.5

2020-02-22 08:08:41.048 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:41.095 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2777 to 2789

2020-02-22 08:08:41.121 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:41.341 [vent.ItemStateChangedEvent] - NESPRESSOMeterCurrentWatts changed from 0.540 W to 0.700 W

2020-02-22 08:08:41.370 [vent.ItemStateChangedEvent] - NESPRESSOMeterCurrentWatts2 changed from 0.540 to 0.700

2020-02-22 08:08:41.380 [ome.event.ItemCommandEvent] - Item 'NESPRESSO_Power' received command 0.0030434781

2020-02-22 08:08:41.402 [vent.ItemStateChangedEvent] - NESPRESSOMeterLastPower1 changed from 0.593 W to 0.589 W

2020-02-22 08:08:41.407 [vent.ItemStateChangedEvent] - NESPRESSOMeterLastPower2 changed from 0.589 W to 0.593 W

2020-02-22 08:08:41.428 [vent.ItemStateChangedEvent] - NESPRESSOMeterLastPower3 changed from 0.584 W to 0.589 W

2020-02-22 08:08:41.431 [vent.ItemStateChangedEvent] - NESPRESSOMeterLastUpdate changed from 2020-02-22T08:07:40.000+0200 to 2020-02-22T08:08:41.000+0200

2020-02-22 08:08:41.433 [vent.ItemStateChangedEvent] - NESPRESSODeviceUptime changed from 416675 s to 416735 s

2020-02-22 08:08:41.435 [vent.ItemStateChangedEvent] - NESPRESSODeviceWifiSignal changed from 4 to 3

2020-02-22 08:08:41.438 [vent.ItemStateChangedEvent] - NESPRESSO_Power changed from 0.0023478263 to 0.0030434781

2020-02-22 08:08:41.639 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:41.674 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:42.208 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:43.257 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 33 to 21

2020-02-22 08:08:43.258 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29753 to 29756

2020-02-22 08:08:43.259 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1167 to 1135

2020-02-22 08:08:43.259 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 29.5 to 28.7

2020-02-22 08:08:43.263 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 48.7 to 50.1

2020-02-22 08:08:43.276 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:43.281 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 70.5 to 71.3

2020-02-22 08:08:43.283 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2789 to 2820

2020-02-22 08:08:43.285 [vent.ItemStateChangedEvent] - Humidity_kids_room changed from 50.9 to 50.8

2020-02-22 08:08:43.286 [vent.ItemStateChangedEvent] - PAIDIKO_Hum changed from 50.9 to 50.8

2020-02-22 08:08:43.288 [vent.ItemStateChangedEvent] - Temperature_kids_room changed from 21.9 to 21.8

2020-02-22 08:08:43.289 [vent.ItemStateChangedEvent] - PAIDIKO_Temp changed from 21.9 to 21.8

2020-02-22 08:08:43.425 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:43.445 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:43.525 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 21 to 18

2020-02-22 08:08:43.531 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29756 to 29759

2020-02-22 08:08:43.539 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1135 to 1041

2020-02-22 08:08:43.541 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 28.7 to 26.3

2020-02-22 08:08:43.542 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 50.1 to 49.2

2020-02-22 08:08:43.543 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 71.3 to 73.7

2020-02-22 08:08:43.546 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2820 to 2915

2020-02-22 08:08:43.804 [vent.ItemStateChangedEvent] - Deh_Meter1ApparentPowerDryer changed from 347 to 348

2020-02-22 08:08:43.805 [vent.ItemStateChangedEvent] - Deh_Meter1CurrentDryer changed from 1.479 to 1.484

2020-02-22 08:08:43.815 [vent.ItemStateChangedEvent] - Deh_Meter1ReactiveWatts changed from 0.092 to 0.093

2020-02-22 08:08:43.834 [vent.ItemStateChangedEvent] - Power_Total_DEH2 changed from 196.831 to 196.832

2020-02-22 08:08:43.836 [vent.ItemStateChangedEvent] - Deh_Meter1TotalKWH changed from 196.831 to 196.832

2020-02-22 08:08:43.838 [vent.ItemStateChangedEvent] - Deh_Meter1CurrentWatts changed from 233 to 235

2020-02-22 08:08:43.841 [ome.event.ItemCommandEvent] - Item 'My_Home_RelayOutput' received command ON

2020-02-22 08:08:43.865 [ome.event.ItemCommandEvent] - Item 'Deh_Total_Kwh' received command 53798.633

2020-02-22 08:08:43.874 [ome.event.ItemCommandEvent] - Item 'Deh_Total_Kwh' received command 53798.633

2020-02-22 08:08:43.888 [nt.ItemStatePredictedEvent] - My_Home_RelayOutput predicted to become ON

2020-02-22 08:08:43.903 [vent.ItemStateChangedEvent] - Shellyem1VoltageBoilerDryer changed from 234 to 233

2020-02-22 08:08:43.904 [vent.ItemStateChangedEvent] - Shellyem1FactorDryer changed from 0.27 to 0.24

2020-02-22 08:08:43.904 [vent.ItemStateChangedEvent] - Shellyem1FactorBoiler changed from 0.45 to 0.44

2020-02-22 08:08:43.952 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:43.971 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:44.332 [vent.ItemStateChangedEvent] - Out_Hum changed from 40.9 to 40.8

2020-02-22 08:08:44.335 [vent.ItemStateChangedEvent] - Humidity_Out changed from 40.9 to 40.8

2020-02-22 08:08:44.472 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:44.523 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:44.565 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 18 to 16

2020-02-22 08:08:44.583 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29759 to 29761

2020-02-22 08:08:44.586 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1041 to 1022

2020-02-22 08:08:44.593 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 26.3 to 25.8

2020-02-22 08:08:44.594 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 49.2 to 50.6

2020-02-22 08:08:44.595 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 73.7 to 74.2

2020-02-22 08:08:44.599 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2915 to 2933

2020-02-22 08:08:45.026 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:45.046 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:45.550 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:45.571 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:45.631 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 16 to 14

2020-02-22 08:08:45.632 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29761 to 29763

2020-02-22 08:08:45.639 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 50.6 to 49.7

2020-02-22 08:08:45.649 [vent.ItemStateChangedEvent] - LocalComputerStorageUsedPercent changed from 99.9 to 100.0

2020-02-22 08:08:45.665 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailablePercent changed from 0.1 to 0.0

2020-02-22 08:08:46.073 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:46.089 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:46.594 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:46.628 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:46.667 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 14 to 11

2020-02-22 08:08:46.676 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29763 to 29766

2020-02-22 08:08:46.678 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1022 to 1023

2020-02-22 08:08:46.679 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 25.8 to 25.9

2020-02-22 08:08:46.682 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 74.2 to 74.1

2020-02-22 08:08:47.133 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:47.165 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:47.673 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:47.688 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:47.708 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 11 to 9

2020-02-22 08:08:47.719 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29766 to 29768

2020-02-22 08:08:47.725 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 49.7 to 50.1

2020-02-22 08:08:47.739 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2933 to 2932

2020-02-22 08:08:48.193 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:48.216 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:48.724 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:48.737 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:48.753 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 9 to 6

2020-02-22 08:08:48.759 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29768 to 29771

2020-02-22 08:08:48.774 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2932 to 2933

2020-02-22 08:08:49.243 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:49.256 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:49.405 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:49.428 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:49.762 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:49.776 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:49.791 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 6 to 4

2020-02-22 08:08:49.805 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29771 to 29773

2020-02-22 08:08:49.815 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1023 to 1022

2020-02-22 08:08:49.816 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 25.9 to 25.8

2020-02-22 08:08:49.818 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 74.1 to 74.2

2020-02-22 08:08:49.821 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2933 to 2934

2020-02-22 08:08:50.279 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:50.302 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:50.805 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:50.833 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:50.836 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 4 to 2

2020-02-22 08:08:50.842 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29773 to 29775

2020-02-22 08:08:50.846 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1022 to 1023

2020-02-22 08:08:50.849 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 25.8 to 25.9

2020-02-22 08:08:50.852 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 50.1 to 51.1

2020-02-22 08:08:50.855 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailablePercent changed from 74.2 to 74.1

2020-02-22 08:08:50.858 [vent.ItemStateChangedEvent] - LocalComputerMemoryAvailable changed from 2934 to 2933

2020-02-22 08:08:51.340 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:51.360 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:51.866 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one. to ONLINE

2020-02-22 08:08:51.879 [vent.ItemStateChangedEvent] - LocalComputerStorageAvailable changed from 2 to 0

2020-02-22 08:08:51.884 [vent.ItemStateChangedEvent] - LocalComputerStorageUsed changed from 29775 to 29777

2020-02-22 08:08:51.887 [hingStatusInfoChangedEvent] - 'hue:bridge:F295C944D43B' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Authentication failed. Remove user name from configuration to generate a new one.

2020-02-22 08:08:51.894 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsed changed from 1023 to 1022

2020-02-22 08:08:51.896 [vent.ItemStateChangedEvent] - LocalComputerMemoryUsedPercent changed from 25.9 to 25.8

2020-02-22 08:08:51.898 [vent.ItemStateChangedEvent] - LocalComputerSensorsCpuTemp changed from 51.1 to 49.2

I have tried

sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start openhab2

but nothing

login as: openhabian
openhabian@192.168.0.222's password:
Linux openhab 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Feb 22 17:35:52 2020 from 192.168.0.15

Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
/usr/local/bin/FireMotD: line 395: cannot create temp file for here-document: No                                                                              space left on device
/usr/local/bin/FireMotD: line 407: cannot create temp file for here-document: No                                                                              space left on device
/usr/local/bin/FireMotD: line 408: cannot create temp file for here-document: No                                                                              space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
/usr/local/bin/FireMotD: line 425: cannot create temp file for here-document: No                                                                              space left on device
/usr/local/bin/FireMotD: line 427: cannot create temp file for here-document: No                                                                              space left on device
/usr/local/bin/FireMotD: line 429: cannot create temp file for here-document: No                                                                              space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
/usr/local/bin/FireMotD: line 446: cannot create temp file for here-document: No                                                                              space left on device
/usr/local/bin/FireMotD: line 448: cannot create temp file for here-document: No                                                                              space left on device
/usr/local/bin/FireMotD: line 450: cannot create temp file for here-document: No                                                                              space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
Error: writing output failed: No space left on device
###############################################################################
###############  openhab  #####################################################
###############################################################################
##        Ip = 192.168.0.222
##   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 4.19.97-v7l+
##  Platform = Raspberry Pi 4 Model B Rev 1.1
##    Uptime = 2 day(s). 20:36:30
## CPU Usage = 33.75% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 2.03, 5m: 2.45, 15m: 2.31
##    Memory = Free: 1.48GB (38%), Used: 2.37GB (62%), Total: 3.86GB
##      Swap = Free: 0.09GB (100%), Used: 0.00GB (0%), Total: 0.09GB
##      Root = Free: 20.78GB (74%), Used: 7.08GB (26%), Total: 29.07GB
##   Updates = 8 apt updates available.
##  Sessions = 1 session(s)
## Processes = 130 running processes of 32768 maximum processes
###############################################################################
-bash: cannot create temp file for here-document: No space left on device
                  openHAB 2.5.1-2 (Release Build)


Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openhab:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'

[18:05:18] openhabian@openhab:~$

What do I have to do to work again.
There is a way or should I do it all over again
Thanks

The errors on your login are pretty clear. Your SD card is full. You have to have free space to run any operating system. Nothing is going to work until you free up space on the card.

@rlkoshak How could I free space.
Thanks.

Delete files. You may need to mount the SD card to another machine in order to access anything. And you need to figure out why you ran out of space. Log files? Is this machine capturing videos? Do you have a database like InfluxDB and is it’s data big? If this an undersized SD card to begin with?

@rlkoshak I have access with ssh and wibSCP
I have it installed influxDB
I have data but I’m not interested in having the server work again.

With sudo du / -h --max-depth=1 | sort -hr you can see which directory is the culprit (it may take a while to run). That will give you a starting point.

thank you @noppes123

[21:08:04] openhabian@openhab:~$ sudo du / -h --max-depth=1 | sort -hr
[sudo] password for openhabian:
du: cannot access ‘/proc/11536/task/11536/fd/3’: No such file or directory
du: cannot access ‘/proc/11536/task/11536/fdinfo/3’: No such file or directory
du: cannot access ‘/proc/11536/fd/4’: No such file or directory
du: cannot access ‘/proc/11536/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/11542’: No such file or directory
du: cannot access ‘/proc/11625’: No such file or directory
du: cannot access ‘/proc/11626’: No such file or directory
du: cannot access ‘/proc/11627’: No such file or directory
du: cannot access ‘/proc/11628’: No such file or directory
30G /
26G /var
1.7G /usr
618M /srv
393M /opt
341M /lib
287M /etc
145M /home
53M /boot
45M /root
8.4M /sbin
7.8M /bin
2.1M /run
36K /tmp
16K /lost+found
4.0K /mnt
4.0K /media
0 /sys
0 /proc
0 /dev
[21:08:14] openhabian@openhab:~$

That’s where (among other files) many log files are stored. You can dive a little deeper with sudo du /var -h --max-depth=1 | sort -hr. If it is the log directory, check which file(s) is/are the largest.

[21:16:02] openhabian@openhab:~$ sudo du /var -h --max-depth=1 | sort -hr
26G     /var/log
26G     /var
144M    /var/lib
66M     /var/cache
2.1M    /var/backups
20K     /var/spool
12K     /var/www
12K     /var/tmp
4.0K    /var/opt
4.0K    /var/mail
4.0K    /var/local
[21:16:21] openhabian@openhab:~$