AcePerl question

Keith Bradnam keith at thale.life.nottingham.ac.uk
Tue Jan 9 10:47:43 EST 2001


Here's hoping someone can help.

I have a niggly (non-life-threatening) problem in that if anyone uses any
AceBrowser interface (text search, class browser, query etc.) to access
any acedb database on our server, then it generates the following line in
the web error log on our server.

ERROR: failed to read file


It has taken me a long time to track down what is causing this message.
It appears to be the OpenDatabase() function call that is usually present
in every AceBrowser script.

E.g. if you take the standard 'grep' script that comes as part of
AceBrowser and strip away most of it to just leave:

#!/usr/bin/perl

use strict 'vars';
use vars qw/$DB $URL %PAPERS/;

use Ace 1.51;
use CGI 2.42 qw/:standard :html3 escape/;
use CGI::Carp qw/fatalsToBrowser/;
use AceSubs qw(:DEFAULT :search); 

$DB = OpenDatabase();

print "DB is $DB\n";

#---------------------------

Then calling this script still produces the 'ERROR: failed to read file'
web log message.


The OpenDatabase() function is part of AceSubs.pm and is simply:

sub OpenDatabase {
  my $name = shift || get_symbolic();
  my $db = $DB{$name};
  unless ($db and $db->ping) {
    my ($host,$port) = getDatabase($name);
    return $DB{$name} =
Ace->connect(-host=>$host,-port=>$port,-timeout=>50);
  }
  return $db;
}


Can anyone suggest why this function produces these error messages?  It's
not doing any damage as far as I can tell, but it is starting to clog up
our web error log file.

We have AceBrowser 2.10, Apache 1.3.12 running on Tru64 UNIX.

Thanks in advance,

Keith



~  Keith Bradnam - UK CropNet (http://ukcrop.net) webmaster and
~  Arabidopsis Genome Resource  (http://ukcrop.net/agr) developer.
~
~  Nottingham Arabidopsis Stock Centre, University Park,
~  University of Nottingham, NG7 2RD, UK.  Tel: (0115) 951 3091 










More information about the Acedb mailing list