java.lang.RuntimeException: Cannot import null, non existent folder or non directory file '/var/tmp/artifactory-uploads/20071213.140000.zip_extract/repositories/ibg-snapshots'.

JFrog JIRA | Scott Rankin | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I have configured automated backups of my repository and have it set to exclude one of the four local repositories (a snapshot repository). When I try to restore the backup, it throws an exception complaining that it is missing a repository directory (the one I excluded from the backups): java.lang.RuntimeException: Cannot import null, non existent folder or non directory file '/var/tmp/artifactory-uploads/20071213.140000.zip_extract/repositories/ibg-snapshots'. at org.artifactory.repo.JcrRepo.importFromDir(JcrRepo.java:353) at org.artifactory.repo.JcrRepo.importFrom(JcrRepo.java:523) at org.artifactory.config.CentralConfig.importLocalRepositories(CentralConfig.java:408) at org.artifactory.config.CentralConfig.importFrom(CentralConfig.java:373) at org.artifactory.webapp.spring.ArtifactoryWebApplicationContext.importFrom(ArtifactoryWebApplicationContext.java:89) at org.artifactory.webapp.wicket.importexport.system.ImportSystemPanel$1.onSubmit(ImportSystemPanel.java:78) at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1275) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:769) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:126) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:161) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:285) 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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:170) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:83) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) When I configure the backup to include all the repositories, the restore completes successfully.

    JFrog JIRA | 9 years ago | Scott Rankin
    java.lang.RuntimeException: Cannot import null, non existent folder or non directory file '/var/tmp/artifactory-uploads/20071213.140000.zip_extract/repositories/ibg-snapshots'.
  2. 0

    I have configured automated backups of my repository and have it set to exclude one of the four local repositories (a snapshot repository). When I try to restore the backup, it throws an exception complaining that it is missing a repository directory (the one I excluded from the backups): java.lang.RuntimeException: Cannot import null, non existent folder or non directory file '/var/tmp/artifactory-uploads/20071213.140000.zip_extract/repositories/ibg-snapshots'. at org.artifactory.repo.JcrRepo.importFromDir(JcrRepo.java:353) at org.artifactory.repo.JcrRepo.importFrom(JcrRepo.java:523) at org.artifactory.config.CentralConfig.importLocalRepositories(CentralConfig.java:408) at org.artifactory.config.CentralConfig.importFrom(CentralConfig.java:373) at org.artifactory.webapp.spring.ArtifactoryWebApplicationContext.importFrom(ArtifactoryWebApplicationContext.java:89) at org.artifactory.webapp.wicket.importexport.system.ImportSystemPanel$1.onSubmit(ImportSystemPanel.java:78) at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1275) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:769) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:126) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:161) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:285) 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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:170) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:83) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) When I configure the backup to include all the repositories, the restore completes successfully.

    JFrog JIRA | 9 years ago | Scott Rankin
    java.lang.RuntimeException: Cannot import null, non existent folder or non directory file '/var/tmp/artifactory-uploads/20071213.140000.zip_extract/repositories/ibg-snapshots'.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Cannot import null, non existent folder or non directory file '/var/tmp/artifactory-uploads/20071213.140000.zip_extract/repositories/ibg-snapshots'.

      at org.artifactory.repo.JcrRepo.importFromDir()
    2. org.artifactory.repo
      JcrRepo.importFrom
      1. org.artifactory.repo.JcrRepo.importFromDir(JcrRepo.java:353)
      2. org.artifactory.repo.JcrRepo.importFrom(JcrRepo.java:523)
      2 frames
    3. org.artifactory.config
      CentralConfig.importFrom
      1. org.artifactory.config.CentralConfig.importLocalRepositories(CentralConfig.java:408)
      2. org.artifactory.config.CentralConfig.importFrom(CentralConfig.java:373)
      2 frames
    4. org.artifactory.webapp
      ImportSystemPanel$1.onSubmit
      1. org.artifactory.webapp.spring.ArtifactoryWebApplicationContext.importFrom(ArtifactoryWebApplicationContext.java:89)
      2. org.artifactory.webapp.wicket.importexport.system.ImportSystemPanel$1.onSubmit(ImportSystemPanel.java:78)
      2 frames
    5. Wicket Core
      AbstractDefaultAjaxBehavior.onRequest
      1. org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1275)
      2. org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:769)
      3. org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:126)
      4. org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:161)
      5. org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:285)
      5 frames
    6. org.apache.wicket
      BehaviorRequestTarget.processEvents
      1. org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
      1 frame
    7. Wicket Request
      AbstractRequestCycleProcessor.processEvents
      1. org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
      1 frame
    8. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1094)
      2. org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
      3. org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248)
      4. org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
      5. org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
      6 frames
    9. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      1 frame
    10. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:170)
      2. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95)
      2 frames
    11. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      1 frame
    12. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:83)
      2. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95)
      2 frames
    13. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      10. org.mortbay.jetty.Server.handle(Server.java:324)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      16 frames
    14. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
      1 frame