Comments (8)
When running without the -daemon
flag I get the following on stdout:
2024-05-01T21:14:53Z [ain_evm::services] Starting tokio waiter
thread '<unnamed>' panicked at 'Error initializating handlers: RocksDBError(Error { message: "IO error: While open a file for random read: /Users/.../defichain/data/evm/indexes/002540.sst: Too many open files" })', ain-evm/src/services.rs:69:46
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
libc++abi: terminating with uncaught foreign exception
Abort trap: 6
And with RUST_BACKTRACE=1
:
2024-05-01T21:14:53Z [ain_evm::services] Starting tokio waiter
thread '<unnamed>' panicked at 'Error initializating handlers: RocksDBError(Error { message: "IO error: While open a file for random read: /Users/.../defichain/data/evm/indexes/002540.sst: Too many open files" })', ain-evm/src/services.rs:69:46
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: ain_evm::services::Services::new
4: <ain_evm::services::SERVICES as core::ops::deref::Deref>::deref
5: _cxxbridge1$ain_rs_init_core_services
6: __ZZ11AppInitMainR14InitInterfacesENK3$_8clEv
7: __Z11AppInitMainR14InitInterfaces
8: _main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
libc++abi: terminating with uncaught foreign exception
Abort trap: 6
And the full stack backtrace from RUST_BACKTRACE=full
:
0: 0x101cd99d2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h9b8c7d4986eea143
1: 0x101b2fd6b - core::fmt::write::h745c6d87d2702197
2: 0x101cb2c2e - std::io::Write::write_fmt::h9bc75e1a1578f329
3: 0x101cdde6a - std::sys_common::backtrace::print::hb5816525719dec2d
4: 0x101cdda65 - std::panicking::default_hook::{{closure}}::hfc88b82ae9ab0222
5: 0x101cdea48 - std::panicking::rust_panic_with_hook::hc7199b95a24a631d
6: 0x101cde544 - std::panicking::begin_panic_handler::{{closure}}::h29c0dd87214757f4
7: 0x101cde4a9 - std::sys_common::backtrace::__rust_end_short_backtrace::hd299ff4177db45a7
8: 0x101cde492 - _rust_begin_unwind
9: 0x1024b8d43 - core::panicking::panic_fmt::h8b25e6b7bc9d8aa4
10: 0x1024b91d5 - core::result::unwrap_failed::h3575be054108b8be
11: 0x101977942 - ain_evm::services::Services::new::h746261e301da3d6e
12: 0x1019815c4 - <ain_evm::services::SERVICES as core::ops::deref::Deref>::deref::h39d5cc5a5c2ea470
13: 0x101881535 - _cxxbridge1$ain_rs_init_core_services
14: 0x1011da361 - __ZZ11AppInitMainR14InitInterfacesENK3$_8clEv
15: 0x1011d4b96 - __Z11AppInitMainR14InitInterfaces
16: 0x10117ede1 - _main
libc++abi: terminating with uncaught foreign exception
Abort trap: 6
Regarding open files:
$ sysctl kern.maxfiles
kern.maxfiles: 122880
$ sysctl kern.maxfilesperproc
kern.maxfilesperproc: 61440
from ain.
Thanks for this report. Working on a fix for this.
Temporary workaround: Snapshots below height 3943543 should work as expected.
from ain.
Edit: Conflated issues. This seems to be related to open files in darwin.
Your kernel max count seems OK, but not sure if it's being used up by other applications. Could you try increasing or so?
from ain.
Your kernel max count seems OK, but not sure if it's being used up by other applications. Could you try increasing or so?
There is nothing else running on this machine, its only purpose is running the MN. I've switched to the Linux version in Docker as a workaround which is working fine (same machine).
from ain.
Interesting. Thanks. I'll leave this up-to someone with darwin expertise to look at.
from ain.
Unlikely that the node is using up 61440+ open files, unless some resource isn't released properly occurring only in darwin.
from ain.
Is this still an issue? It doesn't seem to be reproduce-able in-team from what I gathered.
from ain.
Related Issues (20)
- getLogs broken in 4.0.7 "Bincode error" HOT 5
- Ocean: Transaction indexing HOT 2
- History for Vault Withdraw not correct on tiny amounts HOT 1
- eth_estimateGas fails on empty address HOT 12
- node crashes and corrupts DB on heavy usage HOT 17
- getaccount regression
- Tracer tracker HOT 1
- Zertificate of the webpage https://api.defichain.io/v1/stats is no more valid HOT 2
- "refreshing UTXOs" never finishes in ver. 4.0.9 HOT 1
- Mixed vaults may not convert their vault to DUSD-only collateral with active loans. HOT 1
- Defichain desktop wallet for windows only gets to splash screen, then stops HOT 1
- EVM token split: intrinsic.migrateToken does not create tokentransfers HOT 2
- Non-upgradeable proxy contract HOT 1
- EVM: Deploy smart contract with salt and bytecode not possible! HOT 3
- EVM: token transfers on stock split (upgradeToken) misses inflow HOT 1
- 4.1.0 defid.exe crashes on Windows HOT 7
- Testnet Seeds in Code out of date HOT 1
- 4.1.0 fails by using non existing default path HOT 1
- block.timestamp is not strictly ascending HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ain.