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
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Re-index
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Mon, 7 Mar 2016 11:23:41 +0000
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 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 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 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 From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Alan.Stiles" <alan.stiles@open.ac.uk> 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 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 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.
|
- References:
- Re: [EP-tech] Re-index
- From: Monica Wood <monica.wood@utas.edu.au>
- Re: [EP-tech] Re-index
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Re: [EP-tech] Re-index
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Re: [EP-tech] Re-index
- Prev by Date: Re: [EP-tech] Antwort: Access user via javascript?
- Next by Date: Re: [EP-tech] select and mysql 5.6.27
- Previous by thread: Re: [EP-tech] Re-index
- Next by thread: [EP-tech] Open Access Event 4th April Glasgow
- Index(es):