# InfluxDB 2.0 logging continuous error

**URL:** <https://community.influxdata.com/t/influxdb-2-0-logging-continuous-error/23662>\
**Category:** InfluxDB 2\
**Tags:** influxdb, performance\
**Created:** [February 3, 2022, 4:30am UTC](https://community.influxdata.com/t/influxdb-2-0-logging-continuous-error/23662 "2022-02-03T04:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkataraman.n](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@venkataraman.n](https://community.influxdata.com/u/venkataraman.n)\
**Post date:** [February 3, 2022, 4:30am UTC](https://community.influxdata.com/t/influxdb-2-0-logging-continuous-error/23662/1 "2022-02-03T04:30:27Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![Jay\_Clifford](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jay_clifford/32/8287_2.png) [@Jay\_Clifford](https://community.influxdata.com/u/Jay_Clifford)\
**Post date:** [February 3, 2022, 10:05am UTC](https://community.influxdata.com/t/influxdb-2-0-logging-continuous-error/23662/2 "2022-02-03T10:05:54Z")

</div>

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

```auto
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](https://linuxhint.com/permanently_set_ulimit_value/)
