Here the description how i found out the error and resolved it. Artifactory gets the following error message: 2011-01-11 16:56:47,316 [art-exec-16] [ERROR] (o.a.r.i.IndexerServiceImpl:322) - Fetching index files failed: Failed to index repository 'eAntrag'.. 2011-01-11 16:56:47,385 [art-exec-15] [ERROR] (o.a.r.i.IndexerServiceImpl:245) - Could not merge virtual repository indexes. java.lang.RuntimeException: Index creation failed. at org.artifactory.repo.index.RepoIndexer.createIndex(RepoIndexer.java:165) [artifactory-core-2.2.0.jar:na] at org.artifactory.repo.index.IndexerServiceImpl.mergeVirtualRepoIndexes(IndexerServiceImpl.java:235) [artifactory-core-2.2.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.5.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.5.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.5.0_16] at java.lang.reflect.Method.invoke(Method.java:585) [na:1.5.0_16] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) [spring-tx-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:74) [artifactory-core-2.2.0.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:46) [artifactory-core-2.2.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at $Proxy30.mergeVirtualRepoIndexes(Unknown Source) [na:na] at org.artifactory.repo.index.IndexerServiceImpl.index(IndexerServiceImpl.java:153) [artifactory-core-2.2.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.5.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.5.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.5.0_16] at java.lang.reflect.Method.invoke(Method.java:585) [na:1.5.0_16] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) [spring-aop-3.0.0.RELEASE.jar:3.0.0.RELEASE] at $Proxy30.index(Unknown Source) [na:na] at org.artifactory.repo.index.IndexerJob.onExecute(IndexerJob.java:56) [artifactory-core-2.2.0.jar:na] at org.artifactory.repo.index.IndexerJob.onExecute(IndexerJob.java:38) [artifactory-core-2.2.0.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:44) [artifactory-core-2.2.0.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-core-2.2.0.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) [na:1.5.0_16] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) [na:1.5.0_16] at java.lang.Thread.run(Thread.java:595) [na:1.5.0_16] Caused by: java.lang.RuntimeException: Failed to create directory '/opt/artifactory-2.2.0/data/tmp/work/artifactory.index.repo-716282265'. at org.artifactory.util.FileUtils.createRandomDir(FileUtils.java:111) [artifactory-config-2.2.0.jar:na] at org.artifactory.repo.index.RepoIndexer.createIndex(RepoIndexer.java:150) [artifactory-core-2.2.0.jar:na] ... 30 common frames omitted
In my previous tests i tried to create a directory in "%Artifactory_HOME%/data/tmp/work" from command line with same user running artifactory and i got no errors - the directory was created But i tried again and again and - I wondering - i get a error message on command line: "Too many links" And thats what i've required - an error message =). These error occures because the files in directory "%Artifactory_HOME%/data/tmp/work" were not cleaned up from artifactory - and theres a default number of inodes determined by file system size. And these number of inodes have been achieved. My Artifactory is running on Solaris - to information. Now the information how i got fixed it: 1. stop artifactory 2. delete directory "%Artifactory_HOME%/data/tmp/work" 3. delete directory "%Artifactory_HOME%/data/index" 4. add the Parameter -Dartifactory.jcr.fixConsistency=true in artifactory start file or see in Forum how to set this parameter. (remove the parameter after starting, because this increases the start time of artifactory. 5. start artifactory 6. The error is resolved. Anyone questions????? Post me and i try to help with indexing problems. [email protected] Thanks for the tips, Yossi. -- View this message in context: http://forums.jfrog.org/Index-creation-failed-Could-not-merge-virtual-repository-indexes-tp5911382p5970295.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
