EPrints Technical Mailing List Archive

Message: #02165


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

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

  • To: "EPrints.org Technical List" <eprints-tech@ecs.soton.ac.uk>
  • Subject: [EP-tech] Re: epadmin reindex (with xapian enabled on 3.3.12) throws a permission denied
  • From: Dennis - UT <dv.eprints@gmail.com>
  • Date: Thu, 22 Aug 2013 16:25:18 +0200

My mistake. I did "su eprints" from user root, leaving my current
directory to /root, thus a cwd fails because user eprints is not
allowed to go to /root/

Oh well, at least this is logged in history now for other people
making the same stupid mistake ;-)

Dennis

On Thu, Aug 22, 2013 at 4:20 PM, Dennis - UT <dv.eprints@gmail.com> wrote:
> 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
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/