[EP-tech] Re: epadmin reindex (with xapian enabled on 3.3.12) throws a permission denied
Dennis - UT
dv.eprints at gmail.com
Thu Aug 22 15:25:18 BST 2013
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 at 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/
More information about the Eprints-tech
mailing list