Project

General

Profile

Bug #463

httpd restarted continuously with a HUP - no indication as to why

Added by cpg about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
03/03/2010
Due date:
% Done:

100%


Description

i started noticing sometimes dashboard was unavailable.

investigation reveals the troubling fact that my httpd gets continuously restarted (NOT by monit!).
here is the /var/log/httpd/error_log.

[Wed Mar 03 01:58:02 2010] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
[Wed Mar 03 01:58:03 2010] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 03 01:58:03 2010] [notice] Digest: done
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("ssh") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("greyhole") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("drupal") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("amahitunes") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("myrapbook") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("scanner") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("phpsysinfo") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("logcon") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("osticket") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("weberp") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("gallery2") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("b4rt") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("eyeos") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("transmission") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("opengoo") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("radiant") failed: Invalid host name
[Wed Mar 03 01:58:03 2010] [error] avahi_entry_group_add_service_strlst("phpgedview") failed: Invalid host name
[Wed Mar 03 01:58:04 2010] [error] avahi_entry_group_add_service_strlst("phpMyAdmin") failed: Invalid host name
[Wed Mar 03 01:58:04 2010] [error] avahi_entry_group_add_service_strlst("mythtv") failed: Invalid host name
[Wed Mar 03 01:58:04 2010] [error] avahi_entry_group_add_service_strlst("icalendar") failed: Invalid host name
[Wed Mar 03 01:58:04 2010] [error] avahi_entry_group_add_service_strlst("calendar") failed: Invalid host name
[Wed Mar 03 01:58:04 2010] [error] avahi_entry_group_add_service_strlst("hda") failed: Invalid host name
[Wed Mar 03 01:58:04 2010] [notice] Apache/2.2.14 (Unix) DAV/2 Phusion_Passenger/2.2.5 PHP/5.3.1 configured -- resuming normal operations

i tried to stop avahi-daemon ... thinking this would be at issue, but it still happens:

[Wed Mar 03 02:10:02 2010] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
[Wed Mar 03 02:10:02 2010] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 03 02:10:02 2010] [notice] Digest: done
[Wed Mar 03 02:10:02 2010] [notice] Apache/2.2.14 (Unix) DAV/2 Phusion_Passenger/2.2.5 PHP/5.3.1 configured -- resuming normal operations

i did update my system recently. still investigating as to why it's getting a HUP!!

History

#1 Updated by cpg about 11 years ago

  • Status changed from New to Assigned
  • Assignee set to gboudreau

this is due to this:

exec("/sbin/service httpd reload");

in apps-proxy app cronjob.

how about we add/find a hook or some API for an app to restart only on new app installs or uninstalls?

#2 Updated by gboudreau about 11 years ago

I can easily check if new apps were installed, or uninstalled, and only execute my cron then.
Will do that now.

This should be moved to 'apps' (is now 'platform').

#3 Updated by gboudreau about 11 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed.
(Re-install to get the fix.)

I now md5 the names of all the installed web-apps I find, and save the result in /var/hda/web-apps/apps-proxy/installed_apps.md5
If this didn't change since last I ran, I just exit. Otherwise, I work and reload httpd.

A hook on app install/uninstall would be 'faster', but this works for now.

Please close when you've validated my fix.

Cheers.

Also available in: Atom