EPrints Technical Mailing List Archive

Message: #02164


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] epadmin reindex (with xapian enabled on 3.3.12) throws a permission denied


I'm trying to reindex after a 3.3.12 upgrade (coming from 3.2.9):
/opt/eprints3/bin/epadmin reindex wewi eprint

It throws this error for each record it indexes:
cannot fetch initial working directory: Permission denied at
/opt/eprints3/bin/./perl_lib/File/Temp.pm line 2445

/tmp is littered with empty temp folders.

I'm using RHEL5.

Line 2445 points to the eval here:
sub DESTROY {
  my $self = shift;
  local($., $@, $!, $^E, $?);
  if ($self->unlink_on_destroy &&
      $$ == $self->{LAUNCHPID} && !$File::Temp::KEEP_ALL) {
    if (-d $self->{DIRNAME}) {
      # Some versions of rmtree will abort if you attempt to remove
      # the directory you are sitting in. We protect that and turn it
      # into a warning. We do this because this occurs during object
      # destruction and so can not be caught by the user.
      eval { rmtree($self->{DIRNAME}, $File::Temp::DEBUG, 0); };
      warn $@ if ($@ && $^W);
    }
  }
}

File::Path is up to date (which is the source of rmtree?).

Any suggestions?

Thanks

Dennis
University of Twente