-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash on Ubuntu on Windows - bind unix socket failed. #2137
Comments
@sinojelly - I don't have cmake, so compiled it with g++ and ran it; it made a file named And then... I compiled test code from http://osr507doc.sco.com/es/netguide/dusockT.code_samples.html . It looked working well too. Hmm... Do you use anti-virus? Sometimes.... anti-virus makes strange things in WSL. |
@sinojelly - Thanks for reporting the issue and the detailed repro steps. I was able to repro the issue. The problem seems to be in the bind operation of unix sockets in @sunjoong - Thanks for chiming in. The reason you were not able tor repro it is probably because you were trying it in 'LxFS |
@sinojelly - I did not notice that's happened in |
Marking this as a bug is cool, but are you really considering supporting this? I mean that would be balls, but... really?? You've got the same problem with say block/character device inodes ( |
@therealkenc - The underlying issue here is that DrvFs does not has support for metadata. There are other scenarios (some, you have listed) that are blocked behind the same problem. If we want to provide compatibility for running Linux apps on DrvFS, this will be needed. |
Awesome. I didn't know that was even on the table. Notwithstanding no-promises on timeframe caveats of course. |
I'm running Docker on Windows (by connecting the linux version to the windows daemon), and one of the containers I'm trying to run needs to create a unix socket. It's running into the same error, so I'm assuming the containers are being run on DrvFs. Is there a workaround or way for me to set the containers to run in a way that it can create unix sockets? |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Your Windows build number: (Type
ver
at a Windows Command Prompt)Microsoft Windows [版本 10.0.15063]
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
I want to bind socket in my program , compile and run it, it complains "bind: Operation not permitted".
But the same program run ok on Ubuntu.
main.cpp content is:
CMakeLists.txt content is:
commands:
cd socket-test
cmake .
make
./main
What's wrong / what should be happening instead:
It should not complains "bind: Operation not permitted".
Strace of the failing command, if applicable: (If
<cmd>
is failing, then runstrace -o strace.txt -ff <cmd>
, and post the strace.txt output here)See attached files.
strace.txt
The text was updated successfully, but these errors were encountered: