Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Error: EAGAIN: resource temporarily unavailable, write #38

Closed
sebasrodriguez opened this issue May 10, 2016 · 9 comments
Closed

Error: EAGAIN: resource temporarily unavailable, write #38

sebasrodriguez opened this issue May 10, 2016 · 9 comments

Comments

@sebasrodriguez
Copy link

This error started to appear when updated to node 6.0

It appears randomly when executing a large set of tests.

This is the full stack of the error:

Error: EAGAIN: resource temporarily unavailable, write
    at Error (native)
    at Function.fs.writeSync (fs.js:786:18)
    at /Users/srodriguez/test_project/node_modules/karma/lib/reporters/base.js:51:7
    at Array.forEach (native)
    at write (/Users/srodriguez/test_project/node_modules/karma/lib/reporters/base.js:50:19)
    at flushLogs (/Users/srodriguez/test_project/node_modules/karma-teamcity-reporter/index.js:129:14)
    at getLog (/Users/srodriguez/test_project/node_modules/karma-teamcity-reporter/index.js:117:12)
    at specSkipped (/Users/srodriguez/test_project/node_modules/karma-teamcity-reporter/index.js:84:20)
    at onSpecComplete (/Users/srodriguez/test_project/node_modules/karma/lib/reporters/base.js:76:12)
    at .<anonymous> (/Users/srodriguez/test_project/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:106:13)
    at emit (events.js:191:7)
    at onResult (/Users/srodriguez/test_project/node_modules/karma/lib/browser.js:216:13)
    at Socket.<anonymous> (/Users/srodriguez/test_project/node_modules/karma/lib/events.js:13:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at Socket.onevent (/Users/srodriguez/test_project/node_modules/socket.io/lib/socket.js:335:8)
    at Socket.onpacket (/Users/srodriguez/test_project/node_modules/socket.io/lib/socket.js:295:12)
    at Client.ondecoded (/Users/srodriguez/test_project/node_modules/socket.io/lib/client.js:193:14)
    at Decoder.Emitter.emit (/Users/srodriguez/test_project/node_modules/component-emitter/index.js:134:20)
    at Decoder.add (/Users/srodriguez/test_project/node_modules/socket.io-parser/index.js:247:12)
    at Client.ondata (/Users/srodriguez/test_project/node_modules/socket.io/lib/client.js:175:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Socket.onPacket (/Users/srodriguez/test_project/node_modules/engine.io/lib/socket.js:101:14)
    at emitOne (events.js:96:13)
    at WebSocket.emit (events.js:188:7)
    at WebSocket.Transport.onPacket (/Users/srodriguez/test_project/node_modules/engine.io/lib/transport.js:104:8)
@sipayRT
Copy link

sipayRT commented Jun 17, 2016

the same problem with node v4.3

@eGavr
Copy link

eGavr commented Jun 21, 2016

ping :)

@septemptus
Copy link

Same issue on 5.11.1

@aallanic
Copy link

What version of karma-teamcity-reporter are you using? Seems some errors were fixed in the latest versions.

@jamesots
Copy link

I'm getting this same error, using these versions:

"karma": "1.2.0",
"karma-cli": "1.0.1",
"karma-coverage": "1.1.1",
"karma-jasmine": "0.1.6",
"karma-phantomjs-launcher": "0.1.4",
"karma-teamcity-reporter": "2.0.0"

I'm using node 6.4.0 and CentOS 5.11.

@jamesots
Copy link

I found this repo which reproduces the error: https://github.com/vlki/karma-teamcity-reporter-node6-error - however, I had to increase the number of tests in test.js significantly before the error happened on my machine, although with 8000 or so tests it is failing consistently for me.

If I use karma-teamcity-reporter 0.1.2 then the error goes away (this is before writeSync started being used in d8d9e70).

@yarandoo
Copy link

Same error is reproducing for:

"karma-teamcity-reporter": "1.0.0" node:5.10.1

We have over 2500 tests, and the error happens randomly.

Downgrading to karma-teamcity-reporter 0.1.2 have fixed the issue. (Which is relying in the standard write mechanism from Karma. process.stdout.write)

ilya-g added a commit to JetBrains/kotlin that referenced this issue Apr 4, 2017
Also create html page to run tests interactively in browser.

Use karma-teamcity-reporter 0.1.2 to workaround karma-runner/karma-teamcity-reporter#38
ilya-g added a commit to JetBrains/kotlin that referenced this issue Apr 6, 2017
Also create html page to run tests interactively in browser.

Use karma-teamcity-reporter 0.1.2 to workaround karma-runner/karma-teamcity-reporter#38
ilya-g added a commit to JetBrains/kotlin that referenced this issue Apr 6, 2017
Also create html page to run tests interactively in browser.

Use karma-teamcity-reporter 0.1.2 to workaround karma-runner/karma-teamcity-reporter#38
ilya-g added a commit to JetBrains/kotlin that referenced this issue Apr 6, 2017
Also create html page to run tests interactively in browser.

Use karma-teamcity-reporter 0.1.2 to workaround karma-runner/karma-teamcity-reporter#38
ilya-g added a commit to JetBrains/kotlin that referenced this issue Apr 6, 2017
Also create html page to run tests interactively in browser.

Use karma-teamcity-reporter 0.1.2 to workaround karma-runner/karma-teamcity-reporter#38

(cherry picked from commit 325ebfb)
ilya-g added a commit to JetBrains/kotlin that referenced this issue Apr 6, 2017
Also create html page to run tests interactively in browser.

Use karma-teamcity-reporter 0.1.2 to workaround karma-runner/karma-teamcity-reporter#38

(cherry picked from commit 325ebfb)
@ilya-g
Copy link

ilya-g commented Apr 27, 2017

Is it possible to introduce some retry logic in case if EAGAIN is encountered?
Something like how readSync is implemented here https://github.com/isaacs/node-graceful-fs/blob/v4.1.11/polyfills.js#L134

@sharikovvladislav
Copy link

+1
ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants