Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache SMF not starting

146 views
Skip to first unread message

Jim

unread,
Feb 15, 2005, 8:22:45 AM2/15/05
to
I'm having a problem starting apache2 under smf
If I
svcadm enable http
everything is fine UNTIL I reboot the server whereupon SMF constantly
spews out various messages (as seen below in the network-http:apache2
log) and I can't login to the system remotely. I just can't seem to get
my head around what the problem could be.
If I svcadm clear and svcadm disable http the system boots fine then I
can issue svcadm enable http and everything runs great !!
I had a few problems getting the ssl=true to workso I probably ballsed
something up there and to be honest it was late and I forget how I done
it with svccfg !
Does anyone have any ideas on this ??

svcs -x reports

svc:/milestone/multi-user-server:default (multi-user plus exports milestone)
State: offline since Tue Feb 15 12:16:31 2005
Reason: Start method is running.
See: http://sun.com/msg/SMF-8000-C4
See: init(1M)
See: /var/svc/log/milestone-multi-user-server:default.log
Impact: 1 dependent service is not running. (Use -v for list.)

svc:/network/http:apache2 (Apache 2 HTTP server)
State: maintenance since Tue Feb 15 12:19:04 2005
Reason: Start method failed repeatedly, last died on Killed (9).
See: http://sun.com/msg/SMF-8000-KS
See: apache2(1M)
See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.

svcs -l reports

fmri svc:/network/http:apache2
name Apache 2 HTTP server
enabled true
state maintenance
next_state none
state_time Tue Feb 15 12:19:04 2005
logfile /var/svc/log/network-http:apache2.log
restarter svc:/system/svc/restarter:default
contract_id
dependency require_all/error svc:/network/loopback:default (online)
dependency optional_all/error svc:/network/physical:default (online)


/var/svc/log/network-http:apache2.log thus ...
[ Feb 15 12:16:02 Enabled. ]
[ Feb 15 12:16:02 Executing start method ("/lib/svc/method/http-apache2
start") ]
[ Feb 15 12:17:03 Method or service exit timed out. Killing contract 29 ]
[ Feb 15 12:17:03 Method "start" failed due to signal KILL ]
[ Feb 15 12:17:03 Executing start method ("/lib/svc/method/http-apache2
start") ]
[ Feb 15 12:18:03 Method or service exit timed out. Killing contract 87 ]
[ Feb 15 12:18:04 Method "start" failed due to signal KILL ]
[ Feb 15 12:18:04 Executing start method ("/lib/svc/method/http-apache2
start") ]
[ Feb 15 12:19:04 Method or service exit timed out. Killing contract 89 ]
[ Feb 15 12:19:04 Method "start" failed due to signal KILL ]
[ Feb 15 12:33:51 Leaving maintenance because clear requested. ]
[ Feb 15 12:33:51 Enabled. ]
[ Feb 15 12:33:51 Executing start method ("/lib/svc/method/http-apache2
start") ]
Terminated
[ Feb 15 12:35:46 Enabled. ]
[ Feb 15 12:35:46 Executing start method ("/lib/svc/method/http-apache2
start") ]
[ Feb 15 12:36:47 Method or service exit timed out. Killing contract 28 ]
[ Feb 15 12:36:47 Method "start" failed due to signal KILL ]
[ Feb 15 12:36:47 Executing start method ("/lib/svc/method/http-apache2
start") ]
[ Feb 15 12:36:52 Method "start" exited with status 0 ]


listprop output

svc:/network/http> listprop
general framework
general/entity_stability astring Evolving
tm_common_name template
tm_common_name/C ustring "Apache 2 HTTP server"
tm_man_apache2 template
tm_man_apache2/manpath astring :default
tm_man_apache2/section astring 1M
tm_man_apache2/title astring apache2
tm_doc_apache_org template
tm_doc_apache_org/name astring apache.org
tm_doc_apache_org/uri astring http://httpd.apache.org
svc:/network/http>

editprop output

# Property group "general"
# delprop general
# addpg general framework
# setprop general/entity_stability = astring: (Evolving)

# Property group "tm_common_name"
# delprop tm_common_name
# addpg tm_common_name template
# setprop tm_common_name/C = ustring: ("Apache 2 HTTP server")

# Property group "tm_man_apache2"
# delprop tm_man_apache2
# addpg tm_man_apache2 template
# setprop tm_man_apache2/manpath = astring: (:default)
# setprop tm_man_apache2/section = astring: (1M)
# setprop tm_man_apache2/title = astring: (apache2)

# Property group "tm_doc_apache_org"
# delprop tm_doc_apache_org
# addpg tm_doc_apache_org template
# setprop tm_doc_apache_org/name = astring: (apache.org)
# setprop tm_doc_apache_org/uri = astring: (http://httpd.apache.org)

scvprop output

# svcprop -p httpd/ssl svc:/network/http:apache2
true

apache log ...

[Tue Feb 15 12:36:54 2005] [notice] Digest: generating secret for digest
authentication ...
[Tue Feb 15 12:36:54 2005] [notice] Digest: done
[Tue Feb 15 12:36:55 2005] [notice] Apache/2.0.52 (Unix) DAV/2
mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.3 configured -- resuming normal
operations

Stephen Hahn

unread,
Feb 15, 2005, 1:45:49 PM2/15/05
to
* Jim <m...@here.com>:

> I'm having a problem starting apache2 under smf
> If I
> svcadm enable http
> everything is fine UNTIL I reboot the server whereupon SMF constantly
> spews out various messages (as seen below in the network-http:apache2
> log) and I can't login to the system remotely. I just can't seem to get
> my head around what the problem could be.
> If I svcadm clear and svcadm disable http the system boots fine then I
> can issue svcadm enable http and everything runs great !!

This sort of behaviour usually indicates a service that hasn't stated
a complete set of dependencies: it's getting started too early.

> svcs -l reports
>
> fmri svc:/network/http:apache2
> name Apache 2 HTTP server
> enabled true
> state maintenance
> next_state none
> state_time Tue Feb 15 12:19:04 2005
> logfile /var/svc/log/network-http:apache2.log
> restarter svc:/system/svc/restarter:default
> contract_id
> dependency require_all/error svc:/network/loopback:default (online)
> dependency optional_all/error svc:/network/physical:default (online)

This list is far too short. Apache will require all system libraries
to be available (system/filesystem/root), /var to be mounted
(system/filesystem/minimal), and possibly more.

I'll go see if there's a bug on this already; otherwise, one will be
filed.

- Stephen

--
Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems
stephe...@sun.com

Jim

unread,
Feb 15, 2005, 4:34:32 PM2/15/05
to
Thanks for that Stephen As a workaround I'll just disable it and quickly
scratch up an init script for it

Thanks again
Jim

Dave Miner

unread,
Feb 16, 2005, 3:53:46 PM2/16/05
to stephe...@sun.com

6222168 documents some other issues with that manifest regarding the
network dependency (it should just depend on the network milestone), so
I've added this onto that bug.

Dave

0 new messages