On 12/14/09 01:30 PM, Neal Pollack wrote: > My desktop also runs a web server for our department's reports. > I did a pkg image-update from 128, (each build, 128 and prior, had > working > web server for our weekly reports). > > After image-update to build 129, apache2.2 did not start.; > > root at zbit:~# svcs -xv > svc:/network/http:apache22 (Apache 2.2 HTTP server) > State: offline since December 14, 2009 1:28:33 PM PST > Reason: Start method is running. > See: http://sun.com/msg/SMF-8000-C4 > See: man -M /usr/apache2/2.2/man -s 8 httpd > See: http://httpd.apache.org > See: /var/svc/log/network-http:apache22.log > Impact: This service is not running. > > > root at zbit:~# /lib/svc/method/http-apache22 start > Usage: svcprop [-fqtv] [-C | -c | -s snapshot] [-p [name/]name]... > {FMRI | pattern}... > svcprop -w [-fqtv] [-p [name/]name] {FMRI | pattern} > Usage: svcprop [-fqtv] [-C | -c | -s snapshot] [-p [name/]name]... > {FMRI | pattern}... > svcprop -w [-fqtv] [-p [name/]name] {FMRI | pattern} > Usage: svcprop [-fqtv] [-C | -c | -s snapshot] [-p [name/]name]... > {FMRI | pattern}... > svcprop -w [-fqtv] [-p [name/]name] {FMRI | pattern} > grep: /etc/apache2/envvars: No such file or directory > /lib/svc/method/http-apache22[162]: /usr/apache2/bin/apachectl: not > found [No such file or directory] > Server failed to start. Check the error log (defaults to > /var/apache2/logs/error_log) for more information, if any. > You have mail in /var/mail/root > root at zbit:~# > > zbit:~$ cat /var/apache2/logs/error_log > cat: cannot open /var/apache2/logs/error_log: No such file or directory > zbit:~$ pfexec su - > Sun Microsystems Inc. SunOS 5.11 snv_129 November 2008 > You have new mail. > root at zbit:~# cat /var/apache2/logs/error_log > cat: /var/apache2/logs/error_log: No such file or directory > root at zbit:~# pkg list | grep -i apache > root at zbit:~# > > It appears that apache has been removed??
Upon closer inspection, not removed, but broken. The binaries are there, but some paths are missing or moved. The start script complains of missing error log above, and indeed that entire logs directory is not present in build 129 # ls /usr/apache2/bin ls: cannot access /usr/apache2/bin: No such file or directory > > How do we determine what is going on here? > > Thanks, > > Neal > > > >