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.

Windows Subsystem for Linux "Could not set timeout on TCP stream: [Errno 92] Protocol not available"

See original GitHub issue

distributed/comm/tcp.py gives the warning “Could not set timeout on TCP stream: [Errno 92] Protocol not available” when spawning workers using Windows Subsystem for Linux as it expects “TCP_USER_TIMEOUT” to work – and it doesn’t appear to in WSL. I have created an issue over here: https://github.com/Microsoft/WSL/issues/3873 as I think this is an OS type issue, but I just wanted to bring it up over here to discuss workarounds/proper documentation. Currently it appears (though I’m having trouble confirming conclusively) that this allows worker processes to be orphaned following exceptions, and while some get cleaned up with the message "distributed.comm.tcp - WARNING - Closing dangling stream in <TCP local=tcp://127.0.0.1:46476 remote=tcp://127.0.0.1:46457> " many others remain running after the program has terminated.

What can we do to mitigate this or how do we better document this limitation?

Host OS: Windows 10.0.17134.619 Container OS: Ubuntu 18.04.2 LTS

jwilson@M:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.version()
'#523-Microsoft Mon Dec 31 17:49:00 PST 2018'
>>> import sys
>>> sys.platform
'linux'

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aidanmontare-educommented, Jun 23, 2020

That’s cool!

I’m considering upgrading to WSL 2, the only problem is that I store all my files in the Windows system, and the FAQ from Microsoft says that version 2 doesn’t have great performance across file systems.

1reaction
JSKenyoncommented, Aug 26, 2019

#2802 has been closed for now, but it would be particularly awesome if the distributed scheduler could work under WSL. Unfortunately, I lack the expertise to be of much assistance. Did you manage to find a workaround @jwilson8767?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Server socket.error: [Errno 92] Protocol not available
In the server code, could you comment (or remove) the following line: s.setsockopt(socket.AF_INET, socket.SOCK_STREAM, 1).
Read more >
Teleport Changelog | Teleport Docs
1. This release of Teleport contains a security fix and multiple bug fixes. Block SFTP in Moderated Sessions. Teleport did not block SFTP...
Read more >
PDF - Beej's Guide to Network Programming
But what I can say is that after a decade-plus of not using Microsoft OSes ... thing that you should strongly consider is...
Read more >
Networking Guide Red Hat Enterprise Linux 7
The Red Hat Enterprise Linux 7 Networking Guide documents relevant information regarding the configuration and administration of network interfaces, ...
Read more >
Maintenance and Troubleshooting Guide - Oracle Help Center
Oracle Corporation and its affiliates will not be responsible for any loss, ... fell below a set threshold, because a timeout occurred, or...
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