Java-Error parse at startup OH3

  • Platform information:

  • Hardware: _CPUArchitecture/RAM/storage
    Raspberry Pi 4 Model B Rev 1.2

    • OS: _what OS is used and which version
      Linux PI4-01 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
    • Java Runtime Environment:
      openjdk version “11.0.12” 2021-07-20 LTS
      OpenJDK Runtime Environment Zulu11.50+19-CA (build 11.0.12+7-LTS)
      OpenJDK Client VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode)_
    • openHAB version: 3.10
  • Issue of the topic:
    After a system upgrade with openhabian-config OH3 did not start. There is a parse-error. I do not know where. Before den system upgrade OH3 runs without problems. Can anyone help me?

Output systemctl:
openhabian@PI4-01:~ $ sudo /bin/systemctl status openhab.service
● openhab.service - openHAB instance, reachable at http://PI4-01:8080
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-24 09:36:35 CEST; 1s ago
Docs: Introduction | openHAB
https://community.openhab.org
Process: 4931 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=254)
Main PID: 4931 (code=exited, status=254)

Output sudo journalctl -e -u openhab.service:
Sep 24 13:10:09 PI4-01 systemd[1]: Started openHAB instance, reachable at http://PI4-01:8080.
Sep 24 13:10:11 PI4-01 karaf[2193]: null
Sep 24 13:10:11 PI4-01 karaf[2193]: Error occurred shutting down framework: java.lang.NumberFormatException: null
Sep 24 13:10:11 PI4-01 karaf[2193]: java.lang.NumberFormatException: null
Sep 24 13:10:11 PI4-01 karaf[2193]: at java.base/java.lang.Integer.parseInt(Integer.java:614)
Sep 24 13:10:11 PI4-01 karaf[2193]: at java.base/java.lang.Integer.parseInt(Integer.java:770)
Sep 24 13:10:11 PI4-01 karaf[2193]: at org.apache.karaf.main.ConfigProperties.(ConfigProperties.java:251)
Sep 24 13:10:11 PI4-01 karaf[2193]: at org.apache.karaf.main.Main.updateInstancePidAfterShutdown(Main.java:232)
Sep 24 13:10:11 PI4-01 karaf[2193]: at org.apache.karaf.main.Main.main(Main.java:197)
Sep 24 13:10:11 PI4-01 systemd[1]: openhab.service: Main process exited, code=exited, status=254/n/a
Sep 24 13:10:11 PI4-01 systemd[1]: openhab.service: Failed with result ‘exit-code’.

Nothing helps, so I go the hard way. Backup, purge and installation openhab with restore. Now it runs with all settings

Follow steps help:
• Backup and store in an other directory
• sudo apt purge openhab
• sudo apt install openhab
• sudo /bin/systemctl start openhab.service
• sudo /bin/systemctl status openhab.service
• Setup with GUI
• Backup
• Restore the backup from first step
• sudo /bin/systemctl start openhab.service
• sudo /bin/systemctl status openhab.service