gruntjs / gruntjs/grunt

Fatal error: EBADF: bad file descriptor, close

Open
#1,669 0 comments 0 reactions 0 assignees View on GitHub
Type: Question
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

After this error message:
> Fatal error: EBADF: bad file descriptor, close

the current task stops instantly even of there are other things ot do for that task, without other details on issue and grunt quits.
The time elapsed report is printed (so it is not an abrupt exit).

Task prints its progress with progress bar from `progress` with render throttling applied.

The code of task (files upload loop with progress) works fine if called outside grunt by a standard node script with same files list supplied.

node 6.16.0
npm 6.1.0
tried latest grunt and grunt 0.4.0 with grunt-cli.

Contributor guide

Open the contributing guide

Research direction

No repository file or test is identified. Start by reproducing the task's upload loop under the listed Node.js versions, comparing Grunt execution with the standalone Node script and the `progress` bar's throttled rendering. Done means the EBADF failure is explained and the task no longer stops before completing its remaining work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.