New install database corruption

Tags: #<Tag:0x00007f3274b7c7a0>

This is a new install HassOS on Rpi4 4g booting from ssd everything up to date. Everything seems to be working fine. History will display but there is nothing in the home-assistant_v2db file except this error msg:

utf-8' codec can't decode byte 0xc1 in position 99: invalid start byte

Also there is another db file: config/home-assistant_v2.db.corrupt.2021-02-21T20:26:29.599934+00:00 with the contents: File not Found

I have tried deleting both but, when I reboot, they reappear the same.

I have installed influxdb and set some conditions in recorder. Could these cause problems?

This is the only error I get in the log, seems unrelated:

21-02-21 20:02:14 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.***:64021 ssl:default [Connect call failed ('172.30.***', 64021)]

It appears to be related to recorder:
2021-02-21 15:26:29 ERROR (Recorder) [homeassistant.components.recorder.util] The system will rename the corrupt database file //config/home-assistant_v2.db to //config/home-assistant_v2.db.corrupt.2021-02-21T20:26:29.599934+00:00 in order to allow startup to proceed

Not sure what the issue is. The yaml validates.