jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-5961) Handle scenario where jansi library cannot be loaded
Date Fri, 02 Jun 2017 10:49:04 GMT

     [ https://issues.apache.org/jira/browse/OAK-5961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chetan Mehrotra updated OAK-5961:
---------------------------------
    Labels:   (was: candidate_oak_1_6)

Merged to 1.6 with 1797367

> Handle scenario where jansi library cannot be loaded
> ----------------------------------------------------
>
>                 Key: OAK-5961
>                 URL: https://issues.apache.org/jira/browse/OAK-5961
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: run
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.7.0, 1.8, 1.6.2
>
>
> Following exception is seen on setup where jansi cannot be loaded
> {noformat}
> Apache Jackrabbit Oak 1.6.1
> Repository connected in read-only mode. Use '--read-write' for write operations
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons:
[no jansi64-1.6.1 in java.library.path, no jansi-1.6.1 in java.library.path, no jansi in java.library.pa
> th, /tmp/libjansi-64-1-9219049328008584189.6: /tmp/libjansi-64-1-9219049328008584189.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}
> As per [1] such issues can occur if noexec is set for /tmp. Oak Console should handle
such case at least for those cases where the console is not to be loaded and just a script
needs to be run
> [1] https://support.cloudbees.com/hc/en-us/articles/215281717-Jenkins-fails-to-start-with-JNA-error



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message