Uploaded image for project: 'WebDanica'
  1. WebDanica
  2. WEBDAN-260

Should check that ArcrepositoryClient used by tomcat has valid configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.0
    • None
    • None
    • None
    • webdanicasprint - vinter 2017

    Description

      We just got the following error while trying to harvest using the webdanica harvestworkflow:

      05-Oct-2017 14:40:50.421 INFO [Thread-16] dk.kb.webdanica.core.interfaces.harvesting.SingleSeedHarvest.<init> Harvest for seed 'http://00036146-sharp-gx-15.takedrivers.cz/' constructed successfully
      05-Oct-2017 14:40:50.430 INFO [Thread-16] dk.kb.webdanica.core.utils.SystemUtils.log Now waiting for job for eventharvest 'webdanica-trial-1507207249088' to be scheduled ..
      05-Oct-2017 14:40:55.439 INFO [Thread-16] dk.kb.webdanica.core.utils.SystemUtils.log Job for eventharvest 'webdanica-trial-1507207249088' has now been scheduled as job 205 at date: Thu Oct 05 14:40:55 CEST 2017
      05-Oct-2017 14:40:55.441 INFO [Thread-16] dk.kb.webdanica.core.utils.SystemUtils.log State of Job '205' is now NEW. Waiting for job (harvest 'webdanica-trial-1507207249088') to finish at date: Thu Oct 05 14:40:55 CEST 2017
      05-Oct-2017 14:42:55.507 INFO [Thread-16] dk.kb.webdanica.core.utils.SystemUtils.log After 2 minutes the job 205(harvest 'webdanica-trial-1507207249088') now has finished state DONE at date: Thu Oct 05 14:42:55 CEST 2017
      WARN  Cannot write to required directory '/home/test/ARKIV'
      05-Oct-2017 14:42:55.565 WARNING [Thread-16] dk.kb.webdanica.webapp.workflow.HarvesterThread.run Exception during harvesting:dk.netarkivet.common.exceptions.ArgumentNotValid: Error creating singleton of class 'dk.netarkivet.common.distribute.arcrepository.LocalArcRepositoryClient': 
      	at dk.netarkivet.common.utils.SettingsFactory.getInstance(SettingsFactory.java:91)
      	at dk.netarkivet.common.distribute.arcrepository.ArcRepositoryClientFactory.getViewerInstance(ArcRepositoryClientFactory.java:54)
      	at dk.netarkivet.viewerproxy.webinterface.Reporting.getFilesForJob(Reporting.java:91)
      	at dk.kb.webdanica.core.interfaces.harvesting.SingleSeedHarvest.finishHarvest(SingleSeedHarvest.java:296)
      	at dk.kb.webdanica.webapp.workflow.HarvesterThread.run(HarvesterThread.java:48)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: dk.netarkivet.common.exceptions.PermissionDenied: Cannot write to required directory '/home/test/ARKIV'
      	at dk.netarkivet.common.utils.FileUtils.createDir(FileUtils.java:673)
      	at dk.netarkivet.common.distribute.arcrepository.LocalArcRepositoryClient.<init>(LocalArcRepositoryClient.java:88)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at dk.netarkivet.common.utils.SettingsFactory.getInstance(SettingsFactory.java:88)
      	... 5 more
      
       dk.netarkivet.common.exceptions.ArgumentNotValid: Error creating singleton of class 'dk.netarkivet.common.distribute.arcrepository.LocalArcRepositoryClient': 
      	at dk.netarkivet.common.utils.SettingsFactory.getInstance(SettingsFactory.java:91)
      	at dk.netarkivet.common.distribute.arcrepository.ArcRepositoryClientFactory.getViewerInstance(ArcRepositoryClientFactory.java:54)
      	at dk.netarkivet.viewerproxy.webinterface.Reporting.getFilesForJob(Reporting.java:91)
      	at dk.kb.webdanica.core.interfaces.harvesting.SingleSeedHarvest.finishHarvest(SingleSeedHarvest.java:296)
      	at dk.kb.webdanica.webapp.workflow.HarvesterThread.run(HarvesterThread.java:48)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: dk.netarkivet.common.exceptions.PermissionDenied: Cannot write to required directory '/home/test/ARKIV'
      	at dk.netarkivet.common.utils.FileUtils.createDir(FileUtils.java:673)
      	at dk.netarkivet.common.distribute.arcrepository.LocalArcRepositoryClient.<init>(LocalArcRepositoryClient.java:88)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at dk.netarkivet.common.utils.SettingsFactory.getInstance(SettingsFactory.java:88)
      	... 5 more
      

      Attachments

        Issue Links

          Activity

            People

              svc Søren Vejrup Carlsen (Inactive)
              svc Søren Vejrup Carlsen (Inactive)
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: