cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Failure to import on neo4j 3.5.28 on RHEL 8

Hello,
I have a fresh installation of neo4j 3.5.28 on a fresh RHEL 8 server, and am running into the following issue when I try to import my database:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no zstd-jni in java.library.path
Unsupported OS/arch, cannot find /linux/amd64/libzstd-jni.so or load zstd-jni from system libraries. Please try building from source the jar or providing libzstd-jni in you system.
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
	at java.lang.Runtime.loadLibrary0(Runtime.java:871)
	at java.lang.System.loadLibrary(System.java:1124)
	at com.github.luben.zstd.util.Native.load(Native.java:108)
	at com.github.luben.zstd.util.Native.load(Native.java:60)
	at com.github.luben.zstd.ZstdInputStream.<clinit>(ZstdInputStream.java:21)
	at org.neo4j.dbms.archive.CompressionFormat$2.decompress(CompressionFormat.java:68)
	at org.neo4j.dbms.archive.Loader.openArchiveIn(Loader.java:151)
	at org.neo4j.dbms.archive.Loader.load(Loader.java:67)
	at org.neo4j.commandline.dbms.LoadCommand.load(LoadCommand.java:134)
	at org.neo4j.commandline.dbms.LoadCommand.execute(LoadCommand.java:87)
	at org.neo4j.commandline.admin.AdminTool.execute(AdminTool.java:127)
	at org.neo4j.commandline.admin.AdminTool.main(AdminTool.java:51)

Newer versions of neo4j work fine, but I can't seem to fix this error. Any help would be appreciated.
Additionally, I get the same error whether I use the tarball installation or repository package installation. In both cases I verified the presence and permissions on the zstd-jni.jar file.

edit: replicated the issue on another RHEL 8 server

2 REPLIES 2

Turns out the issue was that our admins have /tmp and /var/tmp set to have the noexec flag, which was causing the error.

I didn't know about the noexec flag and was having the same issue.
Thanks for replying to your post with the answer!