On 16/06/14, Graham Dumpleton ([email protected]) wrote:
> 
> On 16/06/2014, at 6:52 AM, Rory Campbell-Lange <[email protected]> 
> wrote:
> 
> > One of our servers had an odd issue this morning, during a logrotate
> > cycle, which cause apache to fail:
> > 
> >    [Sun Jun 15 06:25:54 2014] [notice] SIGUSR1 received.  Doing graceful 
> > restart
> >    apache2: Syntax error on line 244 of /etc/apache2/apache2.conf: Syntax 
> > error on line 1 of /etc/apache2/mods-enabled/wsgi.load: 
> >    Cannot load /usr/lib/apache2/modules/mod_wsgi.so into server:
> >    /lib/i386-linux-gnu/i686/cmov/libm.so.6: symbol __get_cpu_features, 
> > version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
> > 
> > Starting apache again proved to work fine.

> Were any operating system package updates performed since the last
> time the server was restarted?
> 
> When an Apache 'restart' or 'graceful' is done (not a stop/start),
> then any system libraries that were linked by Apache remain linked to
> the process and are kept in memory. At the same time though, any
> Apache modules and what they required are unloaded from memory and the
> Apache modules reloaded, along with their dependencies.
> 
> In this situation there is a chance that if a system library linked
> into Apache was upgraded, and at the same time some other system
> library used by an Apache module or even an Apache module itself was
> also updated, then it could have a dependency on some new symbol in
> the upgraded system library. Because though the system library was not
> reloaded because it was linked to Apache as a whole, you would end up
> with an undefined symbol, or some other issue could arise.

Hi Graham

Thanks for your comprehensive answer. I didn't know precisely what
happened when a 'restart' or 'graceful' call is made to Apache so that
information is very helpful.

You've hit the nail on the head. etckeeper shows that the library noted
above (part of libc6) was updated last Thursday. I'll have to make sure
I do a proper 'stop' then 'start' of Apache in future.

Thanks again,
Rory


-- 
Rory Campbell-Lange

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to