InfluxDB 2.0 logging continuous error

Hi, I have been facing an error since this week in my InfluxDB OSS 2.0 setup with modbus plugin in Telegraf 1.19.

Error writing snapshot {“log_id”: “0ZQm8qhW000”, “service”: “storage-engine”, “engine”: “tsm1”, “error”: “error opening new segment file for wal (1): write /home/user/.influxdbv2/engine/wal/3c0c881f1c6c5309/autogen/251/_00135.wal: file already closed”}

On searching the community, I found a solution that said we need to increase the “ulimit” in our Linux setup from 1024 to 65536.
How do we update the ulimit value in the influx?
I get this error when I try to write 65536 to ulimit.
“bash: ulimit: open files: cannot modify limit: Operation not permitted”

Hi @venkataraman.n,
This ulimit normally requires root privilege. Could you try running the command with sudo?

sudo ulimit -n 65536

Note if I remember correctly you might need to modify the config file directly to make sure the file limit is permanent after a reboot. How to Set ulimit Value Permanently