I receive the error "WSADuplicateSocket failed for socket 3117432" on starting Apache httpd- 2.0. Starting the version 1.3 on the same machine with corresponding .conf file does work without any problem. There is neither a firewall not a vpn or any other software blocking the port installed.
Exactly which version of Windows?
The Windowsversion is W2000 Pro 5.00.2195 SP2 German Version
This happens also on Win2000 Pro 5.00.2195 SP2 English The error log it creates everytime when started: [Thu Apr 11 15:22:04 2002] [notice] Parent: Created child process 108 [Thu Apr 11 15:22:04 2002] [notice] Child 108: Child process is running [Thu Apr 11 15:22:05 2002] [crit] (32538)An operation was attempted on something that is not a socket. : Parent: WSADuplicateSocket failed for socket 3439784. Check the FAQ. [Thu Apr 11 15:22:05 2002] [crit] (32538)An operation was attempted on something that is not a socket. : master_main: create child process failed. Exiting. [Thu Apr 11 15:22:05 2002] [crit] (22609)The pipe has been ended. : setup_inherited_listeners: Unable to read socket data from parent [Thu Apr 11 15:22:05 2002] [notice] Parent: Forcing termination of child process 3447184 The socket changes sometimes but is always something around 3440000.
But what is strange is that the socket failing is always in my error log 7400 smaller than the child process? (above 3447184-3439784=7400)
*** Bug 8185 has been marked as a duplicate of this bug. ***
I have exactly the same problem with Apache 2.0.35 under WinXP, both with and without the McAfee firewall installed, and the WinXP firewall disabled. Happens both launching it from 'services' loaded on startup, or from the command line. Same error log structure: [Wed Apr 17 19:23:07 2002] [notice] Parent: Created child process 1636 [Wed Apr 17 19:23:08 2002] [notice] Child 1636: Child process is running [Wed Apr 17 19:23:08 2002] [crit] (32538)An operation was attempted on something that is not a socket. : Parent: WSADuplicateSocket failed for socket 3308112. Check the FAQ. [Wed Apr 17 19:23:08 2002] [crit] (32538)An operation was attempted on something that is not a socket. : master_main: create child process failed. Exiting. [Wed Apr 17 19:23:08 2002] [crit] (22609)The pipe has been ended. : setup_inherited_listeners: Unable to read socket data from parent [Wed Apr 17 19:23:08 2002] [notice] Parent: Forcing termination of child process 3315552
We have an experimental fix committed to 2.0.36-dev that will appear in the next release. It will only affect some flavors of this problem on Windows NT, 2K or XP (the solution will not work for 9x.) I will likely post a test binary late tonight and advise folks to give it a try before we incorporate in the forthcoming 2.0.36 rollout.
If you would like to verify the fix, you may download http://www.apache.org/~wrowe/apache-2.0.36-dev-04-17-1800Z.zip Unpack this zip file into the apache installed 2.0.35 directory. This is an interim build - please don't expect third party modules to load whatsoever. It's version is neither .35 nor the final .36.
Look's like the fix is working.
Yes, the patch works for me too. Thanks!
patch works! amazing. Thank you
er - oops. Spoke too soon. I lock up immediately after with: [Fri Apr 19 10:48:28 2002] [notice] Parent: Created child process 2452 [Fri Apr 19 10:48:29 2002] [notice] Child 2452: Child process is running [Fri Apr 19 10:48:29 2002] [notice] Child 2452: Acquired the start mutex. [Fri Apr 19 10:48:29 2002] [notice] Child 2452: Starting 10 worker threads. [Fri Apr 19 10:48:29 2002] [error] (32538)An operation was attempted on something that is not a socket. : winnt_accept: AcceptEx failed. Attempting to recover. Probably a separate problem; I've logged it as bug# 8325
Please DO NOT reopen this bug, this issue is resolved. Other issues such as WinSock compatibility don't belong tracked in this bug. bug# 8325 is tracking winnt_accept: AcceptEx failed. Attempting to recover. Thanks testers!