archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <predato...@gmail.com>
Subject Re: 500 Internal server error getting artifact.
Date Mon, 16 Apr 2012 19:00:43 GMT
I lost a bit of patience and reverted my Archiva VM's back to the pre
1.4-M2 state running v1.3.5 and everything is working again.

So there is either a bug or a config issue.  Until I hear otherwise, I'm
going to try and install 1.4-M2 clean and see if that helps.  Otherwise, I
could use some tips on debugging the 500 error.

On Mon, Apr 16, 2012 at 10:33 AM, Jeff <predatorvi@gmail.com> wrote:

> I upgraded to 1.4-M2 on Friday and over the weekend, my Jenkins SONAR jobs
> failed.  The root-most cause listed in the stack trace is:
>
> Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
> transfer file:
> http://10.9.3.12:8220/archiva/repository/internal/org/codehaus/sonar/sonar-maven3-plugin/2.14/sonar-maven3-plugin-2.14.pom.
> Return code is: 500, ReasonPhrase:Internal Server Error.
>
> It seems to be in the central repository but is definitely not cached in
> Archiva.  I'm not sure if the 500 is coming from Archiva or the external
> proxy.  There is nothing in the tomcat/archiva logs relating to the getting
> of that artifact.
>
> Since the upgrade I have done full scans on my two repositories and have
> been enabling index downloading.
>
> What else could I look a to determine the problem?  In the logs I see an
> error related to indexing, but wouldn't think that would be an issue with
> downloading artifacts.
>
> Any thoughts?
>
> Here are the details of the indexing error in case it is relevant:
>
>
> 2012-04-16 10:00:00,367 [pool-2-thread-1] INFO
> org.apache.archiva.repository.scanner.RepositoryScannerInstance  - Walk
> Started: [internal] C:\Tomcat\archiva\data\repositories\internal
> 2012-04-16 10:00:01,258 [pool-2-thread-1] ERROR
> org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure
> - *Consumer [create-archiva-metadata] had an error when processing file
> [C:\Tomcat\archiva\data\repositories\internal\.indexer\nexus-maven-repository-index.zip]:
> Not a valid artifact path in a Maven 2 repository, not enough directories:
> .indexer\nexus-maven-repository-index.zip*
> *java.lang.IllegalArgumentException: Not a valid artifact path in a Maven
> 2 repository, not enough directories:
> .indexer\nexus-maven-repository-index.zip*
>  at
> org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryPathTranslator.getArtifactForPath(Maven2RepositoryPathTranslator.java:169)
>  at
> org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryStorage.readArtifactMetadataFromPath(Maven2RepositoryStorage.java:534)
>  at
> org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.processFile(ArchivaMetadataCreationConsumer.java:154)
>  at
> org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.processFile(ArchivaMetadataCreationConsumer.java:217)
>  at
> org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure.execute(ConsumerProcessFileClosure.java:60)
>  at
> org.apache.commons.collections.functors.IfClosure.execute(IfClosure.java:117)
>  at
> org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388)
>  at
> org.apache.archiva.repository.scanner.RepositoryScannerInstance.directoryWalkStep(RepositoryScannerInstance.java:160)
>  at
> org.codehaus.plexus.util.DirectoryWalker.fireStep(DirectoryWalker.java:174)
>  at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:392)
>  at
> org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:386)
>  at org.codehaus.plexus.util.DirectoryWalker.scan(DirectoryWalker.java:345)
>  at
> org.apache.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:136)
>  at
> org.apache.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:71)
>  at
> org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:163)
>  at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:124)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>  at java.lang.Thread.run(Thread.java:662)
> 2012-04-16 10:00:18,305 [pool-2-thread-1] INFO
> org.apache.archiva.repository.scanner.RepositoryScannerInstance  - Walk
> Finished: [internal] C:\Tomcat\archiva\data\repositories\internal
> 2012-04-16 10:00:18,320 [pool-2-thread-1] INFO
>
>  Thanks!!
>
> --
>
> Jeff Vincent
> predatorvi@gmail.com
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
> I ♥ DropBox <http://db.tt/9O6LfBX> !!
>
>



-- 
Jeff Vincent
predatorvi@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox <http://db.tt/9O6LfBX> !!

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