jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Podatelev <brightnesslev...@gmail.com>
Subject Re: Repository won't start after import
Date Mon, 23 Feb 2009 18:24:53 GMT
I'm not sure I am entitled to expose the actual content of the data i'm
trying to import, without which I assume there's no point to open a bug in
JIRA, I'll try to clear that.
So I'll try to proceed in this list by now, hope you guys will help.
I'm accessing the repo from two apps: a java web application and a
standalone java app. The webapp uses Spring and the repository is accessed
trough org.springmodules.jcr.jackrabbit.RepositoryFactoryBean. Standalone
application uses the setup almost identical to the one described in "first
hops". Among other things, standalone app has "import into repo" and "nudge
repo" options, first of which performs the aforementioned import, the latter
is just to check if the repo is okay.

Here's what I've noticed: after import is completed, when I try to start the
webapp, I get the exception described earlier.
But when I try to perform some basic reading with the standalone app, I get
this message:

...*repository initialized*
...*basic read: find a node, read it's name*
...*repository is shutting down*
5198 [main] INFO
org.apache.jackrabbit.core.observation.ObservationDispatcher - Notification
of EventListeners stopped.
5698 [main] INFO org.apache.jackrabbit.core.query.lucene.IndexMerger - *Unable
to stop IndexMerger. Deamon is busy.*
6009 [main] INFO org.apache.jackrabbit.core.query.lucene.SearchIndex - Index
closed: /var/jackrabbit/repository/workspaces/default/index
6022 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager -
Database '/var/jackrabbit/repository/workspaces/default/db' shutdown.*

*Is this is somehow related to the index corruption? Also, there's a typo in
that warning, it's either "daemon" or "demon" (:


On Mon, Feb 23, 2009 at 11:29 AM, Marcel Reutegger <marcel.reutegger@gmx.net
> wrote:

> Hi Sergey,
>
> if you are able to reproduce this with a test, can you please file a
> JIRA issue? Thanks.
>
> regards
>  marcel
>
> 2009/2/22 Sergey Podatelev <brightnesslevels@gmail.com>:
> > Thanks, Stefan, that did it.
> > However, I'm not happy that my index was corrupted.
> > Can someone please share why that might happen or how can I try to debug
> > this?
> > Looking at the default Jackrabbit's printouts during import I haven't
> found
> > anything criminal.
> >
> > On Fri, Feb 20, 2009 at 12:40 PM, Stefan Guggisberg <
> > stefan.guggisberg@gmail.com> wrote:
> >
> >> hi sergey,
> >>
> >> > org.apache.lucene.store.FSDirectory@
> >> /var/jackrabbit/repository/workspaces/default/index/_kn:
> >> > list() returned null
> >> >
> >> > Caused by: java.io.FileNotFoundException: cannot read directory
> >>
> >> seems like your index has somehow become corrupted.
> >>
> >> you can delete the search index folders
> >> (/var/jackrabbit/repository/workspaces/*/index)
> >> and try again. the index should be automatically rebuilt from scratch.
> >>
> >> cheers
> >> stefan
> >>
> >> On Fri, Feb 20, 2009 at 2:48 AM, Sergey Podatelev
> >> <brightnesslevels@gmail.com> wrote:
> >> > Hello,
> >> >
> >> > I've tried to import a document-view XML of about 5 megabytes.
> >> > The import went fine, and I didn't get any errors during. Here's what
> I
> >> got
> >> > in stdout ("importing" is my own printout):
> >> >
> >> > 5973 [main] INFO org.apache.jackrabbit.core.TransientRepository -
> >> Transient
> >> > repository initialized
> >> > 6004 [main] INFO org.apache.jackrabbit.core.TransientRepository -
> Session
> >> > opened
> >> > Importing...
> >> > 17936 [main] INFO
> >> > org.apache.jackrabbit.core.persistence.bundle.util.LRUNodeIdCache -
> >> > num=4948/10240 hits=4943 miss=5057
> >> > 18067 [main] INFO
> >> > org.apache.jackrabbit.core.persistence.bundle.util.LRUNodeIdCache -
> >> > num=4998/10240 hits=4998 miss=5002
> >> > 86107 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 743 documents in 1291 ms into _ph.
> >> > 86897 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 1000 documents in 449 ms into _pi.
> >> > 87377 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 1000 documents in 410 ms into _pj.
> >> > 87787 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 1000 documents in 365 ms into _pk.
> >> > 88190 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 1000 documents in 397 ms into _pl.
> >> > 88495 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 1000 documents in 285 ms into _pm.
> >> > 88546 [main] INFO org.apache.jackrabbit.core.TransientRepository -
> >> Session
> >> > closed
> >> > 88546 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Shutting
> >> down
> >> > repository...
> >> > 88558 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - IndexMerger terminated
> >> > 88572 [main] INFO org.apache.jackrabbit.core.query.lucene.SearchIndex
> -
> >> > Index closed: /var/jackrabbit/repository//repository/index
> >> > 88573 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - shutting
> >> down
> >> > workspace 'default'...
> >> > 88573 [main] INFO
> >> > org.apache.jackrabbit.core.observation.ObservationDispatcher -
> >> Notification
> >> > of EventListeners stopped.
> >> > 88727 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - merged 1000 documents in 209 ms into _pn.
> >> > 88735 [IndexMerger] INFO
> >> org.apache.jackrabbit.core.query.lucene.IndexMerger
> >> > - IndexMerger terminated
> >> > 88922 [main] INFO org.apache.jackrabbit.core.query.lucene.SearchIndex
> -
> >> > Index closed: /var/jackrabbit/repository/workspaces/default/index
> >> > 89958 [main] INFO
> >> > org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager
> -
> >> > Database '/var/jackrabbit/repository/workspaces/default/db' shutdown.
> >> > 89959 [main] INFO org.apache.jackrabbit.core.RepositoryImpl -
> workspace
> >> > 'default' has been shutdown
> >> > 89965 [main] INFO
> >> > org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager
> -
> >> > Database '/var/jackrabbit/repository//version/db' shutdown.
> >> > 89966 [main] INFO org.apache.jackrabbit.core.RepositoryImpl -
> Repository
> >> has
> >> > been shutdown
> >> > 89966 [main] INFO org.apache.jackrabbit.core.TransientRepository -
> >> Transient
> >> > repository shut down
> >> >
> >> > So, I don't see anything bad up there.
> >> > But then, when I try to start jackrabbit, I get this:
> >> >
> >> > 506 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting
> >> > repository...
> >> > 561 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
> >> > LocalFileSystem initialized at path
> /var/jackrabbit/repository/repository
> >> > 799 [main] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry -
> no
> >> > custom node type definitions found
> >> > 806 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
> >> > LocalFileSystem initialized at path /var/jackrabbit/repository/version
> >> > 1736 [main] INFO
> >> >
> >>
> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
> >> > - Database: Apache Derby / 10.4.1.3 - (648739)
> >> > 1736 [main] INFO
> >> >
> >>
> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
> >> > - Driver: Apache Derby Embedded JDBC Driver / 10.4.1.3 - (648739)
> >> > 2524 [main] INFO org.apache.jackrabbit.core.RepositoryImpl -
> initializing
> >> > workspace 'default'...
> >> > 2524 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
> >> > LocalFileSystem initialized at path
> >> > /var/jackrabbit/repository/workspaces/default
> >> > 2558 [main] INFO
> >> >
> >>
> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
> >> > - Database: Apache Derby / 10.4.1.3 - (648739)
> >> > 2558 [main] INFO
> >> >
> >>
> org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
> >> > - Driver: Apache Derby Embedded JDBC Driver / 10.4.1.3 - (648739)
> >> > 2931 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
> >> > 'default' initialized
> >> > 3118 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
> >> > LocalFileSystem initialized at path
> >> > /var/jackrabbit/repository/repository/index
> >> > 3229 [main] INFO org.apache.jackrabbit.core.query.lucene.SearchIndex -
> >> Index
> >> > initialized: /var/jackrabbit/repository//repository/index Version: 2
> >> > 3248 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
> >> > LocalFileSystem initialized at path
> >> > /var/jackrabbit/repository/workspaces/default/index
> >> > 4475 [main] ERROR org.apache.jackrabbit.core.RepositoryImpl - Failed
> to
> >> > initialize workspace 'default'
> >> > javax.jcr.RepositoryException: cannot read directory
> >> > org.apache.lucene.store.FSDirectory@
> >> /var/jackrabbit/repository/workspaces/default/index/_kn:
> >> > list() returned null: cannot read directory
> >> > org.apache.lucene.store.FSDirectory@
> >> /var/jackrabbit/repository/workspaces/default/index/_kn:
> >> > list() returned null: cannot read directory
> >> > org.apache.lucene.store.FSDirectory@
> >> /var/jackrabbit/repository/workspaces/default/index/_kn:
> >> > list() returned null
> >> >
> >> > Caused by: java.io.FileNotFoundException: cannot read directory
> >> > org.apache.lucene.store.FSDirectory@
> >> /var/jackrabbit/repository/workspaces/default/index/_kn:
> >> > list() returned null
> >> >    at
> >> >
> >>
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:502)
> >> >    at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
> >> >    at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.AbstractIndex.getReadOnlyIndexReader(AbstractIndex.java:273)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:715)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:302)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
> >> >    ... 13 more
> >> >
> >> > java.io.FileNotFoundException: cannot read directory
> >> > org.apache.lucene.store.FSDirectory@
> >> /var/jackrabbit/repository/workspaces/default/index/_kn:
> >> > list() returned null
> >> >    at
> >> >
> >>
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:502)
> >> >    at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
> >> >    at org.apache.lucene.index.IndexReader.open(IndexReader.java:167)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.AbstractIndex.getReadOnlyIndexReader(AbstractIndex.java:273)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:715)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:302)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:447)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:582)
> >> >    at
> >> >
> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:264)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
> >> >    at
> >> >
> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
> >> >    at
> >> >
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
> >> >    at
> >> >
> >>
> org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
> >> >
> >> >
> >> > I'm using Jackrabbit 1.4.5.
> >> >
> >> > --
> >> > sp
> >> >
> >>
> >
> >
> >
> > --
> > sp
> >
>



-- 
sp

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message