OH3.0.0M5 logging stopped after RPi4 memory card ran full

My RPi4 memory card ran full and obviously logging stopped.
After freeing up space, I cannot get it to start logging again. (rebooted several times).

sudo journalctl complained about premature end of /var/lib/openhab/etc/log4j2.xml
It was 0 bytes in size so I tried deleting it.

My log dir:

pi@raspberrypi:~ $ ll /var/log/openhab/
total 8
drwxr-xr-x  2 openhab openhab 4096 Dec  8 23:53 .
drwxr-xr-x 12 root    root    4096 Dec  9 00:09 ..
-rw-r--r--  1 openhab openhab    0 Oct 18 01:59 audit.log
-rw-r--r--  1 openhab openhab    0 Dec  8 23:53 events.log
-rw-r--r--  1 openhab openhab    0 Dec  8 23:40 openhab.log
-rwxr-xr-x  1 openhab openhab    0 Dec  6 16:45 Readme.txt
pi@raspberrypi:~ $

I’m using the normal apt-get install with no ZRAM.

Any ideas how I can revive logging?

  version: 3.0.0.M5
  buildString: Milestone Build
locale: en_US
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVendor: Raspbian
  osName: Linux
  osVersion: 5.4.79-v7l+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 19659728
  totalMemory: 112197632
  - astro
  - deconz
  - exec
  - harmonyhub
  - hue
  - kodi
  - network
  - yamahareceiver
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1.25
    prefersColorScheme: dark
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 8
    language: en-GB
      - en-GB
      - en
      - nb-NO
      - nb
      - en-US
      - sv
      - no
    onLine: true
    platform: Win32
    width: 3072
    height: 1728
    colorDepth: 24
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
    dark: dark
    filled: true
    pageTransitionAnimation: default
    bars: light
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/87.0.4280.88 Safari/537.36
timestamp: 2020-12-08T23:30:31.217Z

There is likely file corruption on the SD Card filesystem.

It would likely be best to reformat the car, reinstall, and restore from your backup.

Backup?? :wink:
No biggie, just a test system. Probably easiest to do as you suggest.


Ha, this worked:

sudo apt-get purge openhab
sudo apt-get install openhab

Lost everything, which wasn’t much, but logging is back. :slight_smile: