InfluxDB Stopped working after Home Assistant Core: 2022.5.4 installed

also a lot of my custom elements are no longer their ?

ie)

custom element doesn't exist grid-dnd
path: default_view
title: Home
type: custom:grid-dnd


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: InfluxDB
 Scalable datastore for metrics, events, and real-time analytics
-----------------------------------------------------------
 Add-on version: 4.4.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.6  (amd64 / qemux86-64)
 Home Assistant Core: 2022.5.4
 Home Assistant Supervisor: 2022.05.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] create-users.sh: executing... 
[cont-init.d] create-users.sh: exited 0.
[cont-init.d] influxdb.sh: executing... 
[cont-init.d] influxdb.sh: exited 0.
[cont-init.d] kapacitor.sh: executing... 
[cont-init.d] kapacitor.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:17:25] INFO: Chronograf is waiting until InfluxDB is available...
[20:17:25] INFO: Kapacitor is waiting until InfluxDB is available...
[20:17:25] INFO: Starting the InfluxDB...
panic: keys must be added in sorted order: tsm1_engine,database=homeassistant,engine=tsm1,hostname=a0d7b954-influxdb,id=12,indexType=inmem,path=/data/influxdb/data/homeassistant/autogen/12,retentionPolicy=autogen,walPath=/data/influxdb/wal/homeassistant/autogen/12#!~#tsmLevel1CompactionDuration < tsmt"gine,database=homeassistant,t"ne=tsm1,hostname=a0d7b954-influxdb,id=12,indexType=inmem,path=/data/influxdb/data/homeassistant/autogen/12,retentionPolicy=autogen,walPath=/data/influxdb/wal/homeassistant/autogen/12#!~#tsmFullCompactionsActive
goroutine 314 [running]:
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*directIndex).Add(0xc00a8f0120, 0x7f70e1c6614f, 0xfc, 0x11818, 0x1, 0x16eeb9ef2162dc00, 0x16eec3051bc99800, 0xd1676, 0xc00000001e)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/writer.go:337 +0x594
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*tsmWriter).WriteBlock(0xc000848b40, 0x7f70e1c6614f, 0xfc, 0x11818, 0x16eeb9ef2162dc00, 0x16eec3051bc99800, 0x7f70e1c336ba, 0x1a, 0x442ad, 0x0, ...)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/writer.go:686 +0x1ea
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).write(0xc00a472360, 0xc000f10000, 0x44, 0x25aa640, 0xc0000cb680, 0xc008b16601, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1162 +0x287
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).writeNewFiles(0xc00a472360, 0x5, 0x2, 0xc0001e6480, 0x5, 0x8, 0x25aa640, 0xc0000cb680, 0x1, 0x25aa640, ...)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1045 +0x18f
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).compact(0xc00a472360, 0xc0001e6400, 0xc0001e6480, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:953 +0x40d
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).CompactFull(0xc00a472360, 0xc0001e6480, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:971 +0x17e
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*compactionStrategy).compactGroup(0xc000514850)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2289 +0x1c72
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*compactionStrategy).Apply(0xc000514850)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2266 +0x4d
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactFull.func1(0xc0092b22b0, 0xc0000ca780, 0xc000514850)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2235 +0x117
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactFull
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2231 +0xe8
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

If I uninstall InFlux and re-install then it works , but then I have lost my entire database …

gave up and rolled back to a backup from 2 days ago

it looks like the InFlux database got corrupted
ones the " _internal" folders were removed it worked again