iri icon indicating copy to clipboard operation
iri copied to clipboard

Error with RocksDB 5.7.3 on Windows Server 2012 R2

Open ekienmeier opened this issue 9 years ago • 32 comments

After upgrading from IRI 1.4.1.1 to 1.4.1.2, I get the following error when starting my full node:

11/10 10:44:42.926 [main] INFO  com.iota.iri.IRI - Welcome to IRI 1.4.1.2
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\xxxxxxx\AppData\Local\Temp\librocksdbjni2821609598978448657.dll: A dynamic link library (DLL) initialization routine failed
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
	at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
	at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
	at org.rocksdb.RocksDB.<clinit>(RocksDB.java:35)
	at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.<init>(RocksDBPersistenceProvider.java:28)
	at com.iota.iri.Iota.initializeTangle(Iota.java:203)
	at com.iota.iri.Iota.init(Iota.java:94)
	at com.iota.iri.IRI.main(IRI.java:86)
11/10 10:44:50.926 [Shutdown Hook] INFO  com.iota.iri.IRI - Shutting down IOTA node, please hold tight...

Running full node on Windows Server 2012 R2, all updates installed, JRE 1.8.0_151.

See also https://github.com/facebook/rocksdb/issues/2531.

ekienmeier avatar Nov 13 '17 11:11 ekienmeier

@ekienmeier do you have the latest VC redist.? https://download.visualstudio.microsoft.com/download/pr/11100230/15ccb3f02745c7b206ad10373cbca89b/VC_redist.x64.exe

I've reproduced the issue on a clean install of win10 + jdk 1.8.0_151. w/o VC redist. I got that UnsatisfiedLinkError, after installing it ran well.

alon-e avatar Nov 15 '17 12:11 alon-e

@alon-e Thanks for the hint. I tried the following Visual C++ Redistributables:

  • 2010 x86 & x64
  • 2012 Update 4 x86 & x64
  • 2013 x86 & x64
  • 2015 x86 & x64
  • 2017 x86 & x64

Unfortunately, nothing helped. I still get the same error message.

Inspecting the librocksdbjni-win64.dll with Dependency Walker results in 1 error:

image

but the missing DLL seems to be a Windows system DLL? Not sure what to make of it though.

ekienmeier avatar Nov 15 '17 14:11 ekienmeier

Could you check whether you SysWow64 contains api-ms-win-service-private-l1-1-0.dll?

th0br0 avatar Nov 15 '17 14:11 th0br0

This file exists twice in SysWOW64:

C:\Windows\SysWOW64\api-ms-win-service-private-l1-1-0.dll
C:\Windows\SysWOW64\downlevel\api-ms-win-service-private-l1-1-0.dll

ekienmeier avatar Nov 15 '17 14:11 ekienmeier

I have the same Problem like @ekienmeier . I want to install a new FullNode on Windows Server 2016. My Server configuration is the same.

maxi656 avatar Nov 16 '17 11:11 maxi656

Same issue here. After updating to 1.4.1.2 getting this error. Issue persists after reinstalling the mentioned VC redist.

Running Windows Server 2012R2.

hapklaar avatar Nov 21 '17 21:11 hapklaar

I have the same issue on latest Win 10. I too have the VC redist installed.

ThisIsJustARandomGuy avatar Nov 22 '17 17:11 ThisIsJustARandomGuy

me too, my 1.4.1.1 crashed, started using 1.4.1.2, got the following Cannot determine JNI library name for ARCH='x86' OS='windows 10' name='rocksdb' On windows 10

lunfardo314 avatar Nov 23 '17 17:11 lunfardo314

@lunfardo314 ARCH='x86' means you are running windows/java 32-bit version. check if it's java: java -version contains 64-bit. if not, install java 64-bit.

alon-e avatar Nov 23 '17 18:11 alon-e

installed 64 bit java and now error message changed to Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Evaldas\AppData\Local\Temp\librocksdbjni1872316059932011672.dll: A dynamic link library (DLL) initialization routine failed

lunfardo314 avatar Nov 23 '17 18:11 lunfardo314

Same problem here.., both java and VC_redist installed. Using windows 10 x64 home edition Works fine on my normal workstation but not on my new dedicated iri node server Any help is highly appreciated

huggre avatar Nov 26 '17 16:11 huggre

