Closed
Description
Logging this issue here as information for others. Issue is benign and can be ignored.
-
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:
$ sudo service apache2 restart
- What's wrong / what should be happening instead:
Following error message is displayed:
* Restarting Apache httpd web server apache2
[Tue Apr 18 18:50:52.618691 2017] [core:warn] [pid 546:tid 140453865195392] (92)Protocol not available:
AH00076: Failed to enable APR_TCP_DEFER_ACCEPT
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
bitcrazed commentedon Apr 19, 2017
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.
sunilmut commentedon Apr 19, 2017
Thanks @bitcrazed for reporting the issue. Your analysis above seems spot on.
namiltd commentedon Apr 19, 2017
Add the following line to the end of the /etc/apache2/apache2.conf file:
AcceptFilter http none
Jduret commentedon Sep 6, 2017
If you have this warning after enabling SSL (https), just add the following line to the end of the file :
AcceptFilter https none
Keep in mind that this would just hide errors.
JunaidQadirB commentedon Jan 28, 2018
I have added both
http
andhttps
AcceptFilter https none
AcceptFilter http none
solracfirst commentedon May 28, 2018
Hello,
I have added
This worked on start, however, when I give restart it continues with the same error.
jp-harvey commentedon Aug 23, 2018
@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
Thrift: Thu Aug 23 10:41:00 2018 TServerSocket::listen() setsockopt() TCP_DEFER_ACCEPT Protocol not available
#1953 (comment)
bitcrazed commentedon Aug 23, 2018
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.
13 remaining items
thevictor13 commentedon May 30, 2019
Well it did not seem to have made it to 1903
jp-harvey commentedon May 30, 2019
@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.
thevictor13 commentedon May 31, 2019
Hmm, makes sense. Thanks for the link! I'll keep an eye on it.
Superdrac commentedon Jun 26, 2019
Just updated to WSL2 and no more error.
BenMorel commentedon Sep 4, 2019
Still have it on WSL 2.Scratch that. I hadn't converted the distro.For those as dumb as I am:
vintprox commentedon Sep 24, 2019
Yeah, make as @BenMorel said, if you have Windows 10 Build 18917 or higher. Other requirements.
Otherwise you have an option to ignore warning.
bluepioupiou commentedon Oct 2, 2020
unknown command : --set-version
rawr51919 commentedon Feb 28, 2021
diveshc22 commentedon Feb 5, 2022
AcceptFilter https none
AcceptFilter http none