Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Re: GSH error after applying API patch 83

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Re: GSH error after applying API patch 83


Chronological Thread 
  • From: Shilen Patel <>
  • To: Paul Engle <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Re: GSH error after applying API patch 83
  • Date: Mon, 4 Jun 2018 11:15:50 +0000
  • Accept-language: en-US
  • Authentication-results: oit.duke.edu; spf=none
  • Ironport-phdr: 9a23:2LSwcRMM8sWBF5GOY8Il6mtUPXoX/o7sNwtQ0KIMzox0I/z9rarrMEGX3/hxlliBBdydt6oZzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlIiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXshfSTFPAp+yYYUMAeoOP+hXr4jhqFQBthaxHxWgBOb1xzNUnHL736s32PkhHwHc2wwgGsoDvmnUrNX0MKcdT+a1x7TSwzrZc/NZxzP945XPfxA6ofGMXLZwftTXyUQ0CgzFk1aQppL/MzyLy+sNrnGW4ux9XuyhjG4nrht+ojmpxso0hYnJnIUVyk3c9Spn2oY5P8e3SFZjYdK8CpRfrDqaN5dsQsw4X25opDo1xacCuZ6/ZygKyYgnyADFZ/ObaYeI5hbjWeCMKjl7nHJoYK+zihas/US6xODwTNS43VVOoyZfjNXBuXEA2wTO5sWHVPdx5Ems1SyB2g3c8O1JL1g4laTFJJMi3rI9k58evVrDEyPqmkj7ibWZe0o49ee07unnbLTrqYOdOoJxjgz+PLghltG5DO8lKAYBRXKb9v651LD7/U32XrFKjvoun6ncqp/aJMAbqre2Aw5by4ov9QqzAy2h0NQZgXkLNk9KeA+Ej4f3IV3BPu33Deqnj1Stljdk2ezGM6X8DpjNMHTPirnscaxg50NfzAc/185T6p1VB70ZJfL8QE7xtNjWDh8jNAy0xv7qCM591oMfXWKAHKmZPbjPvl+V5eIgPfOAa5EItzbgM/Ql/eLhjWclmV8BeqmkxZQXaGq/HvR7O0WWf2Dsjs4cEWcRoAU+VvfqhUaGUT5SfHayQ7k86i8hBIKnC4fDWp6igKaH3CilAp1aeHpKBU6RHnf1JM24XKI0YT+WauJnnTgJHey5Roku0RyGrg7xxvxqIveCqQMCspe279h04+DV3Sk76TFwR5CG02CJQmdckn4LSnk70L0p8h818UuKzaUt268QLtdU/f4cF15ibZM=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Does it help if you do the following before running gsh?  (Change the path to some place else.)

 

export GSH_JVMARGS="-Dlibrary.jansi.path=/some/other/temp/path/with/exec"

 

Thanks!

 

- Shilen

 

From: <> on behalf of Paul Engle <>
Date: Friday, May 25, 2018 at 12:17 PM
To: "" <>
Subject: [grouper-users] Re: GSH error after applying API patch 83

 

 

Okay, I found the underlying problem. We routinely mount /tmp with the noexec option, so that's what's causing the failure. Grouper probably shouldn't be trying to exec stuff from /tmp, though. That goes against the CIS security benchmark.

 

  -paul


-- 

Paul Engle

Office of Information Technology

713-348-4702

 

 

On Fri, May 25, 2018 at 10:55 AM Paul Engle <> wrote:

 

My standalone dev box is RHEL7.4, using Oracle java 1.8.0_151. When I patched the grouper api yesterday, I started getting errors when trying to run an interactive gsh. Thinking it was just a crufty dev environment, I tried a fresh install and am still getting the same error. So I redid the fresh install up to patch 82 (where the dev install had been prior to yesterday), and gsh on the fresh install works fine. After applying patch 83 it starts to throw the error again. Below is the stack trace of what I'm getting. I'm not sure if it's a RedHat thing or an oracle java thing, but whatever it is doesn't seem to happen in the tier container version (built using CentOS7 & openjdk zulu).

 

  -paul

 

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.path, /tmp/libjansi-64-8599569245033140568.so: /tmp/libjansi-64-8599569245033140568.so: 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 java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:348)

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:68)

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:65)

at java.security.AccessController.doPrivileged(Native Method)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:65)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:162)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

at org.codehaus.groovy.tools.shell.Main.installAnsi(Main.groovy:257)

at org.codehaus.groovy.tools.shell.Main.setTerminalType(Main.groovy:243)

at org.codehaus.groovy.tools.shell.Main.main(Main.groovy:124)

at edu.internet2.middleware.grouper.app.gsh.GrouperShell.grouperShellHelper(GrouperShell.java:288)

at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:167)

at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)

 

 


-- 

Paul Engle

Office of Information Technology

713-348-4702




Archive powered by MHonArc 2.6.19.

Top of Page