[GeoNetwork-users-fr] TR: Installation de la v 2.2.1 sous tomcat : impossible d'importer la globalité de mes fiches sous zip

Bonjour,

Suite à quelques pistes que Jonathan a pu m'indiquer aujourd'hui... je reviens sur lucene.

J'avais omis de vous joindre le message d'erreur obtenu :

**************************************

ATTENTION: Exception executing accept

java.net.SocketException: Too many open files

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312)

at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:666)

at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:876)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

at java.lang.Thread.run(Unknown Source)

**************************************

Un lien intéressant concernant lucene :
https://www.seegrid.csiro.au/twiki/bin/view/Infosrvices/GeoNetworkMigration#Re_Import_metadata_records

Il semble qu'il puisse manquer certains fichiers dans le répertoire lucene (téléchargeables sur la page du lien ci-dessus) :

**************************************
"Fixing the lucene search
You have to follow these steps, if lucene is not working because of the following error:

-- The requested operation could not be performed.
FileNotFoundException : no segments* file found in org.apache.lucene.store.FSDirectory@/usr/local/geonetwork/web/geonetwork/WEB-INF/lucene/nonspatial: files:"

Download the missing files and extract them on your local machine:
lucene-nonspatial-files-geonetwork-trunk.zip: Lucene files from a GeoNetwork 2.4.0-trunk version --

Copy them to the server into the following directory:
/usr/local/geonetwork/web/geonetwork/WEB-INF/lucene/nonspatial

**************************************

Un autre post intéressant mais il ne s'agit que d'un constat qui est resté en suspens sur la liste geonetwork (voir dernière remarque).
http://n2.nabble.com/Re-I-O-Exception-Too-many-open-files-td2014235.html

**************************************
Additionnal info :

- I have taken a look at the result given by lsof and I am surprise to see
that those 2 documents are open several times simultaneously :
"WEB-INF/lucene/_t8.cfs" and "WEB-INF/lucene/_sy.cfs"
Is that a normal behaviour? I will trace this during the WE.

- Regarding the fact of being harvested by another app (geonetwork). How can
one know that one is being harvested?

**************************************

Pas sûre que ces informations correspondent à notre problème...
- Problème de version de machine java comme lu auparavent ?
- Config tomcat ?
- Problème dans le répertoire lucene/nonspatial ?

Que tenteriez-vous ?

Merci d'avance.

Garance SALVAT
DSI/Direction des Informations Géographiques
Service Géomatique

-----Message d'origine-----

De : Jonathan Maura
Envoyé : jeudi 29 octobre 2009 00:19
À : SALVAT Garance
Objet : Re: [GeoNetwork-users-fr] Installation de la v 2.2.1 sous tomcat : impossible d'importer la globalité de mes fiches sous zip

Bon juste un retour d'expérience qui ne va pas forcément t'avancer , mais le problème n'a pas été réglé. Nous avons trouvé que le bug de plantage au redémarrage vient de la réindexation par lucene à chaque démarrage.
Il a fallu désactiver le harvesting d'entrepôt distant pour retrouver un geosource fonctionnel. Pour ton cas .... je ne te propose pas de baisser ton nombre de méta données...
J'ai lu certain post (anglophone) sur la désactivation de cette réindexation par lucène mais impossible de remettre la main dessus.
Je te tiens au courant si je trouve plus d'information, mais après test le changement de jvm n'y étais pour rien Voilà!
Bonne journée
jonathan