I can't figure out why in netbeans that I can't see the remote-repos
index when I ask the app to reindex. It just tries and then gives up and
I can't see any index. Last week I could before I rebuilt my dev box. In
order to try to at least do some rudimentary troubleshooting I started
looking at the artifactory logs while asking netbeans to reindex the
maven remote-repos.
For one I see that the request log says a non authenticated user is
doing a GET on the remote-repos index, and is showing 404. I have all
the repos in the settings.xml in the left in the indexing page setup.
Also, in the settings.xml I have my username and password set up.
20120727215349|6|REQUEST|127.0.0.1|non_authenticated_user|GET|/remote-repos/.index/nexus-maven-repository-index.properties|HTTP/1.1|404|0
Finally, when I looked in the artifactory.log when requesting the
remote-repos index to update in netbeans, an exception gets thrown.
Could this be the cause of the issue I'm having (i.e. the index not
being indexed)?
2012-07-27 21:54:10,433 [pool-1-thread-11] [INFO ]
(o.a.r.i.IndexerServiceImpl:201) - Activating indexer manually
2012-07-27 21:54:10,435 [art-exec-10] [INFO ]
(o.a.r.i.IndexerServiceImpl:237) - Starting repositories indexing...
2012-07-27 21:54:11,471 [art-exec-11] [INFO ]
(o.a.r.i.MavenIndexManager:286) - Successfully saved index file
'/repositories/libs-release-local/.index/nexus-maven-repository-index.gz' and
index info '/repositories/libs-relea
se-local/.index/nexus-maven-repository-index.properties'.
2012-07-27 21:54:12,570 [art-exec-11] [INFO ]
(o.a.r.i.MavenIndexManager:286) - Successfully saved index file
'/repositories/libs-snapshot-local/.index/nexus-maven-repository-index.gz'
and index info '/repositories/libs-snap
shot-local/.index/nexus-maven-repository-index.properties'.
2012-07-27 21:54:13,487 [art-exec-11] [INFO ]
(o.a.r.i.MavenIndexManager:286) - Successfully saved index file
'/repositories/plugins-release-local/.index/nexus-maven-repository-index.gz'
and index info '/repositories/plugins
-release-local/.index/nexus-maven-repository-index.properties'.
2012-07-27 21:54:14,595 [art-exec-11] [INFO ]
(o.a.r.i.MavenIndexManager:286) - Successfully saved index file
'/repositories/plugins-snapshot-local/.index/nexus-maven-repository-index.gz'
and index info '/repositories/plugin
s-snapshot-local/.index/nexus-maven-repository-index.properties'.
2012-07-27 21:54:15,910 [art-exec-11] [INFO ]
(o.a.r.i.MavenIndexManager:286) - Successfully saved index file
'/repositories/ext-release-local/.index/nexus-maven-repository-index.gz'
and index info '/repositories/ext-release
-local/.index/nexus-maven-repository-index.properties'.
2012-07-27 21:54:18,354 [art-exec-11] [INFO ]
(o.a.r.i.MavenIndexManager:286) - Successfully saved index file
'/repositories/ext-snapshot-local/.index/nexus-maven-repository-index.gz' and
index info '/repositories/ext-snapsh
ot-local/.index/nexus-maven-repository-index.properties'.
2012-07-27 21:54:25,522 [art-exec-10] [ERROR]
(o.a.r.i.IndexerServiceImpl:386) - Could not merge virtual repository
indexes.
java.util.zip.ZipException: Not in GZIP format
at
java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:164)
[na:1.7.0_05]
at
java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:78) [na:1.7.0_05]
at
org.apache.maven.index.updater.IndexDataReader.<init>(IndexDataReader.java:52)
[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:521)
[indexer-core-3.1.0.jar:3.1.0]
at
org.artifactory.repo.index.RepoIndexer.getIndexDir(RepoIndexer.java:278)
[artifactory-core-2.6.2.jar:na]
at
org.artifactory.repo.index.RepoIndexer.mergeInto(RepoIndexer.java:195)
[artifactory-core-2.6.2.jar:na]
at
org.artifactory.repo.index.IndexerServiceImpl.mergeVirtualRepoIndexes(IndexerServiceImpl.java:371)
[artifactory-core-2.6.2.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[na:1.7.0_05]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[na:1.7.0_05]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[na:1.7.0_05]
at java.lang.reflect.Method.invoke(Method.java:601) [na:1.7.0_05]
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121)
[artifactory-jcr-storage-2.6.2.jar:na]
at
org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:49)
[artifactory-jcr-storage-2.6.2.jar:na]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at $Proxy55.mergeVirtualRepoIndexes(Unknown Source) [na:na]
at
org.artifactory.repo.index.IndexerServiceImpl.index(IndexerServiceImpl.java:270)
[artifactory-core-2.6.2.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[na:1.7.0_05]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[na:1.7.0_05]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[na:1.7.0_05]
at java.lang.reflect.Method.invoke(Method.java:601) [na:1.7.0_05]
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at $Proxy55.index(Unknown Source) [na:na]
at
org.artifactory.repo.index.IndexerJob.onExecute(IndexerJob.java:52)
[artifactory-core-2.6.2.jar:na]
at
org.artifactory.repo.index.IndexerJob.onExecute(IndexerJob.java:1)
[artifactory-core-2.6.2.jar:na]
at
org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:46)
[artifactory-jcr-storage-2.6.2.jar:na]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[quartz-1.6.6.jar:1.6.6]
at
org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:85)
[artifactory-jcr-storage-2.6.2.jar:na]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[na:1.7.0_05]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[na:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_05]
2012-07-27 21:54:25,526 [art-exec-10] [INFO ]
(o.a.r.i.IndexerServiceImpl:271) - Finished repositories indexing...
Regards,
BillR
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users