You are not logged in.

#1 2012-06-09 03:12:18

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

[SOLVED] apache daemon fails to start on boot, but rc.d restart works?

I installed apache from the official repos and followed the instructions in the wiki for configuring it. I checked to make sure the http user exists, and I /etc/hosts looks good (to me). Upon boot, the daemon fails to start and I can't load local web pages, but running "rc.d restart httpd" works just fine. Since I'd rather not start it manually every time I boot, is there a way to fix this? Also, httpd is the last daemon in my DAEMONS array.

/etc/httpd/conf/httpd.conf:

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo_log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd//var/log/httpd/foo_log".

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/etc/httpd"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 127.0.0.1:80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule log_forensic_module modules/mod_log_forensic.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so


#php
LoadModule php5_module modules/libphp5.so

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User http
Group http

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin you@example.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/srv/http"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/srv/http">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "/var/log/httpd/error_log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "/var/log/httpd/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "/var/log/httpd/access_log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock /var/run/httpd/cgisock
</IfModule>

#
# "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
MIMEMagicFile conf/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be 
# included to add extra features or to modify the default configuration of 
# the server, or you may simply copy their contents here and change as 
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf

#PHP
Include conf/extra/php5_module.conf

#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

/etc/hosts

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>	<hostname.domain.org>	<hostname>
127.0.0.1	localhost.localdomain	localhost laptop
::1		localhost.localdomain	localhost

# End of file

Per the wiki, I also tried commenting out the line that reads

LoadModule unique_id_module        modules/mod_unique_id.so

Either way, it still fails on boot.

Last edited by pythonscript (2012-06-10 21:14:44)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#2 2012-06-09 19:25:32

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

Look for errors in /var/log/httpd/error_log

Perhaps the network isn't up when you start apache? Try moving httpd at the end of the DAEMONS list. Personally, I use @httpd in DAEMONS to start it in the background while the rest of the system gets on with things. e.g.

DAEMONS=(!hwclock syslog-ng network netfs crond ntpd alsa dbus libvirtd @sshd @httpd)

Offline

#3 2012-06-09 21:45:18

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

httpd is already the last item in my DAEMONS array, and it is set to start in the background. I checked /var/log/httpd/error_log, and this is what I see.

[Tue Jun 05 20:34:45 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Jun 05 20:34:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 05 20:34:45 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 05 20:34:45 2012] [notice] Digest: done
[Tue Jun 05 20:34:46 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 configured -- resuming normal operations
[Tue Jun 05 20:35:02 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Tue Jun 05 20:35:02 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Tue Jun 05 20:46:24 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/~user
[Tue Jun 05 20:51:58 2012] [notice] SIGHUP received.  Attempting to restart
[Tue Jun 05 20:51:58 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 05 20:51:58 2012] [notice] Digest: done
[Tue Jun 05 20:51:59 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 configured -- resuming normal operations
[Tue Jun 05 20:54:50 2012] [notice] SIGHUP received.  Attempting to restart
[Tue Jun 05 20:54:50 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 05 20:54:50 2012] [notice] Digest: done
[Tue Jun 05 20:54:51 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3 configured -- resuming normal operations
[Tue Jun 05 20:59:03 2012] [notice] SIGHUP received.  Attempting to restart
[Tue Jun 05 20:59:03 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 05 20:59:03 2012] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_sqlite.so' - /usr/lib/php/modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Jun 05 20:59:04 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3 configured -- resuming normal operations
[Tue Jun 05 20:59:28 2012] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /srv/http/test.php on line 2, referer: http://localhost/
[Tue Jun 05 21:01:51 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/usr
[Wed Jun 06 19:30:17 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 07 22:04:42 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jun 07 22:04:42 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jun 07 22:04:42 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Jun 07 22:04:42 2012] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_sqlite.so' - /usr/lib/php/modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Jun 07 22:04:43 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3 configured -- resuming normal operations
[Thu Jun 07 22:05:51 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Thu Jun 07 22:05:51 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Fri Jun 08 19:56:51 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Fri Jun 08 19:56:51 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Fri Jun 08 19:59:03 2012] [notice] caught SIGTERM, shutting down
[Fri Jun 08 22:06:52 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Jun 08 22:06:52 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 08 22:06:52 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 08 22:06:52 2012] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_sqlite.so' - /usr/lib/php/modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Fri Jun 08 22:06:52 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3 configured -- resuming normal operations
[Sat Jun 09 14:49:16 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Sat Jun 09 14:49:16 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
[Sat Jun 09 19:46:03 2012] [notice] caught SIGTERM, shutting down
[Sat Jun 09 22:25:11 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jun 09 22:25:11 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jun 09 22:25:11 2012] [notice] Digest: generating secret for digest authentication ...
[Sat Jun 09 22:25:11 2012] [notice] Digest: done
[Sat Jun 09 22:25:11 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3 configured -- resuming normal operations
[Sat Jun 09 22:28:40 2012] [notice] caught SIGTERM, shutting down

The php-sqlite errors were fixed by installing that package, but the problem in question still persists. The only other actual errors I notice, apart from the favicon.ico error, are these:

[Tue Jun 05 21:01:51 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/usr
[Tue Jun 05 20:46:24 2012] [error] [client 127.0.0.1] File does not exist: /srv/http/~user

Those aren't recent, though. Maybe they're not relevant, I'm unsure. The messages from June 9th are the errors and notices from a few minutes ago.

I don't know if this is relevant, either, but since the DAEMONS array came up, these are the contents of mine:

DAEMONS=(!hwclock ntpd syslog-ng netfs crond dbus networkmanager acpid laptop-mode mysqld @httpd)

Last edited by pythonscript (2012-06-09 21:49:15)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#4 2012-06-09 22:12:52

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

[Sat Jun 09 22:25:11 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3 configured -- resuming normal operations
[Sat Jun 09 22:28:40 2012] [notice] caught SIGTERM, shutting down

Is this SIGTERM from a reboot or from manually restarting/stopping Apache? I see another one a little earlier from 19:46, also on the 9th; it might be helpful to know what was happening with the rest of your system around the time frame these messages were logged. Also, it might be helpful to check other logs (/var/log/everything.log) should there be something else afoot.

Are you absolutely sure that the httpd process isn't running upon reboot rather than hung? I've seen some odd things (as an example) with Apache should DNS resolution fail unexpectedly or not be available, though that's unlikely to be the case here as it would otherwise show up in the log.


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#5 2012-06-09 22:35:49

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

The SIGTERM are from reboots, yes. I'm not absolutely sure that the process isn't running; I just know that I can't access http://localhost immediately upon reboot. I have to restart the httpd daemon, which works fine. How would I be able to tell if it's just hung?

I checked everything.log, and I don't see anything that leaps off the page to me.

Jun  9 22:29:30 localhost rtkit-daemon[1910]: Successfully made thread 1930 of process 1908 (/usr/bin/pulseaudio) owned by '120' RT at priority 5.
Jun  9 22:29:30 localhost rtkit-daemon[1910]: Supervising 2 threads of 1 processes of 1 users.
Jun  9 22:29:30 localhost rtkit-daemon[1910]: Successfully made thread 1931 of process 1908 (/usr/bin/pulseaudio) owned by '120' RT at priority 5.
Jun  9 22:29:30 localhost rtkit-daemon[1910]: Supervising 3 threads of 1 processes of 1 users.
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.gnome.SessionManager method=RegisterClient
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: RegisterClient 106d33cade29b1ba713392593689729000000018320001
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: Adding new client 106d33cade29b1ba713392593689729000000018320001 to session
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): uid = 120
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): pid = 1842
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/Client2 to store
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client added: /org/gnome/SessionManager/Client2
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): App gnome-settings-daemon.desktop registered
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase INITIALIZATION
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase WINDOW_MANAGER
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase WINDOW_MANAGER
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase PANEL
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase PANEL
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase DESKTOP
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase DESKTOP
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase APPLICATION
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting app '/org/gnome/SessionManager/App1'
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): Starting app: /org/gnome/SessionManager/App1
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmAutostartApp: starting gnome-shell.desktop: command=gnome-shell --gdm-mode startup-id=106d33cade29b1ba713392593689681600000018320000
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmAutostartApp: started pid:1936
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase APPLICATION
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase RUNNING
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmPresence: adding idle watch
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GSIdleMonitor: creating new alarm for positive transition wait=600000
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GSIdleMonitor: creating new alarm for negative transition wait=599999
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client2 interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client2 interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmShell: Connected to the shell
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:30 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:31 localhost kernel: [   29.003352] wlan0: no IPv6 routers present
Jun  9 17:29:31 localhost NetworkManager[765]: <warn> could not commit DNS changes: (0) Could not replace /etc/resolv.conf: Operation not permitted
Jun  9 17:29:31 localhost NetworkManager[765]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Jun  9 17:29:31 localhost NetworkManager[765]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Jun  9 17:29:31 localhost NetworkManager[765]: <info> Activation (wlan0) successful, device activated.
Jun  9 17:29:31 localhost NetworkManager[765]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) complete.
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXsmpServer: accept_ice_connection()
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXsmpServer: auth_ice_connection()
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Setting up new connection
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: New client '0x7f9ff0004e60 []'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/Client3 to store
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client added: /org/gnome/SessionManager/Client3
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Initializing client 0x7f9ff0004e60 []
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Client '0x7f9ff0004e60 []' received RegisterClient(106d33cade29b1ba713392593689681600000018320000)
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmManager: Adding new client 106d33cade29b1ba713392593689681600000018320000 to session
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Sending RegisterClientReply to '0x7f9ff0004e60 [106d33cade29b1ba713392593689681600000018320000]'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Set properties from client '0x7f9ff0004e60 [106d33cade29b1ba713392593689681600000018320000]'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient:   Program = 'gnome-shell'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient:   UserID = 'gdm'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient:   RestartStyleHint = 0
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient:   ProcessID = '1936'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient:   CurrentDirectory = '/var/lib/gdm'
Jun  9 17:29:31 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient:   _GSM_Priority = 20
Jun  9 17:29:31 localhost dhcpcd[1640]: eth0: sending IPv6 Router Solicitation
Jun  9 17:29:31 localhost dhcpcd[1640]: eth0: no IPv6 Routers available
Jun  9 17:29:33 localhost dhcpcd[1677]: wlan0: sending IPv6 Router Solicitation
Jun  9 17:29:33 localhost dhcpcd[1677]: wlan0: no IPv6 Routers available
Jun  9 17:29:33 localhost NetworkManager[765]: <warn> error monitoring device for netlink events: error processing netlink message: Object busy
Jun  9 17:29:34 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:34 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:34 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:34 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:34 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:34 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=GetAll
Jun  9 17:29:35 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:35 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:40 localhost NetworkManager[765]: <info> (eth0): IP6 addrconf timed out or failed.
Jun  9 17:29:40 localhost NetworkManager[765]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jun  9 17:29:40 localhost NetworkManager[765]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jun  9 17:29:40 localhost NetworkManager[765]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jun  9 17:29:41 localhost NetworkManager[765]: <info> (wlan0): IP6 addrconf timed out or failed.
Jun  9 17:29:41 localhost NetworkManager[765]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jun  9 17:29:41 localhost NetworkManager[765]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jun  9 17:29:41 localhost NetworkManager[765]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GdmSignalHandler: handling signal 15
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GdmSignalHandler: Found 1 callbacks
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GdmSignalHandler: running 15 handler: 0x41c9e0
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): Got callback for signal 15
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Logout called
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmShell: Connected to the shell
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: requesting logout
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase RUNNING
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase QUERY_END_SESSION
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: sending query-end-session to clients (logout mode: forceful)
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: sending QueryEndSession signal to :1.8
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: adding client to query clients: /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: sending QueryEndSession signal to :1.2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: adding client to query clients: /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: adding client to query clients: /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): Caught signal 15, shutting down normally.
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GdmSignalHandler: Done handling signals
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Client '0x7f9ff0004e60 [gnome-shell 106d33cade29b1ba713392593689681600000018320000]' received SaveYourselfDone(success = True)
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Response from end session request: is-ok=1 do-last=0 cancel=0 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXsmpServer: sms_error_handler (0x1491c70, FALSE, 3, 9, 32771, 0)
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client1 interface=org.gnome.SessionManager.ClientPrivate method=EndSessionResponse
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: got EndSessionResponse is-ok:1 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Response from end session request: is-ok=1 do-last=0 cancel=0 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client2 interface=org.gnome.SessionManager.ClientPrivate method=EndSessionResponse
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client2 interface=org.gnome.SessionManager.ClientPrivate method=EndSessionResponse
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: got EndSessionResponse is-ok:1 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Response from end session request: is-ok=1 do-last=0 cancel=0 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: query end session complete
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmShell: Connected to the shell
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase QUERY_END_SESSION
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase END_SESSION
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: adding client to end-session clients: /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: adding client to end-session clients: /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: adding client to end-session clients: /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Client '0x7f9ff0004e60 [gnome-shell 106d33cade29b1ba713392593689681600000018320000]' received SaveYourselfDone(success = True)
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Response from end session request: is-ok=1 do-last=0 cancel=0 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client1 interface=org.gnome.SessionManager.ClientPrivate method=EndSessionResponse
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: got EndSessionResponse is-ok:1 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Response from end session request: is-ok=1 do-last=0 cancel=0 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXsmpServer: sms_error_handler (0x1491c70, FALSE, 3, c, 32771, 0)
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: disconnect client: /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: disconnect for app 'at-spi-registryd.desktop'
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: unable to find application for client - not restarting
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Unreffing object: 0x1428a40
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmClient: disposing /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client removed: /org/gnome/SessionManager/Client1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: obj_path=/org/gnome/SessionManager/Client2 interface=org.gnome.SessionManager.ClientPrivate method=EndSessionResponse
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmDBusClient: got EndSessionResponse is-ok:1 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Response from end session request: is-ok=1 do-last=0 cancel=0 reason=
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase END_SESSION
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): Using ConsoleKit for session tracking
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: starting phase EXIT
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: stopped client: /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: xsmp_stop ('0x7f9ff0004e60 [gnome-shell 106d33cade29b1ba713392593689681600000018320000]')
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: stopped client: /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: Client '0x7f9ff0004e60 [gnome-shell 106d33cade29b1ba713392593689681600000018320000]' received CloseConnection
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: disconnect client
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: disconnect client: /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: in shutdown, not restarting application
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Unreffing object: 0x7f9ff0004e60
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client removed: /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmClient: disposing /org/gnome/SessionManager/Client3
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmXSMPClient: xsmp_finalize (0x7f9ff0004e60 [gnome-shell 106d33cade29b1ba713392593689681600000018320000])
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: disconnect client: /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: in shutdown, not restarting application
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Unreffing object: 0x1428ac0
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmClient: disposing /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: Client removed: /org/gnome/SessionManager/Client2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: last client disconnected - exiting
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: ending phase EXIT
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): Unreffing manager
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmManager: disposing manager
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Clearing object store
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Unreffing object: 0x1473070
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Unreffing object: 0x1473150
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App2
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App1
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Clearing object store
Jun  9 17:29:42 localhost gnome-session[1832]: DEBUG(+): GsmStore: Clearing object store
Jun  9 17:29:42 localhost gdm-simple-slave[1728]: WARNING: Child process 1832 was already dead.
Jun  9 17:29:43 localhost gnome-session[1970]: EggSMClient-WARNING: Desktop file '/home/ak5791/.config/autostart/dropbox.desktop' has malformed Icon key 'dropbox.png'(should not include extension)
Jun  9 22:29:43 localhost rtkit-daemon[1910]: Successfully made thread 2022 of process 2022 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jun  9 22:29:43 localhost rtkit-daemon[1910]: Supervising 4 threads of 2 processes of 2 users.
Jun  9 22:29:43 localhost rtkit-daemon[1910]: Successfully made thread 2023 of process 2022 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
Jun  9 22:29:43 localhost rtkit-daemon[1910]: Supervising 5 threads of 2 processes of 2 users.
Jun  9 22:29:43 localhost rtkit-daemon[1910]: Successfully made thread 2024 of process 2022 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
Jun  9 22:29:43 localhost rtkit-daemon[1910]: Supervising 6 threads of 2 processes of 2 users.
Jun  9 17:29:44 localhost dbus[739]: [system] Activating service name='org.freedesktop.ColorManager' (using servicehelper)
Jun  9 17:29:44 localhost dbus[739]: [system] Successfully activated service 'org.freedesktop.ColorManager'
Jun  9 17:29:44 localhost dbus[739]: [system] Activating service name='org.freedesktop.colord-sane' (using servicehelper)
Jun  9 17:29:45 localhost dbus[739]: [system] Successfully activated service 'org.freedesktop.colord-sane'
Jun  9 22:29:46 localhost rtkit-daemon[1910]: Successfully made thread 2079 of process 2079 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jun  9 22:29:46 localhost rtkit-daemon[1910]: Supervising 7 threads of 3 processes of 2 users.
Jun  9 17:29:46 localhost pulseaudio[2079]: [pulseaudio] pid.c: Daemon already running.
Jun  9 17:29:48 localhost dbus[739]: [system] Activating service name='org.freedesktop.UDisks2' (using servicehelper)
Jun  9 17:29:48 localhost udisksd[2110]: udisks daemon version 1.94.0 starting
Jun  9 17:29:48 localhost dbus[739]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Jun  9 17:29:48 localhost udisksd[2110]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jun  9 17:29:48 localhost kernel: [   46.319778] gnome-shell-cal[2103] trap int3 ip:7ff3f55b85e1 sp:7fff94941890 error:0
Jun  9 17:30:19 localhost dbus[739]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Jun  9 22:40:53 localhost dbus[739]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Jun  9 22:47:15 localhost kernel: [ 1092.983585] usb 8-1.4.1: new high-speed USB device number 8 using ehci_hcd
Jun  9 22:47:15 localhost mtp-probe: checking bus 8, device 8: "/sys/devices/pci0000:00/0000:00:1d.7/usb8/8-1/8-1.4/8-1.4.1"
Jun  9 22:47:15 localhost mtp-probe: bus: 8, device: 8 was not an MTP device
Jun  9 22:47:15 localhost kernel: [ 1093.132002] usbcore: registered new interface driver uas
Jun  9 22:47:15 localhost kernel: [ 1093.135601] Initializing USB Mass Storage driver...
Jun  9 22:47:15 localhost kernel: [ 1093.135785] scsi6 : usb-storage 8-1.4.1:1.0
Jun  9 22:47:15 localhost kernel: [ 1093.135905] usbcore: registered new interface driver usb-storage
Jun  9 22:47:15 localhost kernel: [ 1093.135913] USB Mass Storage support registered.
Jun  9 22:47:16 localhost kernel: [ 1094.137579] scsi 6:0:0:0: Direct-Access     Kingston DT 101 G2        1.00 PQ: 0 ANSI: 2
Jun  9 22:47:16 localhost kernel: [ 1094.140133] sd 6:0:0:0: [sdb] 15636304 512-byte logical blocks: (8.00 GB/7.45 GiB)
Jun  9 22:47:16 localhost kernel: [ 1094.140631] sd 6:0:0:0: [sdb] Write Protect is off
Jun  9 22:47:16 localhost kernel: [ 1094.140634] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
Jun  9 22:47:16 localhost kernel: [ 1094.141128] sd 6:0:0:0: [sdb] No Caching mode page present
Jun  9 22:47:16 localhost kernel: [ 1094.141132] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Jun  9 22:47:16 localhost kernel: [ 1094.144916] sd 6:0:0:0: [sdb] No Caching mode page present
Jun  9 22:47:16 localhost kernel: [ 1094.144921] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Jun  9 22:47:16 localhost kernel: [ 1094.146680]  sdb: sdb1
Jun  9 22:47:16 localhost kernel: [ 1094.151407] sd 6:0:0:0: [sdb] No Caching mode page present
Jun  9 22:47:16 localhost kernel: [ 1094.151411] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Jun  9 22:47:16 localhost kernel: [ 1094.151414] sd 6:0:0:0: [sdb] Attached SCSI removable disk
Jun  9 22:47:17 localhost ntfs-3g[2636]: Version 2012.1.15 external FUSE 29
Jun  9 22:47:17 localhost ntfs-3g[2636]: Mounted /dev/sdb1 (Read-Write, label "kingstonGB", NTFS 3.1)
Jun  9 22:47:17 localhost ntfs-3g[2636]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=100,dmask=0077,fmask=0177,uhelper=udisks2
Jun  9 22:47:17 localhost ntfs-3g[2636]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  9 22:47:17 localhost ntfs-3g[2636]: Global ownership and permissions enforced, configuration type 7
Jun  9 22:47:17 localhost udisksd[2110]: Mounted /dev/sdb1 at /run/media/ak5791/kingstonGB on behalf of uid 1000
Jun  9 22:47:28 localhost dbus[739]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Jun  9 22:47:28 localhost dbus[739]: [system] Successfully activated service 'org.freedesktop.UDisks'
Jun  9 22:47:46 localhost dbus[739]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Jun  9 22:57:59 localhost dbus[739]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Jun  9 23:01:02 localhost /USR/SBIN/CROND[5529]: (root) CMD (run-parts /etc/cron.hourly)
Jun  9 23:21:02 localhost -- MARK --

All I notice is that my system's time is having a few problems, since you'll notice that events occur at 22:00 and change, then 17:00 and change, then back to 22:00 and change afterwards. Could this be the problem? I've had the CMOS batteries peg out on me suddenly in the last few weeks. I would hope this sytem is not also suffering a similar fate. Nothing else was happening on my system except for the standard processes from /etc/rc.conf and other standard ones, since I've just been rebooting, checking the logs, then posting here.


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#6 2012-06-09 22:53:05

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

The one thing I notice is that you are starting your ntpd & netfs before your networkmanager. It should be the other way around.

your network should be up before you try to start daemons which require network. Maybe that's why httpd also gets confused during boot, but has no issues when you manually restart.

See if putting networkmanager before ntpd & netfs fixes the problem on boot. Also if you aren't using NFS shares then you can simply disable netfs.

I would make it like this

DAEMONS=(!hwclock syslog-ng dbus networkmanager @ntpd @netfs @acpid @laptop-mode @mysqld @httpd @crond)

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2012-06-10 04:24:33

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

I like Inxsible's suggestion the most. Try it, reboot, then see what happens.

pythonscript wrote:

The SIGTERM are from reboots, yes. I'm not absolutely sure that the process isn't running; I just know that I can't access http://localhost immediately upon reboot. I have to restart the httpd daemon, which works fine. How would I be able to tell if it's just hung?

Check the output of something like "ps aux | grep httpd" or similar from a terminal immediately after boot if the problem persists (but before trying to manually restart Apache). I agree with the consensus here that it's most likely network-related, and I'd bet httpd is probably running upon boot.

pythonscript wrote:

All I notice is that my system's time is having a few problems, since you'll notice that events occur at 22:00 and change, then 17:00 and change, then back to 22:00 and change afterwards. Could this be the problem? I've had the CMOS batteries peg out on me suddenly in the last few weeks. I would hope this sytem is not also suffering a similar fate.

I doubt it. If it's a laptop kept charged up or a desktop connected to AC power at all times, I don't think this would be caused by battery-related issues. I dual boot Windows + Arch and have my clock set to localtime and have had some minor issues with my clock in the past. GNU/Linux systems prefer it to be set to UTC, and rtkit-daemon in particular seems to me to ignore timezone settings in its syslog entries. Though the mixing up of timezones in your log including kernel messages is a little weird, I doubt it would affect Apache. Are you using localtime or UTC for your clock config?


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#8 2012-06-10 13:27:41

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

Shifting the items around in the DAEMONS array fixed the problem, and now ps aux | grep httpd yields a nice set of proper-looking entries:

root      1491  0.0  0.3 294640 11808 ?        Ss   03:18   0:00 /usr/sbin/httpd -k start
http      1530  0.0  0.1 209520  4068 ?        S    03:18   0:00 /usr/sbin/httpd -k start
http      1599  0.0  0.1 294640  6692 ?        S    03:18   0:00 /usr/sbin/httpd -k start
http      1600  0.0  0.1 294640  6692 ?        S    03:18   0:00 /usr/sbin/httpd -k start
http      1601  0.0  0.1 294640  6692 ?        S    03:18   0:00 /usr/sbin/httpd -k start
http      1602  0.0  0.1 294640  6692 ?        S    03:18   0:00 /usr/sbin/httpd -k start
http      1603  0.0  0.1 294640  6692 ?        S    03:18   0:00 /usr/sbin/httpd -k start
myusername    2176  0.0  0.0   8656  1060 pts/0    S+   03:22   0:00 grep --color=auto httpd

Before the change to DAEMONS, only the last line appeared. I do notice right before the system halts a brief error message flash. Something about this line in /etc/httpd/conf/httpd.conf having a syntax error, I believe.

Listen 127.0.0.1:80

apachectl configtest says the syntax is fine, and I copied this directly from the wiki, so is that a concern? As for the system time, I dual boot Windows and Arch as well, but my Arch is set to use UTC (that's how I have it set in /etc/rc.conf, at any rate). Moving the npd daemon after networkmanager seems to have corrected that problem, though. Many thanks for the help!

Last edited by pythonscript (2012-06-10 13:31:38)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#9 2012-06-10 17:52:16

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [SOLVED] apache daemon fails to start on boot, but rc.d restart works?

If changing the daemons around has fixed your issue, don't forget to mark your thread as solved!


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

Board footer

Powered by FluxBB