neo icon indicating copy to clipboard operation
neo copied to clipboard

The release "neo-cli-win-x64.zip" can't run on Windows Server

Open chenzhitong opened this issue 1 year ago • 10 comments

This problem still exists in 3.6.2 and needs to be fixed https://github.com/neo-project/neo-node/issues/302

a88fb714129e3c7f70908c1fafdcddd

There are three solutions:

  1. Copy the libleveldb.dll (511KB) of the neo-gui-2.x and replace it with the original libleveldb.dll (257KB), but this version is older. image
  2. Installing Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 (x64) on Windows Server. It needs to be stated in the Release's Readme. image
  3. Compile an up-to-date version of libleveldb.dll for windows server and package it into neo-cli release.

chenzhitong avatar Apr 22 '24 07:04 chenzhitong

@chenzhitong You can try out https://github.com/cschuchardt88/neo/releases/tag/v1.1.2 that is latest.

cschuchardt88 avatar Apr 22 '24 09:04 cschuchardt88

@chenzhitong You can try out https://github.com/cschuchardt88/neo/releases/tag/v1.1.2 that is latest.

It works on windows 10/11 but not works on windows server

image

chenzhitong avatar Apr 22 '24 10:04 chenzhitong

@chenzhitong try this updated LevelDBStore LevelDBStore.zip

Also you may want to put libleveldb.dll in the same directory as LevelDBStore plugin. Reason being is Windows Server is more strict when it comes to search paths for libraries.

cschuchardt88 avatar Apr 22 '24 11:04 cschuchardt88

@chenzhitong try this updated LevelDBStore LevelDBStore.zip

Also you may want to put libleveldb.dll in the same directory as LevelDBStore plugin. Reason being is Windows Server is more strict when it comes to search paths for libraries.

It's still not working.

image

chenzhitong avatar Apr 23 '24 02:04 chenzhitong

@chenzhitong Have look at https://github.com/neo-project/neo-modules/pull/899 I'm hoping this PR will fix the issues.

This is latest build. from the PR libleveldb.zip LevelDBStore.zip

Also you want to do this when downloading image

cschuchardt88 avatar Apr 23 '24 03:04 cschuchardt88

image

It's still not working. @cschuchardt88

The libleveldb.dll in the libleveldb.zip you sent is the same as in the current neo-cli release, with no changes. levelDBStore.dll is different from the existing one, but still won't run on Windows Server (without vc_redist.x64.exe installed)

chenzhitong avatar Apr 23 '24 08:04 chenzhitong

@chenzhitong ok vc_redist.x64.exe is requirement... We all have vs2022 installed; so i wonder if this as always been a problem.

cschuchardt88 avatar Apr 23 '24 17:04 cschuchardt88

This problem was fixed in neo 2.x, when the neo-cli release used the libleveldb.dll (511KB) from neo-gui, which doesn't depend on vc_redist.x64.exe. In neo 3.1.0 and earlier, this bug does not exist. In neo 3.2.1, the problem has reappeared, used the libleveldb.dll (257KB), Maybe the previous version of libleveldb.dll is out of date. @cschuchardt88

chenzhitong avatar Apr 24 '24 03:04 chenzhitong

@cschuchardt88 vc_redist.x64.exe is required by libleveldb.dll because it is compiled with vs2022. We can release the vc++.dll with neo-cli that is required for it work.

cschuchardt88 avatar Apr 24 '24 13:04 cschuchardt88

Hi @chenzhitong, It's working here. We did a test yesterday on a Windows Server using the latest release. It worked. Can you try again?

lock9 avatar May 24 '24 16:05 lock9

Hi @chenzhitong, It's working here. We did a test yesterday on a Windows Server using the latest release. It worked. Can you try again?

image

Still not working (without additionally installing vc_redist.x64.exe)

You can create a clean Windows Server in the cloud server without installing any software, just neo-cli, and it will not run

chenzhitong avatar May 31 '24 09:05 chenzhitong

Can we package vc_redist.x64.exe (24.2MB) into neo-cli to automatically run the installer when the 0x8007007E error occurs.

chenzhitong avatar May 31 '24 09:05 chenzhitong