Rules created with Rule Engine "gone" but the json file for them still exists in the jsondb folder

Rules created with Rule Engine “gone” (“No rules defined yet.”) but the json file for them still exists in the jsondb folder).

I just upgraded my openhabian to the latest openhab version and after the upgrade/update the rules section in the Paper UI is showing No rules defined yet.

What can I do to fix it ?

Have you rebooted since the upgrade?

sudo systemctl stop openhab2

sudo reboot

I am rebooting right now.

Lets see if that works.

I found this thread: Experimental Rules Engine - How to delete or recover rules from OH2.3 (stable) within OH2.4 (stable)

Did the format of the rules change ?

Not sure.

Did you make a backup before upgrading?

There was a change in the rule format:

NEW FORMAT:

  "1f09b532-f457-4552-9df9-92d12bc9d502": {
    "class": "org.eclipse.smarthome.automation.dto.RuleDTO",
    "value": {
      "triggers": [
        {
          "id": "1",
          "label": "it is a fixed time of day",
          "description": "Triggers at a specified time",
          "configuration": {
            "time": "00:30"
          },
          "type": "timer.TimeOfDayTrigger"
        }
      ],
      "conditions": [],
      "actions": [
        {
          "inputs": {},
          "id": "2",
          "label": "send a command",
          "description": "Sends a command to a specified item.",
          "configuration": {
            "itemName": "WlanSteckdose1_Switch",
            "command": "OFF"
          },
          "type": "core.ItemCommandAction"
        }
      ],
      "configuration": {},
      "configDescriptions": [],
      "uid": "1f09b532-f457-4552-9df9-92d12bc9d502",
      "name": "T1",
      "tags": [],
      "visibility": "VISIBLE",
      "description": "T2"
    }
  }

OLD FORMAT:

 "rule_2": {
    "class": "org.eclipse.smarthome.automation.Rule",
    "value": {
      "triggers": [
        {
          "id": "1",
          "label": "it is a fixed time of day",
          "description": "Triggers at a specified time",
          "configuration": {
            "properties": {
              "time": "00:30"
            }
          },
          "type": "timer.TimeOfDayTrigger"
        }
      ],
      "conditions": [],
      "actions": [
        {
          "id": "2",
          "label": "send a command",
          "description": "Sends a command to a specified item.",
          "configuration": {
            "properties": {
              "itemName": "WlanSteckdose1_Switch",
              "command": "OFF"
            }
          },
          "type": "core.ItemCommandAction"
        }
      ],
      "configuration": {
        "properties": {}
      },
      "configDescriptions": [],
      "uid": "rule_2",
      "name": "Timer Steckdose - Garten - Ausschalten",
      "tags": [],
      "description": "Ausschalten zu gegebener Zeit"
    }
  }

Is there any way to automatically convert the old rules to the new format ?