Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLarge writes to stdout sometimes fail with "Resource temporarily unavailable". #4704
Comments
This comment has been minimized.
This comment has been minimized.
|
As an attempt at making this more easily reproducible, I made this pull request: It rapidly writes large buffers to stdout. Sometimes this succeeds https://travis-ci.org/cockpit-project/cockpit/jobs/77134346 and sometimes the output is truncated: https://travis-ci.org/cockpit-project/cockpit/jobs/77134347 However, the build is counted as successful, so I guess the write syscall did not actually fail. |
This comment has been minimized.
This comment has been minimized.
whitequark
commented
Oct 9, 2016
|
This bug makes the OS X worker unusable for solvespace/solvespace, without a hacky workaround that restarts the build a few times. |
This comment has been minimized.
This comment has been minimized.
|
Possibly related fix: travis-ci/osx-image-bootstrap#15 It has been deployed to the Xcode8.2 image. |
This comment has been minimized.
This comment has been minimized.
|
Can you try routing your builds to the
and let us know how it goes? |
This comment has been minimized.
This comment has been minimized.
|
I am sorry to report that we are not using Travis anymore, so it is quite difficult for me to verify this fix. Thanks a lot in any case, I really appreciate it that you didn't lose track of this, as I would have. |
This comment has been minimized.
This comment has been minimized.
whitequark
commented
Jan 16, 2017
|
I had the same issue, which broke builds about 60% of time even with automatic restart, and I've just had over five successful builds in a row. I am quite certain this is fixed. |
This comment has been minimized.
This comment has been minimized.
|
Thank you both for following up on this - we'll make sure to post more updates here as if/when this fix is extended to other XCode images :) |
This comment has been minimized.
This comment has been minimized.
Drahflow
commented
Mar 20, 2017
•
|
I'm seeing the same error on linux based builds (non-sudo), when running |
endoffile78
referenced this issue
May 14, 2017
Merged
update cmake - use find modules and pkg-config - enable static build for macOS and dmg #872
This comment has been minimized.
This comment has been minimized.
prydonius
commented
Jun 28, 2017
•
|
I've just started seeing this |
This comment has been minimized.
This comment has been minimized.
markandrus
commented
Aug 10, 2017
|
@prydonius I have not solved this, but I see |
This comment has been minimized.
This comment has been minimized.
markandrus
commented
Aug 10, 2017
|
I've tried @prydonius's workaround and it works like a charm:
Definitely something has changed—I'm not sure what, though. |
This comment has been minimized.
This comment has been minimized.
prydonius
commented
Aug 11, 2017
|
@markandrus in particular the thing that worked for me was setting |
This comment has been minimized.
This comment has been minimized.
vbraun
commented
Dec 1, 2017
|
The Turn off O_NONBLOCK:
Check whether O_NONBLOCK is set (should print "0"):
|
This comment has been minimized.
This comment has been minimized.
felker
commented
Dec 5, 2017
|
@vbraun 's post has explained the errors I have been experiencing in #8757 . In our case, it was a compilation of a C++ code with MPI that somehow caused a switch to nonblocking mode which caused subsequent compilation I am now able to reproduce the bug outside of Travis CI on my MacBook. I had not observed it locally before because the nonblocking switch requires the two compilations in our test suite to be wrapped by the same process, e.g. the |
ssanderson
added a commit
to quantopian/zipline
that referenced
this issue
Dec 15, 2017
This comment has been minimized.
This comment has been minimized.
paulcwarren
commented
Dec 16, 2017
•
|
In case it is helpful I believe I am running into this. As you can see my build have been working fine for months and all of a sudden I hit this write error. It started in this build in the last 24hrs:- https://travis-ci.org/paulcwarren/spring-content-examples/builds/316709024 Doesn't matter how often I restart either of the failing builds they fail. I am unable to ssh into the container but perhaps you can. |
This comment has been minimized.
This comment has been minimized.
j00bar
commented
Dec 18, 2017
|
Is this related to #8934? |
ssanderson
referenced this issue
Dec 18, 2017
Closed
IOError(11, 'Resource temporarily unavailable') when downloading mkl on Travis #6473
aniemetz
added a commit
to CVC4/CVC4
that referenced
this issue
Dec 19, 2017
j00bar
referenced this issue
Dec 19, 2017
Closed
Jobs fail across distros with errno 11 Resource Unavailable #8934
This comment has been minimized.
This comment has been minimized.
rainwoodman
commented
Dec 19, 2017
•
|
We are seeing this error too. Very long output lines triggers this. Reverting to |
mcflugen
referenced this issue
Dec 20, 2017
Merged
Fix "Resource temporarily unavailable" error on Travis CI #607
nkinkade
referenced this issue
Dec 20, 2017
Merged
Redirects stdout of google-cloud-sdk install process to /dev/null #21
bfirsh
added a commit
to arxiv-vanity/engrafo
that referenced
this issue
Sep 7, 2018
bfirsh
added a commit
to arxiv-vanity/engrafo
that referenced
this issue
Sep 7, 2018
hbrunn
added a commit
to OCA/runbot-addons
that referenced
this issue
Sep 14, 2018
libre-man
added a commit
to CodeGra-de/CodeGra.de
that referenced
this issue
Sep 30, 2018
olmokramer
added a commit
to CodeGra-de/CodeGra.de
that referenced
this issue
Sep 30, 2018
gsanchietti
added a commit
to NethServer/nethserver-mail
that referenced
this issue
Oct 1, 2018
gsanchietti
added a commit
to NethServer/nethserver-mail
that referenced
this issue
Oct 1, 2018
This was referenced Oct 1, 2018
jfix71
referenced this issue
Oct 1, 2018
Merged
[travis.yml] Use keep_alive() instead of travis_wait #1757
tangrammer
referenced this issue
Oct 2, 2018
Open
Travis CI stdout write error and resource temporarily unavailable workaround #1686
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Oct 10, 2018
|
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or open a new one after. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
stale
bot
added
the
stale
label
Oct 10, 2018
trws
referenced this issue
Oct 12, 2018
Merged
testsuite: improve test reliability and prepare for asan testing #1733
stale
bot
closed this
Oct 17, 2018
This comment has been minimized.
This comment has been minimized.
tnguyen14
commented
Oct 23, 2018
|
I recently encountered this while running the command to install |
This comment has been minimized.
This comment has been minimized.
mikermcneil
commented
Oct 25, 2018
|
Got here from google? Read all the things but still confused? @vbraun's answer is probably a good hint as to what's happening-- at least it was for us. Had this happen twice now on our team this year, and every time it was a node script doing funny things w/ stdout, but the impact not being seen until later in the build script (e.g. when doing |
This comment has been minimized.
This comment has been minimized.
samvv
commented
Dec 14, 2018
|
@vbraun I know these issues shouldn't be used to thank people, but really you saved my day. I would never have found the issue if it weren't for you |
groovecoder
referenced this issue
Feb 5, 2019
Closed
Debug Travis IOError: [Errno 11] Resource temporarily unavailable #739
CryptoCentric
added a commit
to absolute-community/absolute-archive
that referenced
this issue
Feb 12, 2019
luisg123v
added a commit
to vauxoo-dev/runbot-addons
that referenced
this issue
Feb 15, 2019
This comment has been minimized.
This comment has been minimized.
bwheatley
commented
Feb 18, 2019
Those 3 lines saved me banging my head against a wall due to a similar node issue. Thank you. <3 |
mjhea0
pushed a commit
to PyColorado/44CON-CFP
that referenced
this issue
Feb 20, 2019
This comment has been minimized.
This comment has been minimized.
aaqaishtyaq
commented
Mar 15, 2019
|
Hey, Is there any fix for |
mvollmer commentedAug 24, 2015
We are happily using Travis but now we seem to be crossing some limit somwhere that causes make to fail with a mysterious "write error".
This is an example: https://travis-ci.org/cockpit-project/cockpit/jobs/76976494
The write error seems to happen when make writes a long command to stdout in large pieces, and the write syscall fails with EAGAIN. In one case, it made two syscalls with about 6000 bytes followed by about 500 bytes. I am not super sure about the details as debugging this from my end is a bit hard.
I think stdout/stderr is connected to a pty, so maybe that has something to do with it.
I don't have a simple reproducer yet but I can try to make one if that helps.
As a workaround, we are piping the build output through this program: https://github.com/mvollmer/cockpit/blob/69ae5e0c6ae82b0c5824aa088edd608ba9633fe2/tools/careful-cat.c