Skip to content

APR_TCP_DEFER_ACCEPT error when starting Apache2 #1953

Closed
@bitcrazed

Description

@bitcrazed
Contributor

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

Activity

bitcrazed

bitcrazed commented on Apr 19, 2017

@bitcrazed
ContributorAuthor

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

sunilmut commented on Apr 19, 2017

@sunilmut
Member

Thanks @bitcrazed for reporting the issue. Your analysis above seems spot on.

namiltd

namiltd commented on Apr 19, 2017

@namiltd

Add the following line to the end of the /etc/apache2/apache2.conf file:

AcceptFilter http none

Jduret

Jduret commented on Sep 6, 2017

@Jduret

If you have this warning after enabling SSL (https), just add the following line to the end of the file :

/etc/apache2/apache2.conf

AcceptFilter https none

Keep in mind that this would just hide errors.

JunaidQadirB

JunaidQadirB commented on Jan 28, 2018

@JunaidQadirB

I have added both http and https

AcceptFilter https none
AcceptFilter http none

solracfirst

solracfirst commented on May 28, 2018

@solracfirst

Hello,

I have added

AcceptFilter https none
AcceptFilter http none

This worked on start, however, when I give restart it continues with the same error.

jp-harvey

jp-harvey commented on Aug 23, 2018

@jp-harvey

@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)

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.

bitcrazed

bitcrazed commented on Aug 23, 2018

@bitcrazed
ContributorAuthor

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

thevictor13 commented on May 30, 2019

@thevictor13

Well it did not seem to have made it to 1903

jp-harvey

jp-harvey commented on May 30, 2019

@jp-harvey

@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

thevictor13 commented on May 31, 2019

@thevictor13

Hmm, makes sense. Thanks for the link! I'll keep an eye on it.

Superdrac

Superdrac commented on Jun 26, 2019

@Superdrac

Just updated to WSL2 and no more error.

BenMorel

BenMorel commented on Sep 4, 2019

@BenMorel

Still have it on WSL 2. Scratch that. I hadn't converted the distro.

For those as dumb as I am:

wsl --set-version Ubuntu 2
vintprox

vintprox commented on Sep 24, 2019

@vintprox

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

bluepioupiou commented on Oct 2, 2020

@bluepioupiou

set-version

unknown command : --set-version

rawr51919

rawr51919 commented on Feb 28, 2021

@rawr51919

set-version

unknown command : --set-version

Yeah, make as @BenMorel said, if you have Windows 10 Build 18917 or higher. Other requirements.
Otherwise you have an option to ignore warning.

diveshc22

diveshc22 commented on Feb 5, 2022

@diveshc22

AcceptFilter https none
AcceptFilter http none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @JunaidQadirB@bitcrazed@odeciojunior@Jduret@BenMorel

      Issue actions

        APR_TCP_DEFER_ACCEPT error when starting Apache2 · Issue #1953 · microsoft/WSL