public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: httpd-2.4.23 notice "No slotmem from mod_heartmonitor"
@ 2016-08-04 23:43 Dominic.R.Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Dominic.R.Jones @ 2016-08-04 23:43 UTC (permalink / raw)
  To: cygwin

>> Activating mod_slotmem_shm (as a shared module) resolved this issue and
>> allowed httpd to start.  However, httpd now produces the following notice
>> on (successful) startup:
>> 
>>     [Mon Jul 25 09:27:40.718810 2016] [lbmethod_heartbeat:notice] [pid2345] 
>> AH02282: No slotmem from mod_heartmonitor
>> 
>> I'm wondering if there changes to the static modules included in the new
>> version's package.  The changelog for httpd itself didn't suggest any changes
>> between these two versions that would cause configuration differences.

I was able to eliminate the notice by adding --disable-lbmethod-heartbeat to CYGCONF_ARGS in the .cygport file.  Looking up the notice in the package's source code, it appears that the lbmethod_heartbeat module is attempting to use shared memory (slotmem) created by the heartmonitor module (using the slotmem_shm module) and failing, thus producing the notice.  While this notice appears to be nonfatal, I wonder if it would pose a problem if actually using proxy load balancing; the lbmethod_heartbeat module provides one of four algorithms available for proxy load balancing and may not work properly.

Interestingly, this issue does not appear under the previous version, 2.4.20, of the httpd package.  Comparing the .cygport files for 2.4.20 and 2.4.23 shows that the only difference is the value of VERSION.  Also, 2.4.23 now requires the slotmem_shm module (either static or shared) whereas 2.4.20 did not.  It appears that there may have been an upstream change resulting in this issue.  However, reviewing the changelog for httpd itself (versions 2.4.21 through 2.4.23) didn't reveal any apparently relevant changes.

Experimenting with my previous thought that other modules may need to be compiled as static, instead of shared, modules didn't resolve the issue.

As noted above, disabling the lbmethod_heartbeat module removes the notice.  This action doesn't address the root problem for someone who wants to use this proxy load balancing algorithm, but it should prevent accidental use of an algorithm that may be functioning improperly.


-----

Dominic R. Jones, Ph.D.

--
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-2.4.23 notice "No slotmem from mod_heartmonitor"
@ 2016-07-26 19:18 Dominic.R.Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Dominic.R.Jones @ 2016-07-26 19:18 UTC (permalink / raw)
  To: cygwin

>> Activating mod_slotmem_shm (as a shared module) resolved this issue and
>> allowed httpd to start.  However, httpd now produces the following notice
>> on (successful) startup:
>> 
>>     [Mon Jul 25 09:27:40.718810 2016] [lbmethod_heartbeat:notice] [pid
2345] AH02282: No slotmem from mod_heartmonitor
>> 
>> I'm wondering if there changes to the static modules included in the new
version's package.  The changelog
>> for httpd itself didn't suggest any changes between these two versions
that would cause configuration differences.
>
>I don't know about Apache and these modules, but in order for SHM to be
> avilable, you must run cygserver.

cygserver is running.

After doing some more research, I suspect that the issue may lie in
mod_lbmethod_heartbeat being compiled into httpd while depending on
mod_heartmonitor (apparently to provide slotmem).
mod_heartmonitor is not compiled into the build.  Thus, even if it is enabled
as a shared module, I think that it is loaded after mod_libmethod_heartbeat
and thus is not available when mod_libmethod_heartbeat starts.  If this is the
case, it makes sense that this notice appears.

If this is correct, the solution would appear to be compiling mod_heartmonitor
into the package as a static module.


-----

Dominic R. Jones, Ph.D.

--
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-2.4.23 notice "No slotmem from mod_heartmonitor"
  2016-07-25 23:14 Dominic.R.Jones
@ 2016-07-26 16:04 ` Achim Gratz
  0 siblings, 0 replies; 4+ messages in thread
From: Achim Gratz @ 2016-07-26 16:04 UTC (permalink / raw)
  To: cygwin

 <Dominic.R.Jones <at> faa.gov> writes:
> Activating mod_slotmem_shm (as a shared module) resolved this issue and
allowed httpd to start.  However,
> httpd now produces the following notice on (successful) startup:
> 
>     [Mon Jul 25 09:27:40.718810 2016] [lbmethod_heartbeat:notice] [pid
2345] AH02282: No slotmem from mod_heartmonitor
> 
> I'm wondering if there changes to the static modules included in the new
version's package.  The changelog
> for httpd itself didn't suggest any changes between these two versions
that would cause configuration differences.

I don't know about Apache and these modules, but in order for SHM to be
avilable, you must run cygserver.


Regards,
Achim.





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

* httpd-2.4.23 notice "No slotmem from mod_heartmonitor"
@ 2016-07-25 23:14 Dominic.R.Jones
  2016-07-26 16:04 ` Achim Gratz
  0 siblings, 1 reply; 4+ messages in thread
From: Dominic.R.Jones @ 2016-07-25 23:14 UTC (permalink / raw)
  To: cygwin

After obtaining the upgrade of the httpd package from 2.4.22 to 2.4.23, I received the following error on attempted startup:

    [Mon Jul 25 08:22:26.529504 2016] [proxy_balancer:emerg] [pid 1234] AH01177: Failed to lookup provider 'shm' for 'slotmem': is 
    mod_slotmem_shm loaded??

Activating mod_slotmem_shm (as a shared module) resolved this issue and allowed httpd to start.  However, httpd now produces the following notice on (successful) startup:

    [Mon Jul 25 09:27:40.718810 2016] [lbmethod_heartbeat:notice] [pid 2345] AH02282: No slotmem from mod_heartmonitor

I'm wondering if there changes to the static modules included in the new version's package.  The changelog for httpd itself didn't suggest any changes between these two versions that would cause configuration differences.

I have tried activating mod_heartmonitor and mod_heartbeat from my configuration file, but the notice still appeared.  I also tried activating mod_slotmem_plain with the same result.


-----

Dominic R. Jones, Ph.D.

--
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:[~2016-08-04 21:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 23:43 httpd-2.4.23 notice "No slotmem from mod_heartmonitor" Dominic.R.Jones
  -- strict thread matches above, loose matches on Subject: below --
2016-07-26 19:18 Dominic.R.Jones
2016-07-25 23:14 Dominic.R.Jones
2016-07-26 16:04 ` Achim Gratz

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