Marcel Reutegger created OAK-9483:
-------------------------------------
Summary: UpgradeIT fails when noexec is set on temp folder
Key: OAK-9483
URL: https://issues.apache.org/jira/browse/OAK-9483
Project: Jackrabbit Oak
Issue Type: Bug
Components: segment-tar
Reporter: Marcel Reutegger
Assignee: Marcel Reutegger
Fix For: 1.42.0
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.
{noformat}
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)
{noformat}
This is a known issue with 1.6.1 and was fixed via OAK-5961
--
This message was sent by Atlassian Jira
(v8.3.4#803005)