Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9888

freshclam fails updating the signature database during integration tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Commons Clam 2.1.0
    • Commons
    • None

    Description

      [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 4.13.3) created. 
      [main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating PaxExam runner for class org.apache.sling.commons.clam.it.tests.ClamdServiceIT 
      [main] INFO org.testcontainers.dockerclient.DockerClientProviderStrategy - Loaded org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy from ~/.testcontainers.properties, will try it first 
      [main] INFO org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy - Found docker client settings from environment 
      [main] INFO org.testcontainers.dockerclient.DockerClientProviderStrategy - Found Docker environment with Environment variables, system properties and defaults. Resolved dockerHost=unix:///var/run/docker.sock 
      [main] INFO org.testcontainers.DockerClientFactory - Docker host IP address is localhost 
      [main] INFO org.testcontainers.DockerClientFactory - Connected to docker: 
        Server Version: 19.03.13 
        API Version: 1.40 
        Operating System: Ubuntu 18.04.5 LTS 
        Total Memory: 96630 MB 
      [main] INFO org.testcontainers.DockerClientFactory - Ryuk started - will monitor and terminate Testcontainers containers on JVM exit 
      [main] INFO org.testcontainers.DockerClientFactory - Checking the system... 
      [main] INFO org.testcontainers.DockerClientFactory - ✔︎ Docker server version should be at least 1.6.0 
      [main] INFO org.testcontainers.DockerClientFactory - ✔︎ Docker environment should have more than 2GB free disk space 
      [main] INFO docker[mk0x/docker-clamav:alpine] - Creating container for image: mk0x/docker-clamav:alpine 
      [main] INFO docker[mk0x/docker-clamav:alpine] - Starting container with ID: b02102292908fa22a0a88dd30488457414a24bfed37f0893a63af01bdf88b2e8 
      [main] INFO docker[mk0x/docker-clamav:alpine] - Container mk0x/docker-clamav:alpine is starting: b02102292908fa22a0a88dd30488457414a24bfed37f0893a63af01bdf88b2e8 
      [main] ERROR docker[mk0x/docker-clamav:alpine] - Could not start container 
      java.lang.IllegalStateException: Container exited with code 1 
      at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:457) 
      at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:317) 
      at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81) 
      at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:315) 
      at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:302) 
      at org.apache.sling.commons.clam.it.tests.ClamTestSupport.configuration(ClamTestSupport.java:55) 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
      at java.lang.reflect.Method.invoke(Method.java:498) 
      at org.ops4j.pax.exam.spi.reactors.ReactorManager.addConfigurationsToReactor(ReactorManager.java:248) 
      at org.ops4j.pax.exam.spi.reactors.ReactorManager.prepareReactor(ReactorManager.java:184) 
      at org.ops4j.pax.exam.junit.impl.ProbeRunner.<init>(ProbeRunner.java:78) 
      at org.ops4j.pax.exam.junit.PaxExam.createDelegate(PaxExam.java:82) 
      at org.ops4j.pax.exam.junit.PaxExam.<init>(PaxExam.java:73) 
      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 org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104) 
      at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86) 
      at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) 
      at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26) 
      at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) 
      at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:362) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:377) 
      at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:138) 
      at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:465) 
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:451) 
      [main] ERROR docker[mk0x/docker-clamav:alpine] - Log output from the failed container: 
      [bootstrap] Initial clam DB download. 
      
      Fri Nov 6 16:13:14 2020 -> ClamAV update process started at Fri Nov 6 16:13:14 2020 
      
      Fri Nov 6 16:13:14 2020 -> daily database available for download (remote version: 25980) 
      
      Fri Nov 6 16:13:19 2020 -> ^Mirror https://database.clamav.net is not synchronized. 
      
      Fri Nov 6 16:13:19 2020 -> !Unexpected error when attempting to update database: daily 
      
      Fri Nov 6 16:13:19 2020 -> ^fc_update_databases: fc_update_database failed: Up-to-date (1) 
      
      Fri Nov 6 16:13:19 2020 -> !Database update process failed: Up-to-date (1) 
      
      Fri Nov 6 16:13:19 2020 -> !Update failed. 
      
      [bootstrap] Schedule freshclam DB updater. 
      
      [bootstrap] Run clamav daemon 
      
      Fri Nov 6 16:13:19 2020 -> !Can't open file or directory 
      
      LibClamAV Error: cli_loaddbdir(): No supported database files found in /store
      

      Attachments

        Activity

          People

            olli Oliver Lietz
            olli Oliver Lietz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: