2021-02-25 07:27:36.611 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'mariadb'
2021-02-25 07:27:36.613 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'system-1' failed: cannot invoke method public abstract org.openhab.core.types.State org.openhab.core.persistence.HistoricItem.getState() on null in system
Well, the message is plain enough.
I guess your default persistence service is set to ‘mariadb’, perhaps an inheritance of upgrade from OH2?
You can correct that, or override it in your rule ...historicState( (time stuff), "jdbc") ...