shadowsocks / shadowsocks-rust

A Rust port of shadowsocks
https://shadowsocks.org/
MIT License
8.15k stars 1.13k forks source link

1.20.x ssservice.exe and sswinservice.exe can not run on windows server 2016 #1589

Closed peng5545 closed 3 weeks ago

peng5545 commented 3 weeks ago

run ssservice or sswinservice from cmd, nothing output but ssserver run just fine. downgrade to 1.19.4 then everything is ok. os:Server 2016 Datacenter 1607 14393.7070

zonyitoo commented 3 weeks ago

You must provide more detail about the key issue, what did you see, what do you think that is the cause of the current issue.

peng5545 commented 3 weeks ago

You must provide more detail about the key issue, what did you see, what do you think that is the cause of the current issue.

key issue is ....i saw nothing, neither cmd window nor windows Event Viewer.

this is on 2016 2016

this is on 2019 or 2022 2022

zonyitoo commented 3 weeks ago

Interesting. There must be something wrong working with stdout or stderr in the latest version.

Could you dig more deeper about what exactly it was happening?

peng5545 commented 3 weeks ago

ok, maybe try do something this weekend.

peng5545 commented 3 weeks ago

Interesting. There must be something wrong working with stdout or stderr in the latest version.

Could you dig more deeper about what exactly it was happening?

The procedure entry point SetInterfaceDnsSettings could not be located in the dynamic link library C:\Users\Administrator\Desktop\shadowsocks-rust-master\target\release\full\sslocal.exe.

On fresh install OS show this error message, and maybe cause by this change,I try change version to 1, no error.

https://github.com/shadowsocks/shadowsocks-rust/commit/b5f3065f3df875a2450629e475d462ce4cdfec30#r144199956

database64128 commented 3 weeks ago

Makes sense. The documentation for SetInterfaceDnsSettings says the minimum supported server is Windows 10 Build 19041, which is higher than your OS build number.

zonyitoo commented 3 weeks ago

I suspect this is the root cause. https://github.com/tun2proxy/rust-tun/pull/74/files

peng5545 commented 3 weeks ago

Download new build,problem was solved,THX!