[ome-users] ApacheConfigTask.pm from CVS

kristian kvilekval kris at cs.ucsb.edu
Thu Sep 1 02:38:49 BST 2005


Not knowing any better I got by the first problem with:

$ diff -c  src/perl2/OME/Install/ApacheConfigTask.pm~ src/perl2/OME/Install/ApacheConfigTask.pm
*** src/perl2/OME/Install/ApacheConfigTask.pm~  2005-08-31 17:58:43.000000000 -0700
--- src/perl2/OME/Install/ApacheConfigTask.pm   2005-08-31 17:59:28.000000000 -0700
***************
*** 524,535 ****
        print $LOGFILE "httpd version: $httpdVers\n";

        if (not File::Spec->file_name_is_absolute ($httpdConf) ) {
!              $httpdRoot = `$httpdBin -V | grep HTTPD_ROOT | cut -d '"' -f 2`;
!              chomp $httpdRoot;
!       $apache_info->{root} = $httpdRoot;
!       print $LOGFILE "Unable to find httpd root\n" and
!               croak "Unable to find httpd root" unless $httpdRoot;
!       print $LOGFILE "httpd root: $httpdRoot\n";

                $httpdConf = File::Spec->catfile ($httpdRoot,$httpdConf);
                $httpdConf = File::Spec->canonpath( $httpdConf );
--- 524,535 ----
        print $LOGFILE "httpd version: $httpdVers\n";

        if (not File::Spec->file_name_is_absolute ($httpdConf) ) {
!              $httpdRoot = `$httpdBin -V | grep HTTPD_ROOT | cut -d '"' -f 2`;
!              chomp $httpdRoot;
!              $apache_info->{root} = $httpdRoot;
!              print $LOGFILE "Unable to find httpd root\n" and
!                    croak "Unable to find httpd root" unless $httpdRoot;
!              print $LOGFILE "httpd root: $httpdRoot\n";

                $httpdConf = File::Spec->catfile ($httpdRoot,$httpdConf);
                $httpdConf = File::Spec->canonpath( $httpdConf );



However, I am faced with new(old) problem that has stopped
my use of OME for several months now (I am trying to get it to work again).
I am 
platform: debian sarge

During installation I get 
=======================================================
Great, you're in.

Checking OMEIS repository [FAILURE].


Errors executing task: OMEIS could not be reached.
Incorrect response from OMEIS at http://biodev.ece.ucsb.edu/cgi-bin/omeis:
500 Can't connect to biodev.ece.ucsb.edu:80 (connect: timeout)

See /var/tmp/OME/install/ApacheConfigTask.log for more details. at /home/kgk/work/others/ome/OME-cvs/src/perl2/OME/Install/CoreDatabaseTablesTask.pm line 876

 at install.pl line 80
        main::run_tasks() called at install.pl line 244
# Looks like your test died before it could output anything.
====================================================================

Attached is the ApacheConfigTask.log as suggested by the error message,
but this log actually reports success.  However the apache logs have:

from /var/log/apache2/access.log

127.0.0.1 - - [31/Aug/2005:18:00:22 -0700] "GET /perl2/mod_perl_test.pl HTTP/1.1" 200 917 "-" "libwww-perl/5.803"
127.0.0.1 - - [31/Aug/2005:18:00:22 -0700] "GET /cgi-bin/omeis HTTP/1.1" 500 46 "-" "libwww-perl/5.803"

from /var/log/apache2/error.log

[Wed Aug 31 18:00:22 2005] [error] [client 127.0.0.1] Error calling OMEIS: Method parameter missing


Any suggestions?


On Wed, 2005-08-31 at 17:43 -0700, kristian kvilekval wrote:
> I'm having the same problem..
> 
> $ /usr/sbin/apache2 -V
> Server version: Apache/2.0.54
> Server built:   May 12 2005 05:30:44
> Server's Module Magic Number: 20020903:9
> Architecture:   32-bit
> Server compiled with....
>  -D APACHE_MPM_DIR="server/mpm/prefork"
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_SYSVSEM_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D HTTPD_ROOT=""
>  -D SUEXEC_BIN="/usr/lib/apache2/suexec2"
>  -D DEFAULT_PIDLOG="/var/run/httpd.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_LOCKFILE="/var/run/accept.lock"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
>  -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
> 
> 
> 
> 
> 
> On Tue, 2005-08-30 at 15:19 -0400, Ilya Goldberg wrote:
> > Hi Valentin
> > This is due to our cleverness being overcome by the cleverness of the 
> > Debian Apache maintainers.
> > The installer is trying to locate your httpd.conf file so that it can 
> > patch it with an <Include> directive pointing to our conf file.
> > 
> > The way it tries to find httpd.conf is by looking through the output of 
> > httpd -V.  What's the output of this command on your system:
> > /usr/sbin/apache2 -V
> > 
> > Its actually slightly faulty logic the way we do it - if the 
> > SERVER_CONFIG_FILE is an absolute path, then we don't really need the 
> > HTTPD_ROOT, but we die anyway if we can't find it.
> > If you send back the output of the above command, we will institute 
> > better and stronger cleverness so that we are not so easily fooled by 
> > the horde of overactive apache maintainers.
> > 
> > Thanks
> > Ilya
> > 
> > 
> > 
> > _______________________________________________
> > ome-users mailing list
> > ome-users at lists.openmicroscopy.org.uk
> > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
-- 
Kristian Kvilekval
kris at cs.ucsb.edu  http://www.cs.ucsb.edu/~kris w:805-893-2526 h:504-9756
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ApacheConfigTask.log
Type: text/x-log
Size: 12206 bytes
Desc: not available
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20050831/383c19ea/attachment.bin>


More information about the ome-users mailing list