Skip to content

Mempool WAL is still created by default in home directory, leads to permission errors #2717

@Thunnini

Description

@Thunnini

Tendermint version (use tendermint version or git rev-parse --verify HEAD if installed from source):
v0.25.0

ABCI app (name for built-in, URL for self-written if it's publicly available):
kvstore

Environment:

  • OS (e.g. from /etc/os-release): Windows 10 Home

What happened: Error happened when started
panic: Panicked on a Sanity Check: Error opening Mempool wal file: file: [.tendermint\data\mempool.wal/wal]
expected file permissions: -rw-------, got: -rw-rw-rw-

goroutine 1 [running]:
github.com/tendermint/tendermint/libs/common.PanicSanity(0xd38000, 0xc001e84080)
C:/Users/yunjh/go/src/github.com/tendermint/tendermint/libs/common/errors.go:224 +0xbf
github.com/tendermint/tendermint/mempool.(*Mempool).InitWAL(0xc001d36e60)
C:/Users/yunjh/go/src/github.com/tendermint/tendermint/mempool/mempool.go:221 +0x160
github.com/tendermint/tendermint/node.NewNode(0xc00020f320, 0x1036d80, 0xc0001a1c20, 0xc000838ec0, 0x102a800, 0xc0001529c0, 0xc0008390f0, 0xf75368, 0xc000839100, 0x1035800, ...)

Anything else we need to know:
This was solved by annotating this line.

return errors.NewErrPermissionsChanged(file.Name(), fileInfo.Mode(), autoFilePerms)

return tmerrors.NewErrPermissionsChanged(f.Name(), keyPerm, fInfo.Mode())

It seems to be related to this.

Metadata

Metadata

Assignees

Labels

T:bugType Bug (Confirmed)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions