Influx does not start due to Out of Memory (Fatal Error)

Environment:

  • Raspberry PI 4 with 4 GB mem.
  • InfluxDB ver 1.8.10
  • index-version = “tsi1"

Issue:
Influx always crashes on startup and keeps trying to restart.

Jul 1 16:34:20 influxd-systemd-start.sh[6388]: ts=2022-07-01T14:34:20.452790Z lvl=info msg=“Reading file” log_id=0bQYkhrW000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/_internal/monitor/1230/_00500.wal size=418824
Jul 1 16:34:20 influxd-systemd-start.sh[6388]: runtime: out of memory: cannot allocate 8192-byte block (594509824 in use)
Jul 1 16:34:20 influxd-systemd-start.sh[6388]: fatal error: out of memory
Jul 1 16:34:20 influxd-systemd-start.sh[6388]: goroutine 32 [running]:

What can I do to make Influx start properly without this memory error?

I think you just can’t unless you add more RAM, even temporarily just to be able to start it up and delete some data.
The other option is to edit the DB “offline”, the only official option I know is to use the Influx_inspect_utility

Honestly, I’m not aware of other commands or utils to delete data offline, I had a look around and saw this kind of issue several times, lots of suggestions but not confirmed solution.
You may want to have a look at this post and have a look around for more

How can I add more RAM?

Googled it… you can’t…