EPrints Technical Mailing List Archive

Message: #05469


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

Re: [EP-tech] Re-index


Add a ‘--force’ flag, that should override the confirmation.  You might still see the question appear in the log but it shouldn’t wait for a response:

 

The chunk of code in epadmin (around line 1965 in 3.3.10) does the following, where $noise is incremented for each verbose flag and $force is set by the --force flag:

 

                if( $noise > 0 )

                {

                        print "\n";

                        print "You are about to reindex \"$datasetid\" in the ".$repo->get_id." repository.\n";

                        print "This can take some time.\n\n";

                        print "Number of records in set: ".$list->count."\n";

                }

                my $sure = $force || EPrints::Utils::get_input_confirm( "Continue", 1 );

                unless( $sure )

                {

                        print "Aborting then.\n\n";

                        exit( 1 );

                }

 

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 07 March 2016 10:44
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Re-index

 

Ah, no matter – I’ve figured it out but it wants input to proceed (y/n) and this isn’t being output to screen, only recorded in the log file? Is there a way around this?

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 07 March 2016 10:25
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Re-index

 

Thanks both – it needs a dataset for this as well; would this be “archive” or “archives”?

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Monica Wood
Sent: 03 March 2016 22:28
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Re-index

 

Hi There, 

 

The line Alan states would only output the standard output to the log file and miss all the error logging, which you will probably need.

 

To output the errors to the log file too, try:

 

<eprintsroot>/bin/epadmin reindex –verbose –verbose <ARCHIVEID> [<EPRINTID EPRINTID EPRINTID…]  > logfile.txt 2>&1 

 

Cheers,

Monica Wood
Library Systems Officer
Library | Division of Students & Education
University of Tasmania
Locked Bag 25
Hobart 7001
T +61 3 6226 1849
http://www.utas.edu.au/library

 

 

From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Alan.Stiles" <alan.stiles@open.ac.uk>
Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Thursday, 3 March 2016 at 9:16 PM
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: Re: [EP-tech] Re-index

 

Something like this I think…

 

<eprintsroot>/bin/epadmin reindex –verbose –verbose <ARCHIVEID> [<EPRINTID EPRINTID EPRINTID…]  > logfile.txt

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 03 March 2016 10:09
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re-index

 

Morning all! It’s been a while since I’ve been on here! I need to take a look at what our indexer is doing and I know in the past that I’ve run a re-index from the command line with double --verbose, dumping the log out to a file, but I cannot for the life of me remember how I did it! I know the syntax was in an email somewhere but I’ve changed machines and older emails have been archived on our Outlook server. Could anyone remind me of what I need to run on this?

 

Cheers!

Andrew


The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.


The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://lincoln.ac.uk/legal.

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.