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

[BUG]无法安装服务 #4

Open
chuzhongzai opened this issue Jan 19, 2025 · 4 comments
Open

[BUG]无法安装服务 #4

chuzhongzai opened this issue Jan 19, 2025 · 4 comments

Comments

@chuzhongzai
Copy link

App 版本

3.0.4

内核版本

easytier-cli 2.1.2-2769cabc

Windows版本和版本号

win10 企业版(LTSC) 21H2

问题描述

无法将配置文件安装为服务,显示安装服务正常,实际启动后显示未找到服务,看了服务面板确实是这样。单独运行配置的话是正常的,可能跟配置没关系。

Image

Image

重现步骤

无,安装了三台电脑,只有一台电脑出现这个问题,另外两台都是正常的,系统版本也是一样的。有问题的这台,安装路径既没有中文也没有空格。猜测是这台电脑某些设置有问题,但是没找到在哪。

Image

期待的正确结果

No response

相关日志输出

[2025-01-19][10:44:56][webview:De@http://tauri.localhost/assets/index-DXFh3H8S.js:239:5963][INFO] 安装服务:{"configFileName":"lion","fileName":"lion.toml"}
[2025-01-19][10:44:57][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:445][INFO] 服务是否存在:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."
[2025-01-19][10:44:57][webview:<anonymous>@http://tauri.localhost/assets/index-DXFh3H8S.js:239:6399][INFO] 服务安装:true
[2025-01-19][10:48:49][reqwest::connect][DEBUG] starting new connection: http://web-proxy.cheng.us.kg/
[2025-01-19][10:49:09][tao::platform_impl::platform::event_loop::runner][WARN] NewEvents emitted without explicit RedrawEventsCleared
[2025-01-19][10:49:09][tao::platform_impl::platform::event_loop::runner][WARN] RedrawEventsCleared emitted without explicit MainEventsCleared
[2025-01-19][10:50:41][webview:De@http://tauri.localhost/assets/index-DXFh3H8S.js:239:5963][INFO] 安装服务:{"configFileName":"lion","fileName":"lion.toml"}
[2025-01-19][10:50:42][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:445][INFO] 服务是否存在:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."
[2025-01-19][10:50:42][webview:<anonymous>@http://tauri.localhost/assets/index-DXFh3H8S.js:239:6399][INFO] 服务安装:true
[2025-01-19][11:01:07][webview:De@http://tauri.localhost/assets/index-DXFh3H8S.js:239:5963][INFO] 安装服务:{"configFileName":"lion","fileName":"lion.toml","serviceStatus":"未知"}
[2025-01-19][11:01:09][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:445][INFO] 服务是否存在:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."
[2025-01-19][11:01:09][webview:<anonymous>@http://tauri.localhost/assets/index-DXFh3H8S.js:239:6399][INFO] 服务安装:true
[2025-01-19][11:06:07][webview:ne@http://tauri.localhost/assets/index-CsibHNsX.js:2:2940][INFO] 开始运行配置:lion.toml
[2025-01-19][11:06:07][webview:rt@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:1:1509][INFO] 运行结果:2800
[2025-01-19][11:06:07][webview:<anonymous>@http://tauri.localhost/assets/index-CsibHNsX.js:2:3006][INFO] 运行配置结果:"2800"
[2025-01-19][11:06:19][webview:ce@http://tauri.localhost/assets/index-CsibHNsX.js:2:3363][INFO] 停止运行配置:lion
[2025-01-19][11:06:19][webview:tt@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:1:1910][INFO] 进程 2800 已终止
[2025-01-19][11:06:24][webview:De@http://tauri.localhost/assets/index-DXFh3H8S.js:239:5963][INFO] 安装服务:{"configFileName":"lion","fileName":"lion.toml","serviceStatus":"未知"}
[2025-01-19][11:06:25][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:1658][INFO] 启动服务:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."
[2025-01-19][11:06:26][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:445][INFO] 服务是否存在:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."
[2025-01-19][11:06:26][webview:<anonymous>@http://tauri.localhost/assets/index-DXFh3H8S.js:239:6399][INFO] 服务安装:true
[2025-01-19][11:06:33][webview:ne@http://tauri.localhost/assets/index-CsibHNsX.js:2:2940][INFO] 开始运行配置:lion.toml
[2025-01-19][11:06:33][webview:rt@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:1:1509][INFO] 运行结果:4708
[2025-01-19][11:06:33][webview:<anonymous>@http://tauri.localhost/assets/index-CsibHNsX.js:2:3006][INFO] 运行配置结果:"4708"
[2025-01-19][11:07:34][webview:ce@http://tauri.localhost/assets/index-CsibHNsX.js:2:3363][INFO] 停止运行配置:lion
[2025-01-19][11:07:34][webview:tt@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:1:1910][INFO] 进程 4708 已终止
[2025-01-19][11:07:38][webview:De@http://tauri.localhost/assets/index-DXFh3H8S.js:239:5963][INFO] 安装服务:{"configFileName":"lion","fileName":"lion.toml","serviceStatus":"未知"}
[2025-01-19][11:07:40][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:445][INFO] 服务是否存在:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."
[2025-01-19][11:07:40][webview:<anonymous>@http://tauri.localhost/assets/index-DXFh3H8S.js:239:6399][INFO] 服务安装:true
[2025-01-19][11:07:54][webview:<anonymous>@http://tauri.localhost/assets/shellUtil-CqcD1WI6.js:3:1658][INFO] 启动服务:"Can't open service!\r\r\nOpenService(): The specified service does not exist as an installed service."

附加信息

No response

@xlc520
Copy link
Owner

xlc520 commented Jan 19, 2025

在首页,就是工作台可以直接运行吗

@chuzhongzai
Copy link
Author

在首页,就是工作台可以直接运行吗

可以手动运行,配置成服务就不行,我刚刚又装了一台电脑,是正常的,我全部电脑都用的win10 ltsc,按理说应该都是一样的环境

@xlc520
Copy link
Owner

xlc520 commented Jan 19, 2025

可以试试手动安装,在软件的安装目录resource下,在当前目录打开cmd执行命令: nssm install easytier,会弹出一个安装的框,路径选择resource下的easytier-core.exe,参数为:-c 安装目录\config\test.toml,config也是在安装目录下

例如:
我的安装目录:D:\ProgramFiles\easytier-manager-pro

命令:
D:\ProgramFiles\easytier-manager-pro\resource>nssm install easytier

路径
D:\ProgramFiles\easytier-manager-pro\resource\easytier-core.exe

参数
-c D:\ProgramFiles\easytier-manager-pro\config\test.toml

@chuzhongzai
Copy link
Author

可以试试手动安装,在软件的安装目录resource下,在当前目录打开cmd执行命令: nssm install easytier,会弹出一个安装的框,路径选择resource下的easytier-core.exe,参数为:-c 安装目录\config\test.toml,config也是在安装目录下

例如: 我的安装目录:D:\ProgramFiles\easytier-manager-pro

命令:
D:\ProgramFiles\easytier-manager-pro\resource>nssm install easytier

路径
D:\ProgramFiles\easytier-manager-pro\resource\easytier-core.exe

参数
-c D:\ProgramFiles\easytier-manager-pro\config\test.toml

手动安装可以了。安装完成后能够在配置页面控制开启跟关闭

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

No branches or pull requests

2 participants