InfluxDB Stopped working after Home Assistant Core: 2022.5.4 installed

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


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] 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] exited 0.
[cont-init.d] executing... 
[cont-init.d] exited 0.
[cont-init.d] executing... 
[cont-init.d] exited 0.
[cont-init.d] executing... 
[cont-init.d] exited 0.
[cont-init.d] executing... 
[cont-init.d] exited 0.
[cont-init.d] executing... 
[cont-init.d] 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]:*directIndex).Add(0xc00a8f0120, 0x7f70e1c6614f, 0xfc, 0x11818, 0x1, 0x16eeb9ef2162dc00, 0x16eec3051bc99800, 0xd1676, 0xc00000001e)
	/go/src/ +0x594*tsmWriter).WriteBlock(0xc000848b40, 0x7f70e1c6614f, 0xfc, 0x11818, 0x16eeb9ef2162dc00, 0x16eec3051bc99800, 0x7f70e1c336ba, 0x1a, 0x442ad, 0x0, ...)
	/go/src/ +0x1ea*Compactor).write(0xc00a472360, 0xc000f10000, 0x44, 0x25aa640, 0xc0000cb680, 0xc008b16601, 0x0, 0x0)
	/go/src/ +0x287*Compactor).writeNewFiles(0xc00a472360, 0x5, 0x2, 0xc0001e6480, 0x5, 0x8, 0x25aa640, 0xc0000cb680, 0x1, 0x25aa640, ...)
	/go/src/ +0x18f*Compactor).compact(0xc00a472360, 0xc0001e6400, 0xc0001e6480, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/ +0x40d*Compactor).CompactFull(0xc00a472360, 0xc0001e6480, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
	/go/src/ +0x17e*compactionStrategy).compactGroup(0xc000514850)
	/go/src/ +0x1c72*compactionStrategy).Apply(0xc000514850)
	/go/src/ +0x4d*Engine).compactFull.func1(0xc0092b22b0, 0xc0000ca780, 0xc000514850)
	/go/src/ +0x117
created by*Engine).compactFull
	/go/src/ +0xe8
[cont-finish.d] executing container finish scripts...
[cont-finish.d] executing... 
[cont-finish.d] 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