question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server disconnected unexpectedly.

See original GitHub issue

After updating Buck https://github.com/facebook/buck/compare/996fc3c1f0c6415477cbbf76aea005286dc4d6ab...02e709184fbd0534817c1e73f7db71b13093e4dd I’m observing CI build errors with following log:

[ERROR][buck.py:173] Server disconnected unexpectedly: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File ".okbuck/cache/buck_binary/buck-d6c66ee7d0.pex/programs/buck.py", line 147, in <module>
  File ".okbuck/cache/buck_binary/buck-d6c66ee7d0.pex/programs/buck.py", line 134, in main
  File ".okbuck/cache/buck_binary/buck-d6c66ee7d0.pex/programs/buck_tool.py", line 408, in launch_buck
    if running_version != buck_version_uid or not self._is_buckd_running():
  File ".okbuck/cache/buck_binary/buck-d6c66ee7d0.pex/programs/buck_tool.py", line 615, in _is_buckd_running
    c.send_command('ng-stats')
  File ".okbuck/cache/buck_binary/buck-d6c66ee7d0.pex/pynailgun/ng.py", line 438, in send_command
    NailgunException.CONNECTION_BROKEN)
NailgunException: Server disconnected unexpectedly: [Errno 104] Connection reset by peer

Our Buck CI job makes few sequential buck invocations, this particular one is buck project and build fails pretty consistently on this stage.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
artem-zinnatullincommented, Aug 1, 2018

Short update, cherry-picking following commits fixed this issue

(append facebook/buck/commit):

  • e1d4e585b93e8cf5cb10d4c788af5a354f892bc4 Upgrade Nailgun and tune daemon integration tests
  • d01f49fd4d0e929d182b0e45bda5de9ba870dad3 Improve daemon termination by hard killing a process
  • 3f53c4853ba7d79215c36ed9ac3abb48aa7a33a2 Add CONNECTION_BROKEN Nailgun exception to fail buckd presence check
  • 58a9e88a689484a3ecf333c4bc59cf938b11f31e update Nailgun (fix broken pipe problem)
0reactions
artem-zinnatullincommented, Nov 20, 2018

Forgot to close the issue back then, sorry

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Server[1] disconnected unexpectedly" when inspecting ...
"Server[1] disconnected unexpectedly" when inspecting python-pptx XML element in VS Code #2083. bersbersbers opened this issue on Feb 12, ...
Read more >
Outlook IMAP or POP server unexpectedly terminated the ...
“Your server unexpectedly terminated the connection. Possible causes include server problems, network problems, or a long period of ...
Read more >
Unexpectedly disconnecting - English Support
Unexpectedly disconnecting · Close other applications that may be taking up your bandwidth. · Switch to a wired connection. · Restart your router ......
Read more >
The SMTP server has unexpectedly disconnected
1 Answer 1 ... That exception doesn't mean that the username or password is wrong, it means you lost your TCP/IP connection with...
Read more >
The SMTP server has unexpectedly disconnected - Activities
Hey, i always get this error when i try to send an Mail with the Send SMTP Mail Message Activity. What could be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found