Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9483

UpgradeIT fails when noexec is set on temp folder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.42.0
    • Component/s: segment-tar
    • Labels:
      None

      Description

      The test starts a sub process with oak-run console using version 1.6.1 and runs a groovy script to initialize a test repository. This may fail on systems that have noexec set on the temp directory.

      Apache Jackrabbit Oak 1.6.1
      Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-1.6.1 in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib], no jansi-1.6.1 in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib], no jansi in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib], /tmp/libjansi-64-1-12423079325386101654.6: /tmp/libjansi-64-1-12423079325386101654.6: failed to map segment from shared object: Operation not permitted]
      	at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182)
      	at org.fusesource.hawtjni.runtime.Library.load(Library.java:140)
      	at org.fusesource.jansi.internal.CLibrary.<clinit>(CLibrary.java:42)
      	at org.fusesource.jansi.AnsiConsole.wrapOutputStream(AnsiConsole.java:48)
      	at org.fusesource.jansi.AnsiConsole.<clinit>(AnsiConsole.java:38)
      	at org.apache.jackrabbit.oak.console.GroovyConsole.<clinit>(GroovyConsole.groovy:45)
      	at org.apache.jackrabbit.oak.console.Console.main(Console.java:155)
      	at org.apache.jackrabbit.oak.run.ConsoleCommand.execute(ConsoleCommand.java:26)
      	at org.apache.jackrabbit.oak.run.Mode.execute(Mode.java:65)
      	at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
      

      This is a known issue with 1.6.1 and was fixed via OAK-5961

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mreutegg Marcel Reutegger
                Reporter:
                mreutegg Marcel Reutegger
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: