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
APR_TCP_DEFER_ACCEPT error when starting Apache2 #1953
Comments
The TCP_DEFER_ACCEPT socket option is not natively supported by Windows. WSL team are working with Windows networking team on this issue, but fix likely won't make it in RS3. Doesn't block Apache2 from starting, just a warning. Pile-on below if otherwise. |
Thanks @bitcrazed for reporting the issue. Your analysis above seems spot on. |
Add the following line to the end of the /etc/apache2/apache2.conf file:
|
If you have this warning after enabling SSL (https), just add the following line to the end of the file :
Keep in mind that this would just hide errors. |
I have added both
|
Hello, I have added
This worked on start, however, when I give restart it continues with the same error. |
@bitcrazed is there an issue somewhere open for the fix that can be tracked / voted on or is this it? Applications based on Apache Thrift currently do not work on WSL due to TCP_DEFER_ACCEPT not being available, eg. MapD
|
This is one of the main issues tracking this problem, so please subscribe to this issue if you're interested in future progress. @tara-raj will triage with the team and get back to you. |
Hi @tara-raj, has there been any progress on this issue internally? |
This is another one that should have been stubbed to do nothing back in 2016 (like every GNU/FOSS |
@therealkenc there does indeed appear to be a way to configure Apache to work around it, however, it's not Apache specific. |
That's rhetorical also. Identifying other use-cases here is always good. Or at least, it never hurts. |
Yes, although the fact that MapD (OmniSci) does not work due to Apache Thrift not working because of this is not rhetorical |
Add |
Is there plan to fix this? |
@lion-wang based on the lack of response from MS it appears unlikely, but who knows. While it has been pointed out that it's possible in some cases to change a configuration flag and in other cases to recompile to work around this issue, both of those options (especially the second) come with their own potential issues so supporting this on the MS side would still be preferable (aside from the efficiency of fixing in one place (WSL) instead of every dependent project having to do so). |
Since these seem to be de rigueur this week
Totally untested; I haven't run it even once. But that should get you there without having to recompile. |
Thanks @therealkenc this is great, we are going to try this as a workaround. (the point remains though - |
Same problem here... |
Well it did not seem to have made it to 1903 |
@thevictor13 I suppose there's a possibility that "Full System Call Compatibility" will fix this issue (although, what do I know?) in WSL2: https://devblogs.microsoft.com/commandline/announcing-wsl-2/. This may be (part of) the reason this issue has not had any love from MS. |
Hmm, makes sense. Thanks for the link! I'll keep an eye on it. |
Just updated to WSL2 and no more error. |
For those as dumb as I am:
|
Yeah, make as @BenMorel said, if you have Windows 10 Build 18917 or higher. Other requirements. |
unknown command : --set-version |
|
AcceptFilter https none |
Your Windows build number: (Type
ver
at a Windows Command Prompt)15063
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
Starting Apache2 with:
Following error message is displayed:
The text was updated successfully, but these errors were encountered: