jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Repository won't start after import
Date Mon, 23 Feb 2009 08:29:53 GMT
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
>

Mime
View raw message