Dear all


We experience major difficulties re-indexing our content on DSpace 1.6.2 
(http://scholar.sun.ac.za). When using the Basic Search and Advanced Search, 
nothing is retrieved. Any advise out there?



We get the following after deleting indexes and then trying to create them 
again.

The script we run is attached. This used to work. We recently upgraded to 
Ubuntu 10.04 and DSpace 1.6.2, but this script ran successfully after the 
upgrades.

The problem has only occurred during the last week or so. We suspect that 
something trying to be indexed is throwing the error, some metadata field 
content.

Are we right?



Many thanks in advance



Kind regards

Ina


Ina Smith
E-Research Repository Manager | Library and Information Service | University of 
Stellenbosch | Private Bag X5036, 7599 | South Africa
http://scholar.sun.ac.za | E-mail: ism...@sun.ac.za<mailto:ism...@sun.ac.za> | 
Tel:  +27 21 808 9139 | Skype: smith.ina | Office hours: Mo-Fr: 08h00-16h30
E-Navorsingsbewaarplekbestuurder | Biblioteek- en Inligtingsdiens | 
Universiteit van Stellenbosch | Privaatsak X5036, 7599 | Suid-Afrika
http://scholar.sun.ac.za  | E-pos: ism...@sun.ac.za<mailto:ism...@sun.ac.za> | 
Tel:  +27 21 808 9139 | Skype: smith.ina | Kantoorure: Mo-Fr: 08h00-16h30

[cid:image001.jpg@01CB7429.F6DB9D20]





  >>>>

Creating new indexes... Please wait.

Exception: read past EOF

java.io.IOException: read past EOF

      at

org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:146)

      at

org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)

      at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:66)

      at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:207)

      at

org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:168)

      at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:722)

      at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:452)

      at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:781)

      at org.dspace.search.DSIndexer.createIndex(DSIndexer.java:425)

      at org.dspace.search.DSIndexer.main(DSIndexer.java:539)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:616)

      at

org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212)

  >>>>


<<inline: image001.jpg>>

#!/bin/bash

# Stop the services
echo "Stopping services... Please wait."
sudo service apache2 stop
sleep 10
sudo service tomcat6 stop

# Build the webapp
cd /home/dspace/dspace-1.6.2-src-release
echo "Start building packages... Please wait"
mvn package -U clean package
cd /home/dspace/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir
echo "Start ant compilation... Please wait"
ant -Doverwrite=true update clean_backups
sleep 3

# Delete the index
echo "Deleting indexes... Please wait."
/home/dspace/bin/dspace index -v -f -d

# Create new index tables
echo "Creating new indexes... Please wait."
/home/dspace/bin/dspace index-init

# Populate the indexes
echo "Populating new indexes... Please wait."
/home/dspace/bin/dspace index -v -i

# Start the services again
echo "Starting services... Please wait."
sudo service tomcat6 start
sleep 5
sudo service apache2 start

echo 
"******************************************************************************"
echo "Remember to redeploy if there are changes to the default Tomcat ROOT 
interface"
echo 
"******************************************************************************"
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to