Same problem here.., both java and VC_redist installed. Using windows server 2016 installed vc redist and the file 'api-ms-win-service-private-l1-1-0.dll' is there

C:\Users\gott\Desktop\IOTA>java -jar iri-1.4.1.2.jar -p 14265 11/26 20:33:40.745 [main] INFO com.iota.iri.IRI - Welcome to IRI 1.4.1.2 Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\gott\AppData\Local\Temp\librocksdbjni125245605027345894.dll: Eine DLL-Initialisierungsroutine ist fehlgeschlagen at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78) at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56) at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64) at org.rocksdb.RocksDB.<clinit>(RocksDB.java:35) at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.<init>(RocksDBPersistenceProvider.java:28) at com.iota.iri.Iota.initializeTangle(Iota.java:203) at com.iota.iri.Iota.init(Iota.java:94) at com.iota.iri.IRI.main(IRI.java:86) 11/26 20:33:55.783 [Shutdown Hook] INFO com.iota.iri.IRI - Shutting down IOTA node, please hold tight... 11/26 20:34:01.807 [Shutdown Hook] ERROR com.iota.iri.IRI - Exception occurred shutting down IOTA node: java.lang.NullPointerException: null at com.iota.iri.network.replicator.ReplicatorSourcePool.shutdown(ReplicatorSourcePool.java:76) ~[iri-1.4.1.2.jar:na] at com.iota.iri.network.replicator.Replicator.shutdown(Replicator.java:30) ~[iri-1.4.1.2.jar:na] at com.iota.iri.Iota.shutdown(Iota.java:178) ~[iri-1.4.1.2.jar:na] at com.iota.iri.IRI.lambda$shutdownHook$0(IRI.java:253) ~[iri-1.4.1.2.jar:na] at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_151]

agenttank avatar Nov 26 '17 19:11 agenttank

Are you guys running the GUI?

I've been running a headless node (just executing the iri using java in the command line) on server 2012 R2 Essentials x64 with no problems whatsoever using the latest IRI.

I'm more than happy to try and look at different things on my system to help you troubleshoot yours.

inatangle avatar Nov 28 '17 00:11 inatangle

no, headless

agenttank avatar Nov 28 '17 07:11 agenttank

@inatangle I'm also running the node in headless mode, just like you. Are there any additional roles and/or features enabled on your server?

ekienmeier avatar Nov 28 '17 07:11 ekienmeier

nothing special... SMB/Cifs DFS-Replication IIS .net fw 3.5, 4.6 i just deinstalled Windows Defender, same thing happens.

librocksdbjni2821609598978448657.dll so this thing is "causing" it?

agenttank avatar Nov 28 '17 10:11 agenttank

Confirming the issue, I tried with three nodes:

  • Win 2012 R2, has been running up to v1.4.1.1 without any problems
  • Win 2016 Standard, also running for many months without problems
  • Brand new Wind 2012 R2, only installed Java and https://download.visualstudio.microsoft.com/download/pr/11100230/15ccb3f02745c7b206ad10373cbca89b/VC_redist.x64.exe

@alon-e I can give you root access (RDP) if it would help debugging. (And better PM me in slack, because I'm even more noob here)

LiQio avatar Nov 28 '17 12:11 LiQio

Same issue here. Trying to run headless node on:

  • Windows 10 x64
  • JRE 8u151
  • IRI 1.4.1.2

Tried installing VC redist, no change.

Zenzin1 avatar Nov 29 '17 06:11 Zenzin1

Hi guys,

My server's setup is pretty clean. The only non MS programs installed on it are: Chrome, Wireshark, Java and Node.js.

Roles I have installed and activated are: AD CS&DS, DNS, File and Storage, IIS, NAP, Remote Access, Remote Desktop Services and the Windows Server Essentials Experience.

Java is ver 8 1.5.1. Security level is set to high.

I let the server automatically download and install updates as they become available.

I have never knowingly installed the VC distribution packages although I guess some of those files could have migrated onto the system when I installed manufacturer's device drivers.

Dumb question I know, but are you running command prompt with admin privileges and running the iri from there?

Cheers,

inatangle avatar Nov 29 '17 06:11 inatangle

@inatangle The problem arises also from an elevated command prompt.

LiQio avatar Nov 29 '17 06:11 LiQio