From: Dennis B. (JIRA) <ji...@jf...> - 2008-06-20 12:00:35
|
[ http://www.jfrog.org/jira/browse/RTFACT-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Brennan resolved RTFACT-389. ----------------------------------- Resolution: Fixed We have not seen the issue since adding the configuration you suggested... <param name="consistencyFix" value="true"/> <param name="consistencyCheck" value="true"/> It also appears the latest beta resolves the issue too. Thanks. > Database gets corrupted > ----------------------- > > Key: RTFACT-389 > URL: http://www.jfrog.org/jira/browse/RTFACT-389 > Project: Artifactory > Issue Type: Bug > Components: Artifact Storage > Affects Versions: 1.2.5 > Environment: Windows Server2003 > Reporter: Dennis Brennan > Assignee: Yoav Landman > Fix For: 1.3.0 > > Attachments: workspace.xml > > > Occasionally an artifact stored in the repository will become corrupt and we will no longer be able to upload new snapshots. Seems like a rollback issue - see stacktrace... > 2008-04-07 16:28:03,913 [WARN ] (CentralConfig.java:162{10}) - Could not determine server instance id from configuration. Using hostname instead. > 2008-04-07 16:28:04,709 [INFO ] (KeyVals.java :87{10}) - Previous Artifactory revision is '1154'. Current revision is '1154'. > 2008-04-07 16:28:04,944 [INFO ] (SchedulerFactoryBean.java:879{10}) - Starting Quartz Scheduler now > 2008-04-07 16:28:05,397 [INFO ] (BackupHelper.java:88{10}) - Backup activated with cron expression '0 0 /12 * * ?'. > 2008-04-07 16:28:20,226 [ERROR] (RequestCycle.java:1331{10}) - Failed to execute JcrCallback. > java.lang.RuntimeException: Failed to execute JcrCallback. > at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:214) > at org.artifactory.repo.JcrRepo.undeploy(JcrRepo.java:289) > at org.artifactory.webapp.wicket.browse.BrowseRepoPanel$1.getResponse(BrowseRepoPanel.java:216) > at org.artifactory.webapp.wicket.behavior.AbstractStringResponseAjaxBehavior.onRequest(AbstractStringResponseAjaxBehavior.java:45) > at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100) > at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90) > at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1094) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248) > at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) > at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:170) > at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:83) > at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.RuntimeException: Failed to remove node. > at org.artifactory.jcr.JcrFsItem.delete(JcrFsItem.java:124) > at org.artifactory.jcr.JcrFolder.delete(JcrFolder.java:167) > at org.artifactory.repo.JcrRepo.delete(JcrRepo.java:548) > at org.artifactory.repo.JcrRepo$4.doInJcr(JcrRepo.java:291) > at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:210) > ... 31 more > Caused by: javax.jcr.ItemNotFoundException: b23e2fda-f05b-4c65-976e-3e0504137ee3 > at org.apache.jackrabbit.core.ItemManager.createItemInstance(ItemManager.java:496) > at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:325) > at org.apache.jackrabbit.core.NodeImpl.onRemove(NodeImpl.java:664) > at org.apache.jackrabbit.core.NodeImpl.removeChildNode(NodeImpl.java:629) > at org.apache.jackrabbit.core.ItemImpl.internalRemove(ItemImpl.java:875) > at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:1059) > at org.artifactory.jcr.JcrFsItem.delete(JcrFsItem.java:122) > ... 35 more > 2008-04-08 00:00:00,145 [INFO ] (JcrRepo.java :332{10}) - Exporting repository 'libs-releases' to 'D:\software\artifactory-1.2.5\backup\20080408.040000\repositories\libs-releases'. > 2008-04-08 00:00:10,005 [INFO ] (JcrRepo.java :332{10}) - Exporting repository 'libs-snapshots' to 'D:\software\artifactory-1.2.5\backup\20080408.040000\repositories\libs-snapshots'. > 2008-04-08 00:00:32,537 [INFO ] (JcrRepo.java :332{10}) - Exporting repository 'plugins-releases' to 'D:\software\artifactory-1.2.5\backup\20080408.040000\repositories\plugins-releases'. > 2008-04-08 00:00:32,740 [INFO ] (JcrRepo.java :332{10}) - Exporting repository 'ext-releases' to 'D:\software\artifactory-1.2.5\backup\20080408.040000\repositories\ext-releases'. > 2008-04-08 00:00:33,334 [INFO ] (JcrRepo.java :332{10}) - Exporting repository 'central-cache' to 'D:\software\artifactory-1.2.5\backup\20080408.040000\repositories\central-cache'. > 2008-04-08 00:01:14,680 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:01:15,399 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:01:15,664 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:01:15,868 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:01:49,682 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:06,886 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:11,558 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:11,574 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:11,964 [WARN ] (JcrHelper.java:198{10}) - Failed to close jcr session. > javax.jcr.InvalidItemStateException: a67db9ed-5651-4079-98f1-9285f0ae10be/{http://artifactory.jfrog.org/1.0}downloadCount has been modified externally > at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1244) > at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849) > at org.artifactory.jcr.JcrSessionWrapper.save(JcrSessionWrapper.java:109) > at org.artifactory.jcr.JcrHelper.closeSession(JcrHelper.java:546) > at org.artifactory.jcr.JcrHelper.unbindSession(JcrHelper.java:196) > at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:176) > at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:83) > at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:595) > 2008-04-08 00:02:12,839 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:12,902 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:16,449 [WARN ] (HttpArtifactoryResponse.java:46{10}) - Failed to send http error (null). > 2008-04-08 00:02:34,309 [ERROR] (RepoFilter.java:151{10}) - Upload request failed > java.lang.RuntimeException: Failed to save resource '{libs-snapshots:com/***/-SNAPSHOT.war}'. > at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:441) > at org.artifactory.engine.UploadEngine.process(UploadEngine.java:198) > at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:149) > at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) > at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:77) > at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.RuntimeException: Failed to execute JcrCallback. > at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:214) > at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:391) > ... 20 more > Caused by: javax.jcr.RepositoryException: Failed to import resource '{libs-snapshots:com/***/-SNAPSHOT.war}': failed to retrieve state of intermediary node: 3dc89f16-c872-4960-8cb9-350c9c8bc39c: failed to retrieve state of intermediary node: 3dc89f16-c872-4960-8cb9-350c9c8bc39c: 3dc89f16-c872-4960-8cb9-350c9c8bc39c > at org.artifactory.repo.JcrRepo$8.doInJcr(JcrRepo.java:416) > at org.artifactory.repo.JcrRepo$8.doInJcr(JcrRepo.java:393) > at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:210) > ... 21 more > Caused by: javax.jcr.RepositoryException: failed to retrieve state of intermediary node: 3dc89f16-c872-4960-8cb9-350c9c8bc39c: 3dc89f16-c872-4960-8cb9-350c9c8bc39c > at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath(HierarchyManagerImpl.java:206) > at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath(CachingHierarchyManager.java:200) > at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:295) > at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:963) > at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:394) > at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:352) > at org.artifactory.repo.JcrRepo$8.doInJcr(JcrRepo.java:406) > ... 23 more > Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: 3dc89f16-c872-4960-8cb9-350c9c8bc39c > at org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState(SessionItemStateManager.java:178) > at org.apache.jackrabbit.core.HierarchyManagerImpl.getItemState(HierarchyManagerImpl.java:119) > at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath(HierarchyManagerImpl.java:266) > at org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath(CachingHierarchyManager.java:132) > at org.apache.jackrabbit.core.HierarchyManagerImpl.resolvePath(HierarchyManagerImpl.java:202) > ... 29 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://www.jfrog.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |