Skip to content

altimate-dbt execute fails with EMFILE: too many open files, watch on macOS #500

@saravmajestic

Description

@saravmajestic

On macOS, altimate-dbt execute fails with EMFILE: too many open files, watch even when the macOS maxfiles limit is raised to 65536 via sudo launchctl limit maxfiles 65536 200000 and ulimit -n 65536.

The error originates from the internal Node.js file watcher inside altimate-dbt, not from dbt itself. Running dbt show --inline directly works perfectly.

Steps to reproduce:

  1. macOS with dbt-duckdb project
  2. Run altimate-dbt execute --query "SELECT 1 AS test" --limit 1
  3. Error: { "error": "EMFILE: too many open files, watch" }

Workaround: Run dbt show --inline directly.

The file watcher in altimate-dbt appears to be opening too many file descriptors regardless of the system limit. This may be related to watching dbt_packages/ which contains 443 macros and many files.


Metadata

Field Value
CLI Version 0.5.13
Platform darwin
Architecture arm64
OS Release 24.6.0
Category bug
Working Directory dbt_project
Session ID ses_2d2c1a524ffebQTMqSMFDpjWkG

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrom-cliFeedback submitted via CLIuser-feedbackFeedback submitted by users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions