-
Notifications
You must be signed in to change notification settings - Fork 592
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
nyanpasu-service安装失败 #1864
Comments
现在暂时的解决方案是卸载后回退到1.5.1版本(1.6.0更新前的最后一个版本),目前服务模式运行正常。 |
./nyanpasu-service install --user %USERNAME% --nyanpasu-data-dir "C:\Users\%USERNAME%\AppData\Local\Clash Nyanpasu\data" --nyanpasu-config-dir "C:\Users\%USERNAME%\AppData\Roaming\Clash Nyanpasu\config" --nyanpasu-app-dir "D:\NetWork\ClashNyan" An example of use. Please change the directory of your own @ValeriaXYN |
Not being able to auto-install is indeed a flaw, probably related to limitations of rust and windows group policy. a similar project clash_verge is able to auto-install, might be worth a reference |
Thank you very much! Now the service mode is running. |
I have no idea about the failures of service automatic installation on Windows. The backend logic is same with the manual prompt, although the installation prompt in 1.6.1 is wrong. |
By the way, do you instal the winsw globally? |
nop, windows doesn't include winsw by default. Does nyanpasu need winsw as pre-dependency? |
|
No. The upstream service manager deps prefers winsw, and sc.exe as fallback |
So, the syscall fails with errors? Now, the user in windows do nothing. The DACL in windows is too complex to generate from our default preferences. |
The user do nothing now. You can check the original code here: https://github.com/libnyanpasu/nyanpasu-service/blob/main/nyanpasu_ipc/src/server/mod.rs I don't have a good idea to generate the sdsf correctly, so I grant public access for all users now. Because of the unimplementation of the permissions, so Sids or usernames(Domain/User is better) are both acceptable. |
…to mihomo limitation (#1866) [1]#1862 Fix DNS policy order for mihomo 1. Just don't touch lua for mihomo core. JS processing can maintain dictionary order. This way, at least for now, it works fine when users are not using their own lua for processing. 2. Preserve todo for lua defects [2]#1819 Support group hidden display for mihomo 1. `hidden` wasn't working. 2. The `hidden` decision should be present at all times, so fixed the logic hole [3]#1864 Fix one-click installation service on windows 1. `wmic` utility may be deprecated or not installed in newer versions of Windows Solved some very critical usage issues, it's time to update a release. Please point out if anything is inappropriate COMMIT HISTORY: * Ditch lua's default processing, switch to js * prettier * Fix hidden logic when deferredProxiesFilter doesn't exist * Fix issue with getting current user SID on Windows * Keep todo markfor the root cause of the problem * Add fallback for new version of windows * Keep the sid method and fix it in the upstream * chore: correct fronend code styles --------- Co-authored-by: Jonson Petard <[email protected]>
我不太懂这方面,但我的nyanpasu存在相同的问题,我具体应该怎么做? |
@lanterner3054 Try using the latest development version, which should already have the fix. You can see if this resolves the issue. |
复现步骤 / Step to reproduce
以管理员身份打开PowerShell,输入
cd "\?\C:\Program Files (x86)\Clash Nyanpasu"
./nyanpasu-service install
预期行为 / Expected behavior
nyanpasu-service安装成功
实际行为 / Actual behavior
错误如下:
PS C:\WINDOWS\system32> cd "\?\C:\Program Files (x86)\Clash Nyanpasu"
PS Microsoft.PowerShell.Core\FileSystem::\?\C:\Program Files (x86)\Clash Nyanpasu> ./nyanpasu-service install
error: the following required arguments were not provided:
--user
--nyanpasu-data-dir <NYANPASU_DATA_DIR>
--nyanpasu-config-dir <NYANPASU_CONFIG_DIR>
--nyanpasu-app-dir <NYANPASU_APP_DIR>
Usage: nyanpasu-service.exe install --user --nyanpasu-data-dir <NYANPASU_DATA_DIR> --nyanpasu-config-dir <NYANPASU_CONFIG_DIR> --nyanpasu-app-dir <NYANPASU_APP_DIR>
For more information, try '--help'.
应用日志 / App logs
No response
备注 / Addition details
在1.6.0版本更新之前可以成功安装服务模式,自从1.6.0版本更新之后就无法安装服务模式了
环境信息 / Environment information
自查步骤 / Verify steps
The text was updated successfully, but these errors were encountered: