-
Notifications
You must be signed in to change notification settings - Fork 118
bnbcli does not close the open file handle #51
Comments
Could provide more information about how to reproduce this issue? |
Hi everybody. Just come here to open the same issue. I tried to scan blockchain on own fullnode. But after gettings ~100 blocks I got error:
Steps to reproduce
Example how to request:
|
Can you try again with increased system setting about maximum open files? Usually, by default, its value is 1024. You can try with 10240. |
@HaoyangLiu Yep. I will try (but I think it will increase number of blocks which I can get before crash). I will try soon - when I will restore my node. I'm getting now another issue (after restart crashed node)
|
Thanks. Now it works fine. Processed >50K blocks already. |
If you encounter appHash conflict issue, please check your configuration in |
@HaoyangLiu I tried setting system's maximum open files to 65535, but the process's max open files is 1024, Limit Soft Limit Hard Limit Units |
The way it appears is the same as ruslansalikhov |
Maybe your setting was not correct. Please refer to this document |
The bnbcli will throw "too many files".
goroutine 1 [running]:
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/libs/db.(*goLevelDBIterator).assertNoError(0xc003ce0b90)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/libs/db/go_level_db.go:332 +0x60
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/libs/db.(*goLevelDBIterator).Valid(0xc003ce0b90, 0x114c238)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/libs/db/go_level_db.go:267 +0x3e
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite.(*DBProvider).LatestFullCommit(0xc000076e00, 0x7ffd8a41ae5c, 0x14, 0x9ea8d9, 0x9ea8d9, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite/dbprovider.go:117 +0x38b
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite.(*multiProvider).LatestFullCommit(0xc00223ec00, 0x7ffd8a41ae5c, 0x14, 0x9ea8d9, 0x9ea8d9, 0xc000014c80, 0x0, 0x0, 0x0, 0x0, ...)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite/multiprovider.go:51 +0xe1
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite.(*DynamicVerifier).Verify(0xc003ce0a00, 0xc0043874a0, 0xc000014c80, 0x0, 0x0)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite/dynamic_verifier.go:95 +0x110
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite/proxy.GetCertifiedCommit(0x9ea8d9, 0x1154d00, 0xc0009c9400, 0x11413a0, 0xc003ce0a00, 0xd792a0, 0xc0000a9080, 0xd792a0, 0xc0000a9080)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/lite/proxy/query.go:139 +0x124
github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/context.CLIContext.Verify(0xc00019aee0, 0x0, 0x1154d00, 0xc0009c9400, 0x113e580, 0xc00000e018, 0x0, 0x7ffd8a41ae78, 0x15, 0x0, ...)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/context/query.go:187 +0x66
github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/tx.ValidateTxResult(0xc00019aee0, 0x0, 0x1154d00, 0xc0009c9400, 0x113e580, 0xc00000e018, 0x0, 0x7ffd8a41ae78, 0x15, 0x0, ...)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/tx/query.go:91 +0x77
github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/tx.queryTx(0xc00019aee0, 0xc00019aee0, 0x0, 0x1154d00, 0xc0009c9400, 0x113e580, 0xc00000e018, 0x0, 0x7ffd8a41ae78, 0x15, ...)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/tx/query.go:72 +0x43b
github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/tx.QueryTxCmd.func1(0xc0009406c0, 0xc000341a40, 0x1, 0x7, 0x0, 0x0)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/cosmos/cosmos-sdk/client/tx/query.go:36 +0x199
github.com/binance-chain/node/vendor/github.com/spf13/cobra.(*Command).execute(0xc0009406c0, 0xc0003418f0, 0x7, 0x7, 0xc0009406c0, 0xc0003418f0)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/spf13/cobra/command.go:698 +0x47a
github.com/binance-chain/node/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1a68d80, 0x24, 0xc0004740ac, 0xf2276b)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/spf13/cobra/command.go:783 +0x2dc
github.com/binance-chain/node/vendor/github.com/spf13/cobra.(*Command).Execute(0x1a68d80, 0x1, 0xc00000ebf8)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/spf13/cobra/command.go:736 +0x2b
github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/libs/cli.Executor.Execute(0x1a68d80, 0x107cdf0, 0x2, 0xf116f5)
/bnchome/src/github.com/binance-chain/node/vendor/github.com/tendermint/tendermint/libs/cli/setup.go:89 +0x4e
main.main()
/bnchome/src/github.com/binance-chain/node/cmd/bnbcli/main.go:102 +0x5dd
The text was updated successfully, but these errors were encountered: