While opening memtables error: while opening fid: 1 error: while updating skiplist error: while truncate file: /tmp/badger/00001.mem, error: truncate /tmp/badger/00001.mem: invalid argument

I have not set read only = false, but I assume this should be default as it is DB, there is 1 or 10 out of 100 chances that someone uses it for the read-only.

Edit:
I have set the ReadOnly=false now, But can’t find “truncate” option in “options.go” file, my badger version is v3.2011.1, am I missing something?

Thanks