public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* httpd/sshd will not start due to "failed to create proxy mutex" error
@ 2016-04-21  7:16 Matt Gregory
  2016-04-26  1:19 ` Matt Gregory
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Gregory @ 2016-04-21  7:16 UTC (permalink / raw)
  To: cygwin

I can't remember if I've ever set up Apache on Cygwin before, but I'm
trying to do so now and I'm not getting anywhere.

I'm trying to install them as services and it's not working.

I'm trying to run these commands in an administrator shell:

$ cygrunsrv -I httpd -p /usr/sbin/httpd

(The service successfully installs.  I mean, I can see cygserver and
httpd in services.msc.  cygserver is running)

$ cygrunsrv -S httpd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

$ cat /var/log/httpd/error_log
[Wed Apr 20 20:02:39.734289 2016] [core:emerg] [pid 604] (88)Function
not implemented: AH00023: Couldn't create the proxy mutex
[Wed Apr 20 20:02:39.735010 2016] [proxy:crit] [pid 604] (88)Function
not implemented: AH02478: failed to create proxy mutex
AH00016: Configuration Failed

I've tried uninstalling, rebooting, and reinstalling httpd with no luck.

I've recently upgraded from cygwin32 to cygwin64.  Well, they're both
installed, and my home directory is still in the 32-bit C:\cygwin.  I
believe I've got everything else pointing to cygwin64.  I didn't
actually move anything from C:\cygwin to C:\cygwin64, I just did a
clean install of 64 alongside 32.  Everything else is working great
except for trying to run the httpd and sshd servers.

I'm on Windows 10 Home version.  Maybe Bill Gates' business acumen is
preventing me from running a server on a home version?

Thanks for any clues,
Matt

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: httpd/sshd will not start due to "failed to create proxy mutex" error
  2016-04-21  7:16 httpd/sshd will not start due to "failed to create proxy mutex" error Matt Gregory
@ 2016-04-26  1:19 ` Matt Gregory
  2018-05-27 14:30   ` sin_vraal
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Gregory @ 2016-04-26  1:19 UTC (permalink / raw)
  To: cygwin

I fixed it!  I don't know if the fix is any good, but the server
starts and serves pages.  The key was this Mutex directive:

https://httpd.apache.org/docs/current/mod/core.html#mutex

I wound up adding this to my httpd.conf:

> Mutex posixsem proxy

I don't know if "posixsem" is the right choice, but it seems to work.
All of the choices have warnings that make them all sound horrible:
dizzyness, depression, erectile dysfunction...but we're going to try
this.  I'm just developing on my local system, anyway.

Cheers,
Matt

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: httpd/sshd will not start due to "failed to create proxy mutex" error
  2016-04-26  1:19 ` Matt Gregory
@ 2018-05-27 14:30   ` sin_vraal
  0 siblings, 0 replies; 4+ messages in thread
From: sin_vraal @ 2018-05-27 14:30 UTC (permalink / raw)
  To: cygwin

I ended up having a similar problem with mod_rewrite. tapping in, in the
event someone else needs the assist.

>in httpd.conf: LoadModule rewrite_module modules/mod_rewrite.so
>error_log:  Function not implemented: AH00023: Couldn't create the
rewrite-map mutex


I solved with "Mutex flock:/etc/httpd/conf/mutex rewrite-map"

I've elected to use the 'flock' instead of 'file' or 'fcntl' simply b/c I
dont know what 'best' is for 'file' and fcntl in theory has a listed
problem, although unlikely.

I tested posixsem as well, and it works. although it says

apache documentation on mutex wrote
> Warning
> The semaphore ownership is not recovered if a thread in the process
> holding the mutex segfaults, resulting in a hang of the web server.

That does not sound appealing to me, thus flock.



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: httpd/sshd will not start due to "failed to create proxy mutex" error
@ 2016-12-09  1:38 shu
  0 siblings, 0 replies; 4+ messages in thread
From: shu @ 2016-12-09  1:38 UTC (permalink / raw)
  To: cygwin

Hi , i am using "Mutex sem"

if i using Mutex posixsem proxy, came out 2 errors:
1 .watchdog-callback (fixed by using Mutex sem)
2. Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm
loaded (fixed by uncomments conf file )

I fixed it!  I don't know if the fix is any good, but the server
starts and serves pages.  The key was this Mutex directive:

https://httpd.apache.org/docs/current/mod/core.html#mutex

I wound up adding this to my httpd.conf:

> Mutex posixsem proxy

I don't know if "posixsem" is the right choice, but it seems to work.
All of the choices have warnings that make them all sound horrible:
dizzyness, depression, erectile dysfunction...but we're going to try
this.  I'm just developing on my local system, anyway.

Cheers,
Matt

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-27 10:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21  7:16 httpd/sshd will not start due to "failed to create proxy mutex" error Matt Gregory
2016-04-26  1:19 ` Matt Gregory
2018-05-27 14:30   ` sin_vraal
2016-12-09  1:38 shu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).