Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

setup_inherited_listeners(), WSASocket failed BUGZILLA 31765
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Apache2Triad Bugs
View previous topic :: View next topic  
Author Message
jani



Joined: 11 Mar 2004
Posts: 8

Posted: Sun Apr 17, 2005 8:35 pm    Post subject: setup_inherited_listeners(), WSASocket failed BUGZILLA 31765  

This is from the apache error log:

[Sun Apr 17 14:19:52 2005] [notice] Server built: Feb 10 2005 06:11:34
[Sun Apr 17 14:19:52 2005] [notice] Parent: Created child process 452
[Sun Apr 17 14:19:52 2005] [notice] Child 452: Child process is running
[Sun Apr 17 14:19:52 2005] [crit] (OS 10022)An invalid argument was supplied. : Child 452: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sun Apr 17 14:19:53 2005] [error] Parent: child process exited with status 3 -- Aborting.
[Sun Apr 17 14:19:53 2005] [notice] Apache/2.0.53 (Win32) PHP/4.3.11 configured -- resuming normal operations

What does that mean? No applications are runnig in the background - no firewall, no antivirus no automatic updates. I wanna try to start it on my localhost at home - WinXP Home( SP2, all the updates downloaded). Everything works fine except the apache. Any hints?

Thanks.
Back to top  
Joshua Meadows (DemoRic)



Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

Posted: Sun Apr 17, 2005 8:47 pm    Post subject:  

There is usually 2 things that will prevent apache from starting. Something already listening on a port, or a misconfigured httpd.conf

See what ports you have in use (check for something listening on port 80):
start -> run -> cmd.exe
and then type: netstat -an
Back to top  
jani



Joined: 11 Mar 2004
Posts: 8

Posted: Sun Apr 17, 2005 9:02 pm    Post subject:  

Thanks Demoric.. Here is what I got after typing: netstat - an

Active connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 Listening
TCP 0.0.0.0:445 0.0.0.0:0 Listening
TCP 127.0.0.1:3306 0.0.0.0:0 Listening
TCP 192.168.0.3:139 0.0.0.0:0 Listening
TCP 192.168.0.3:1635 216.239.53.99:80 Established
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:1026 *:*
UDP 0.0.0.0:1295 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1031 *:*
UDP 127.0.0.1:1900 *:*
UDP 192.168.0.3:123 *:*
UDP 192.168.0.3:137 *:*
UDP 192.168.0.3:138 *:*
UDP 192.168.0.3:1900 *:*

Can you make anything out of it?

Well then. I just uninstalled whatever version I had had and dowlnoaded version 1.4.1 again - just to make sure... Now the fresh new installation of A2T on my comp produces the same httpd.conf file (plus there is another httpd.default.conf file). I did not touch/change anything - and Apache doesn't work. I can still read in the error log:

[Mon Apr 18 17:14:58 2005] [notice] Server built: Feb 10 2005 06:11:34
[Mon Apr 18 17:14:59 2005] [notice] Parent: Created child process 564
[Mon Apr 18 17:15:06 2005] [notice] Child 564: Child process is running
[Mon Apr 18 17:15:06 2005] [crit] (OS 10022)An invalid argument was supplied. : Child 564: setup_inherited_listeners(), WSASocket failed to open the inherited socket.

I do not want to post the httpd. conf file again because is too long - but if you think I should do so just let me know..
Thanks.
Back to top  
Slo



Joined: 22 Mar 2005
Posts: 42
Location: New Jersey USA

Posted: Tue Apr 19, 2005 6:19 pm    Post subject:  

jani wrote: Thanks Demoric.. Here is what I got after typing: netstat - an

Active connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 Listening
TCP 0.0.0.0:445 0.0.0.0:0 Listening
TCP 127.0.0.1:3306 0.0.0.0:0 Listening
TCP 192.168.0.3:139 0.0.0.0:0 Listening
TCP 192.168.0.3:1635 216.239.53.99:80 Established
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:1026 *:*
UDP 0.0.0.0:1295 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1031 *:*
UDP 127.0.0.1:1900 *:*
UDP 192.168.0.3:123 *:*
UDP 192.168.0.3:137 *:*
UDP 192.168.0.3:138 *:*
UDP 192.168.0.3:1900 *:*

Can you make anything out of it?
Thank you :)

I looked at this again and see an established connection to port :80... Being not to smart,I believe this is your problem and 80 is not responding to your A2T....


Quote: Which ports need to be opened for running VPN

A: PPTP VPN uses TCP Port 1723, IP Protocol 47 (GRE); L2TP: UDP Port 1701; IPSec: UDP Port 500, Pass IP protocol 50 and 51. Note: 47 is a protocol number and not TCP port. The protocol name is GRE. It'll make a big difference when configuring your firewall or router.


I have NO experience with VPN,but I would forward the VPN ports in your router...

Maybe someone here can chime in or go to a VPN forum...

Slo...
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 1539

Posted: Tue Apr 19, 2005 8:57 pm    Post subject:  

Quote: TCP 192.168.0.3:1635 216.239.53.99:80 Established

Explanation
PROTOCOL LocalIp:LocalPort RemoteIp:RemotePort STATE

So you see all he was doing was accessing a http port of a remote server (google) , there is nothing listening on port 80 locally

Windows is a extremely complex operating system , maybe the most complex of them all
Quote: [Sun Apr 17 14:19:52 2005] [crit] (OS 10022)An invalid argument was supplied. : Child 452: setup_inherited_listeners(), WSASocket failed to open the inherited socket. means that a mere uninstall reinstall of something including the OS might not cut it , should do a format and clean install of the OS

Furthermore this is a critical apache error that does not exist in the apache bugzilla so it should be taken with the apache developers

There are 2 more things that usually stop apache from running demoric , apache bugs , and windows bugs , and there is never a shortage of the later
Back to top  
Joshua Meadows (DemoRic)



Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

Posted: Tue Apr 19, 2005 9:30 pm    Post subject:  

Quote: There are 2 more things that usually stop apache from running demoric , apache bugs...
Usually the monster is in the details of setup, but like all software bugs do arise.

Quote: ...and windows bugs , and there is never a shortage of the later
That's no joke!

*****

I've searched around and found that there is software out there that replaces winsock.dll, and that the other implementation causes WSASocket failed to open the inherited socket errors. (you might also consider changing wsock32n.dl too)

Try replacing the one on your system with the one from your xp disk, if that doesn't work pm me, and I'll send you a copy of mine.
Back to top  
jani



Joined: 11 Mar 2004
Posts: 8

Posted: Wed Apr 20, 2005 9:07 pm    Post subject:  

Sorry for the late reply - you may not believe that - but I just took 2 days off (+ weekend) from my job - just to finish that damn issue.. There are so many peole out there running the apache server on Win XP with SP2 - it just drives me crazy!
So I uninstalled SP2 - of course everything went down the drain - no monitor, no sound support plus a couple of "error" messages - I did not care. I started my apache server - and bingooo, it worked! But hold the phone here.. I could see both apache programs running in the task monitor (steady memory allocation) - I could swear the apache was all right - but when I tried to access the localhost (or http://127.0.0.1) no page appeared (you know that white window "The page cannot be displayed"). On the other hand the internet connection worked fine - I could browse any pages from yahoo or google and so on... I guess - probably by uninstalling SP2 I had stopped or crashed some system services needed for runnig a localhost server.. I am not sure. But I did not touch neither httpd.conf nor .htaccess file..
Now I am back with my SP2 as I need to have my comp in a good shape. I am trying to find and replace the winsock.dll file as advised by Demoric.
I will let you know soon.

Ok - I replaced both winsock32.dll and wsock32.dll files - nothing has changed.
I tried to close all interent explorer windows then start apache again - let it running in the background and in the meantime I retrieved netstat data again - see the picture below.

Thanks guys for your devotion..

:idea:


:) :D :lol: :arrow: Woooow! Here we go!! Am I dreaming? It RUNS! It WORKS now - a fairy tale! Lala-lili-lele - dragoste, inima mia!
I am soooo happyyyyyyy!!!
I'll let you know soon, guys, let me finish testing .. :)
Back to top  
Joshua Meadows (DemoRic)



Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

Posted: Fri Apr 22, 2005 8:01 pm    Post subject:  

So, is it fixed now? If it is what do you think fixed it?
Back to top  
jani



Joined: 11 Mar 2004
Posts: 8

Posted: Fri Apr 22, 2005 9:45 pm    Post subject:  

Ok, I am back. Now it seems ridiculous to me but of course it's easy to say after "the battle is won" :). So what I did was just unchecking the "Enable LMHOSTS Lookup" box in my TCP/IP protocol setup (under WINS setting). That's all the magic. Hopefully it's gonna help to everybody who's got the same problem..
Thank you guys for your support and time - I wouldn't have found the "snag" without your advices and hints. :)
Thanks once again..
Back to top  
cromaclear



Joined: 26 Oct 2003
Posts: 3

Posted: Sun Mar 19, 2006 2:46 am    Post subject: setup_inherited_listeners(), WSASocket failed BUGZILLA 31765  

Hello!
I installed A2T 1.5.4 for the first time on this windows box, and i cant seem to find a way to start the Apache service.
Every other service starts perfectly, including Mysql, but Apache and Apache SSL wont start and when i try to manualy i get an error telling:
"The Apache2Triad Apache2 Service service on Local Computer started and then stopped. Some services stop automatically i they have no work to do, for example the Performance Logs and Alerts service."
I rebooted again just in case, but still didnt work.
I have nothing running on ports 80 nor on port 443.
Im running a Windows XP Pro English box.
I tryied changing the apache config file to listen on the 8080 port to see if it was a problem regarding used ports but no, same problem.
I turned of the windows firewall, and still the same problem.

Heres the error log:
Quote:
[Sat Mar 18 23:35:02 2006] [notice] Apache/2.2.0 (Win32) PHP/5.1.2 configured -- resuming normal operations
[Sat Mar 18 23:35:02 2006] [notice] Server built: Dec 11 2005 20:34:33
[Sat Mar 18 23:35:02 2006] [notice] Parent: Created child process 1972
[Sat Mar 18 23:35:02 2006] [notice] Child 1972: Child process is running
[Sat Mar 18 23:35:02 2006] [crit] (OS 10022)An invalid argument was supplied. : Child 1972: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sat Mar 18 23:35:02 2006] [crit] Parent: child process exited with status 3 -- Aborting.


Each time i tryed i got the same error logs.
Im not running any server, and i A2T is the first package with servers i instaled on this box.

Anyone can help me?

Thanks in advance.
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 1539

Posted: Sun Mar 19, 2006 9:34 am    Post subject:  

STATUS BUGZILLA
see http://issues.apache.org/bugzilla/show_bug.cgi?id=31765 for fix and info
Back to top  
cromaclear



Joined: 26 Oct 2003
Posts: 3

Posted: Sun Mar 19, 2006 2:23 pm    Post subject:  

Thanks Vlad!
I just unchecked the "Enable LMHOSTS Lookup", and now everything is workig perfectly!
Keep up the great work!
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Apache2Triad Bugs
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group