ITADN

Macos 启动 nyanpasu-service 会显示报错

#4319Closedkyrosle 创建于 2026-03-16
T: BugS: UntriagedS: Stale
K
kyroslecommented
### 复现步骤 / Step to reproduce Macos 上新安装运行, 启动服务就会遇到 ### 预期行为 / Expected behavior 服务启动应该不会报错 ### 实际行为 / Actual behavior ``` > sudo /Applications/Clash\ Nyanpasu.app/Contents/MacOS/nyanpasu-service start 2026-03-16T07:04:29.016594Z ERROR nyanpasu_service/src/main.rs:44: Error: Other( "service start failed, status: Stopped(None)", ) ``` Macos 系统上新的build 运行后会显示这样 ### 应用日志 / App logs _No response_ ### 备注 / Addition details 是这个版本的: ``` nyanpasu-service v1.4.2 (Release Build) ╭─────────────────────────────── Build Information ───────────────────────────────╮ │ Commit Info: 899f0de24605613bc5a7cc451e74f05dc097f026 by github-actions[bot] │ │ Commit Time: 1 month ago (2026-02-07T06:53:39.000Z) │ │ Build Time: 1 month ago (2026-02-07T07:23:15.027Z) │ │ Build Target: aarch64-apple-darwin │ │ Rust Version: rustc 1.95.0-nightly (efc9e1b50 2026-02-06) │ │ LLVM Version: 22.1 │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ``` 这里我做了一下代码调整然后我自己运行可以正常启动服务 <img width="499" height="491" alt="Image" src="https://github.com/user-attachments/assets/d98043f6-6ce4-4ec2-843c-97bc8a87ff82" /> ### 环境信息 / Environment information Macos, 自行build的 commit 8c61029275033f4e77e8fab5302b83c65123faba (HEAD -> main) Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Mar 16 01:43:39 2026 +0000 chore(deps): update dependency nanoid to v5.1.7 (#4317) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> ### 自查步骤 / Verify steps - [ ] 如果您有足够的时间和能力,并愿意为此提交 PR,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request - [x] 您已知悉如果没有提供正确的系统信息,以及日志,您的 Issue 会直接被关闭 / You have known that if you don't provide correct system information and logs, your issue will be closed directly - [x] 您已仔细查看并知情 [Q&A](https://nyanpasu.elaina.moe/zh-CN/others/issues) 和 [FAQ](https://nyanpasu.elaina.moe/zh-CN/others/faq) 中的内容 / You have read and understood the contents of [Q&A](https://nyanpasu.elaina.moe/others/issues) and [FAQ](https://nyanpasu.elaina.moe/others/faq) - [x] 您已搜索过 [Issue Tracker](https://github.com/libnyanpasu/clash-nyanpasu/issues),没有找到类似内容 / I have searched on [Issue Tracker](https://github.com/libnyanpasu/clash-nyanpasu/issues), No duplicate or related open issue has been found - [x] 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make multiply issue for multiply bugs - [x] 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
关闭于 2026-05-17 6 条评论