My version 2.717, version mirroring from 2.711,
different hosts.
The initial mirror was successful, the cron job and
manual mirror attempts fail. On several attempts an
item did successfully syncronize.
The filename is different each time and is ascending.
If you need anything else please let me know.
From the server slow output, # Update mirror from
master now. (this can be slow!) .
<snip>
6
1
/var/www/html/fom_internal/cache/83.html
2
3
4
6
1
83 (missing or broken file): item needs update
*** Task mirrorClient failed
Error: Use of uninitialized value in concatenation
(.) or string at
/usr/lib/perl5/site_perl/5.6.1/FAQ/OMatic/Item.pm line 670.
FAQ::OMatic::maintenance
/usr/lib/perl5/site_perl/5.6.1/FAQ/OMatic/maintenance.pm
116
FAQ::OMatic::dispatch (eval 3) 1
FAQ::OMatic::dispatch
/usr/lib/perl5/site_perl/5.6.1/FAQ/OMatic/dispatch.pm 160
FAQ::OMatic::dispatch
/usr/lib/perl5/site_perl/5.6.1/FAQ/OMatic/dispatch.pm 141
main /var/www/cgi-bin/fom 16
</snip>
The additional output was inserted by me into Item.pm
<snip>
sub writeCacheCopy {
my $self = shift;
my $filename = $self->{'filename'};
if (defined($FAQ::OMatic::Config::cacheDir)
&& (-w $FAQ::OMatic::Config::cacheDir)) {
# my $staticFilename =
#
"$FAQ::OMatic::Config::cacheDir/$filename.html";
print "1\n";
print
$FAQ::OMatic::Config::cacheDir.$filename.".html\n";
my $staticFilename =
$FAQ::OMatic::Config::cacheDir.$filename.".html";
print "2\n";
my $params = {'file'=>$self->{'filename'},
'_fromCache'=>1};
# this link is coming from
inside the cache, so we
# can use relative links.
That's nice if we later
# wrap up the cache and mail it
somewhere.
print "3\n";
my $staticHtml =
$self->getWholePage($params, 1);
print "4\n";
if (not open(CACHEFILE,
">$staticFilename")) {
FAQ::OMatic::gripe('problem',
"Can't write
$staticFilename: $!");
print "5\n";
} else {
print CACHEFILE $staticHtml;
close CACHEFILE;
print "6\n";
if (not chmod(0644,
$staticFilename)) {
FAQ::OMatic::gripe('problem',
"chmod($staticFilename) failed: $!");
}
}
}
}
</snip>
Logged In: YES
user_id=778932
We no longer need to mirror. Did a manual copy and cut
over. My local modifications for debugging have been backed
out.