Support Article
UnsatisfiedLinkError: /tmp/snappy-1.0.5-libsnappyjava.so
SA-26414
Summary
We receive an error when starting PRPC.
We are using Pega Marketing 7.1.2 on Pega 719, deployed on JBoss 6.4GA and Oracle 12c on Red Hat Enterprise Linux Server 6.6 (Santiago) .
Error Messages
13:20:54,473 ERROR [stderr] (server.company.com) Caused by: java.lang.UnsatisfiedLinkError: /tmp/snappy-1.0.5-libsnappyjava.so: /tmp/snappy-1.0.5-libsnappyjava.so: failed to map segment from shared object: Operation not permitted
Steps to Reproduce
Root Cause
For security reasons, the Operating System prevents executable code being loaded from the system temp directory.
The Snappy 3rd party component that is used a part of Cassandra places its native code component snappy-1.0.5-libsnappyjava.so to system temp directory, from where the JVM attempts to access it.
Resolution
The default behaviour can be overridden using the following JVM startup parameter:
-Dorg.xerial.snappy.tempdir=<folder>
Where <folder> stands for a path from where shared objects should be saved.
Published August 4, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.