Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2795

Error starting Tika 2.0 server with -spawnChild on Ubuntu

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0, 1.20
    • server
    • None

    Description

      Hallo.

      I triend to download Tika server 2.0.0 from here:

      https://builds.apache.org/job/Tika-trunk/lastStableBuild/org.apache.tika$tika-server/ 

      I tried to start on my Ubuntu server but with the -spawnChild, it doesn't work.

       

      sudo java -jar /opt/tika/tika-server-2.0.0-20181203.205013-340.jar -spawnChild
      Dec 05, 2018 2:22:32 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
      WARNING: J2KImageReader not loaded. JPEG2000 files will not be processed.
      See https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
      for optional dependencies.

      Dec 05, 2018 2:22:32 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
      WARNING: org.xerial's sqlite-jdbc is not loaded.
      Please provide the jar on your classpath to parse sqlite files.
      See tika-parsers/pom.xml for the correct version.
      INFO Starting Apache Tika 2.0.0-SNAPSHOT server
      INFO server watch dog is starting up
      Dec 05, 2018 2:22:32 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
      WARNING: J2KImageReader not loaded. JPEG2000 files will not be processed.
      See https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
      for optional dependencies.

      Dec 05, 2018 2:22:32 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
      WARNING: org.xerial's sqlite-jdbc is not loaded.
      Please provide the jar on your classpath to parse sqlite files.
      See tika-parsers/pom.xml for the correct version.
      INFO Starting Apache Tika 2.0.0-SNAPSHOT server
      java.nio.file.NoSuchFileException: /tmp/tika-server-child-process-mmap-2180120677326747096
      at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
      at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
      at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
      at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
      at java.base/java.nio.file.Files.readAttributes(Files.java:1755)
      at java.base/java.nio.file.Files.size(Files.java:2372)
      at org.apache.tika.server.TikaServerWatchDog$ChildProcess.<init>(TikaServerWatchDog.java:234)
      at org.apache.tika.server.TikaServerWatchDog$ChildProcess.<init>(TikaServerWatchDog.java:210)
      at org.apache.tika.server.TikaServerWatchDog.execute(TikaServerWatchDog.java:66)
      at org.apache.tika.server.TikaServerCli.execute(TikaServerCli.java:146)
      at org.apache.tika.server.TikaServerCli.main(TikaServerCli.java:127)
      ERROR Can't start:

      java.nio.file.NoSuchFileException: /tmp/tika-server-child-process-mmap-2180120677326747096

      at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
      at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
      at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
      at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
      at java.base/java.nio.file.Files.readAttributes(Files.java:1755)
      at java.base/java.nio.file.Files.size(Files.java:2372)
      at org.apache.tika.server.TikaServerWatchDog$ChildProcess.<init>(TikaServerWatchDog.java:234)
      at org.apache.tika.server.TikaServerWatchDog$ChildProcess.<init>(TikaServerWatchDog.java:210)
      at org.apache.tika.server.TikaServerWatchDog.execute(TikaServerWatchDog.java:66)
      at org.apache.tika.server.TikaServerCli.execute(TikaServerCli.java:146)
      at org.apache.tika.server.TikaServerCli.main(TikaServerCli.java:127)
      administrator@sengvivv02:/opt/tika$

       

       

      Instead, on a Windows machine, it starts right.

      Thanks a lot

      Mario

      Attachments

        Activity

          People

            tallison Tim Allison
            bisontim Mario Bisonti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: