Git Product home page Git Product logo

Comments (8)

luzianscherrer avatar luzianscherrer commented on August 13, 2024

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.

prasannavl avatar prasannavl commented on August 13, 2024

Thanks for this report. Working on a fix for this.
Temporary workaround: Snapshots below height 3943543 should work as expected.

from ain.

prasannavl avatar prasannavl commented on August 13, 2024

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.

luzianscherrer avatar luzianscherrer commented on August 13, 2024

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.

prasannavl avatar prasannavl commented on August 13, 2024

Interesting. Thanks. I'll leave this up-to someone with darwin expertise to look at.

from ain.

prasannavl avatar prasannavl commented on August 13, 2024

Unlikely that the node is using up 61440+ open files, unless some resource isn't released properly occurring only in darwin.

from ain.

prasannavl avatar prasannavl commented on August 13, 2024

Is this still an issue? It doesn't seem to be reproduce-able in-team from what I gathered.

from ain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.