Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chenzhitong opened this issue Apr 22, 2024 · 12 comments · Fixed by #3293
Closed

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

chenzhitong opened this issue Apr 22, 2024 · 12 comments · Fixed by #3293

Comments

@chenzhitong
Copy link
Member

chenzhitong commented Apr 22, 2024

This problem still exists in 3.6.2 and needs to be fixed
neo-project/neo-node#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.
@cschuchardt88
Copy link
Member

cschuchardt88 commented Apr 22, 2024

@chenzhitong
Copy link
Member Author

chenzhitong commented Apr 22, 2024

@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

@cschuchardt88
Copy link
Member

cschuchardt88 commented Apr 22, 2024

@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.

@chenzhitong
Copy link
Member Author

chenzhitong commented Apr 23, 2024

@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

@cschuchardt88
Copy link
Member

cschuchardt88 commented Apr 23, 2024

@chenzhitong Have look at neo-project/neo-modules#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

@chenzhitong
Copy link
Member Author

chenzhitong commented Apr 23, 2024

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)

@cschuchardt88
Copy link
Member

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

@chenzhitong
Copy link
Member Author

chenzhitong commented Apr 24, 2024

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

@cschuchardt88
Copy link
Member

@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.

@lock9
Copy link
Contributor

lock9 commented May 24, 2024

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?

@chenzhitong
Copy link
Member Author

chenzhitong commented May 31, 2024

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants