You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Jonathan Opperman <Jo...@ecngroup.co.nz> on 2011/04/15 00:12:43 UTC
RE: Help for users@archiva.apache.org
Hi All,
Not sure if this is the correct list to ask for help?
Upgraded from 1.2.2 to 1.3.4.....
Getting this in the archiva.log
2011-04-14 22:59:16,912 [pool-3-thread-1] ERROR
taskQueueExecutor#indexin= g - Error executing task
org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Trying
to= =20index an artifact but the context is already closed
=20 at
org.apache.maven.archiva.scheduled.executors.ArchivaIndexing=
TaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:115)
=20 at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExe=
cutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.Executors$Run=
nableAdapter.call(Executors.java:442)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.ru=
n(FutureTask.java:176)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExe=
cutor.runWorker(ThreadPoolExecutor.java:987)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExe=
cutor$Worker.run(ThreadPoolExecutor.java:528)
=20 at java.lang.Thread.run(Thread.java:619)
How do I correct this?
ta
Regards,
Jonathan
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
#####################################################################################
RE: Help for users@archiva.apache.org
Posted by Jonathan Opperman <Jo...@ecngroup.co.nz>.
Now more errors:
Should I be reverting back to my backup? or can this be fixed?
2011-04-15 11:20:00,912 [pool-2-thread-1] WARN
org.apache.maven.archiva.repository.scanner.functors.TriggerBeginScanClo
sure - Consumer [index-content] cannot begin: read past EOF
org.apache.maven.archiva.consumers.ConsumerException: read past EOF
at
org.apache.archiva.consumers.lucene.NexusIndexerConsumer.beginScan(Nexus
IndexerConsumer.java:112)
at
org.apache.archiva.consumers.lucene.NexusIndexerConsumer.beginScan(Nexus
IndexerConsumer.java:125)
at
org.apache.maven.archiva.repository.scanner.functors.TriggerBeginScanClo
sure.execute(TriggerBeginScanClosure.java:72)
at
org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.
java:388)
at
org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance.<i
nit>(RepositoryScannerInstance.java:101)
at
org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance.<i
nit>(RepositoryScannerInstance.java:114)
at
org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.sca
n(DefaultRepositoryScanner.java:117)
at
org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.sca
n(DefaultRepositoryScanner.java:67)
at
org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTa
skExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:141)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter
.call(Executors.java:442)
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask
.java:176)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor
ker(ThreadPoolExecutor.java:987)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: read past EOF
at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.jav
a:151)
at
org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.j
ava:38)
at
org.apache.lucene.store.IndexInput.readVInt(IndexInput.java:78)
at
org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.jav
a:73)
at
org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:321)
at
org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306)
at
org.apache.lucene.index.SegmentReader.get(SegmentReader.java:228)
at
org.apache.lucene.index.MultiSegmentReader.<init>(MultiSegmentReader.jav
a:55)
at
org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexRead
er.java:104)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.j
ava:653)
at
org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.j
ava:115)
at
org.apache.lucene.index.IndexReader.open(IndexReader.java:316)
at
org.apache.lucene.index.IndexReader.open(IndexReader.java:227)
at
org.sonatype.nexus.index.context.DefaultIndexingContext.getIndexReader(D
efaultIndexingContext.java:387)
at
org.sonatype.nexus.index.context.DefaultIndexingContext.getIndexSearcher
(DefaultIndexingContext.java:409)
at
org.sonatype.nexus.index.context.DefaultIndexingContext.checkAndUpdateIn
dexDescriptor(DefaultIndexingContext.java:210)
at
org.sonatype.nexus.index.context.DefaultIndexingContext.prepareIndex(Def
aultIndexingContext.java:174)
at
org.sonatype.nexus.index.context.DefaultIndexingContext.<init>(DefaultIn
dexingContext.java:132)
at
org.apache.maven.archiva.scheduled.tasks.TaskCreator.createContext(TaskC
reator.java:93)
at
org.apache.archiva.consumers.lucene.NexusIndexerConsumer.beginScan(Nexus
IndexerConsumer.java:108)
... 14 more
2011-04-15 11:20:00,916 [pool-2-thread-1] INFO
org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance -
Walk Started: [internal]
/data/archive/archiva/data/repositories/internal
2011-04-15 11:20:07,924 [Thread-17] ERROR taskQueueExecutor#indexing -
Error executing task
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
java.lang.NullPointerException
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(Futu
reTask.java:299)
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask
.java:118)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:127)
Caused by: java.lang.NullPointerException
at
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor
.finishIndexingTask(ArchivaIndexingTaskExecutor.java:174)
at
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor
.executeTask(ArchivaIndexingTaskExecutor.java:89)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter
.call(Executors.java:442)
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask
.java:176)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor
ker(ThreadPoolExecutor.java:987)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Thread.java:619)
-----Original Message-----
From: Jonathan Opperman [mailto:Jonathan.Opperman@ecngroup.co.nz]
Sent: Friday, 15 April 2011 10:13 a.m.
To: users@archiva.apache.org
Subject: RE: Help for users@archiva.apache.org
Hi All,
Not sure if this is the correct list to ask for help?
Upgraded from 1.2.2 to 1.3.4.....
Getting this in the archiva.log
2011-04-14 22:59:16,912 [pool-3-thread-1] ERROR
taskQueueExecutor#indexin= g - Error executing task
org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Trying
to= =20index an artifact but the context is already closed
=20 at
org.apache.maven.archiva.scheduled.executors.ArchivaIndexing=
TaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:115)
=20 at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExe=
cutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.Executors$Run=
nableAdapter.call(Executors.java:442)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.ru=
n(FutureTask.java:176)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExe=
cutor.runWorker(ThreadPoolExecutor.java:987)
=20 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExe=
cutor$Worker.run(ThreadPoolExecutor.java:528)
=20 at java.lang.Thread.run(Thread.java:619)
How do I correct this?
ta
Regards,
Jonathan
########################################################################
#############
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
########################################################################
#############
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
#####################################################################################
RE: Help for users@archiva.apache.org
Posted by Jonathan Opperman <Jo...@ecngroup.co.nz>.
-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com]
Sent: Friday, 15 April 2011 12:52 p.m.
To: users@archiva.apache.org
Subject: Re: Help for users@archiva.apache.org
On Thu, Apr 14, 2011 at 8:32 PM, Jonathan Opperman
<Jo...@ecngroup.co.nz> wrote:
> Could give this a go, where do I find the documentation on how to do
> this?
>>Here's a page on upgrading, though it doesn't say anything about
>>1.3.x: http://archiva.apache.org/docs/1.3.4/adminguide/upgrade.html
Yep, this is the guide I followed.
>>Still, the advice there should work -- delete the archiva database
>>(not the users db) and the .index directories that by default are in
>>the top level of each of your repositories. (I've also seen another
>>directory, .indexer perhaps?)
>>
>>All of that can be deleted, Archiva will re-create it.
Ta for this, will give it a go and see if those errors disappear.
Jonathan
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
#####################################################################################
Re: Help for users@archiva.apache.org
Posted by Wendy Smoak <ws...@gmail.com>.
On Thu, Apr 14, 2011 at 8:32 PM, Jonathan Opperman
<Jo...@ecngroup.co.nz> wrote:
> Could give this a go, where do I find the documentation on how to do
> this?
Here's a page on upgrading, though it doesn't say anything about
1.3.x: http://archiva.apache.org/docs/1.3.4/adminguide/upgrade.html
Still, the advice there should work -- delete the archiva database
(not the users db) and the .index directories that by default are in
the top level of each of your repositories. (I've also seen another
directory, .indexer perhaps?)
All of that can be deleted, Archiva will re-create it.
--
Wendy
RE: Help for users@archiva.apache.org
Posted by Jonathan Opperman <Jo...@ecngroup.co.nz>.
Hi Wendy,
-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com]
Sent: Friday, 15 April 2011 11:59 a.m.
To: users@archiva.apache.org
Subject: Re: Help for users@archiva.apache.org
On Thu, Apr 14, 2011 at 6:12 PM, Jonathan Opperman
<Jo...@ecngroup.co.nz> wrote:
> Not sure if this is the correct list to ask for help?
>
> Upgraded from 1.2.2 to 1.3.4.....
>
>>Yes, it's the right list. What steps did you take to do the upgrade?
I basically just kept the data directory and unzipped the new release
into a directory. Created a symlink to the data directory again. I
changed
the default port from 8080 to 8088 and kept the archiva.xml file too.
>>I'm not really familiar with the differences between those two
>>versions, but I would delete all the indexes and database and let it
>>rebuild them.
Could give this a go, where do I find the documentation on how to do
this?
>>(The artifacts and poms themselves are safe, it's just the data that
>>Archiva builds up around them that might not work with the new
>>version.)
Ta for the reply.
Jonathan
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
#####################################################################################
Re: Help for users@archiva.apache.org
Posted by Wendy Smoak <ws...@gmail.com>.
On Thu, Apr 14, 2011 at 6:12 PM, Jonathan Opperman
<Jo...@ecngroup.co.nz> wrote:
> Not sure if this is the correct list to ask for help?
>
> Upgraded from 1.2.2 to 1.3.4.....
>
Yes, it's the right list. What steps did you take to do the upgrade?
I'm not really familiar with the differences between those two
versions, but I would delete all the indexes and database and let it
rebuild them.
(The artifacts and poms themselves are safe, it's just the data that
Archiva builds up around them that might not work with the new
version.)
--
Wendy