MetaCubeX / ClashX.Meta

GNU Affero General Public License v3.0
2.96k stars 391 forks source link

[Bug]退出之后再打开会出现API connect error问题,疑似UI面板问题(解决方法) #46

Open joeykini opened 11 months ago

joeykini commented 11 months ago

感谢你向 ClashX 提交 issue! 在提交之前,请确认:

然后重新打开安装包,弹出——>传统安装

相当于重新安装一次

meta版本延迟测试以及其他的功能比较clashX好的很多。不过有一些UI界面连接某处有点小问题,以及控制面板,打开后是127.0.0.1登陆,这个有能解答吗?

YangYaoli commented 11 months ago

碰到同样的问题,MacBookAir15/MacOS14.1.1 (23B81),感觉是UI和后台助手程序无法连接,日志文件里也没找到报错信息。 还有一个方法可以解决,在通用设置的登录项中,关闭助手程序的允许在后台选项,然后重新打开该选项;再重新启动一下程序。操作上有点麻烦,希望后续更新能解决。

skill7899 commented 10 months ago

碰到同样的问题,MacBookAir15/MacOS14.1.1 (23B81),感觉是UI和后台助手程序无法连接,日志文件里也没找到报错信息。 还有一个方法可以解决,在通用设置的登录项中,关闭助手程序的允许在后台选项,然后重新打开该选项;再重新启动一下程序。操作上有点麻烦,希望后续更新能解决。

。。退出,又要重复上面操作了。退回到1.3.5版本了

faritor commented 10 months ago

版本:1.3.7 core:1.16.0

同样遇到了这个问题,但是发现,如果不移除助手,在等待的情况下,也是可以自己恢复的

在下面日志中可以看出 55 分左右的时候启动了 app,同时会显示 API Connect Error,然后只需要静静的等待,但是需要 5 分钟左右,不知道在这 5 分钟在做什么,下面是完整的启动日志

2023/12/11 01:55:44.069  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift applicationWillFinishLaunching(_:) applicationWillFinishLaunching
2023/12/11 01:55:44.087  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift applicationDidFinishLaunching(_:) ———————————————————————————————————————————————————————————
2023/12/11 01:55:44.087  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift applicationDidFinishLaunching(_:) ———————————————applicationDidFinishLaunching———————————————
2023/12/11 01:55:44.087  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift applicationDidFinishLaunching(_:) ———————————————————————————————————————————————————————————
2023/12/11 01:55:44.087  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift applicationDidFinishLaunching(_:) Appversion: v1.3.7 465
2023/12/11 01:55:44.114  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift postFinishLaunching() postFinishLaunching
2023/12/11 01:55:44.139  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/General/Managers/PrivilegedHelperManager.swift getHelperStatus(callback:) check helper using time: 0.01998305320739746
2023/12/11 01:55:44.191  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift setupData() Fire helperStatusTimer
2023/12/11 01:55:44.195  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/General/Managers/RemoteConfigManager.swift setupAutoUpdateTimer() set up autoUpateTimer
2023/12/11 01:55:44.195  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/General/Managers/RemoteConfigManager.swift autoUpdateCheck() Tigger config auto update check
2023/12/11 01:55:44.198  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/General/Managers/RemoteConfigManager.swift saveConfigs() Saving Remote Config Setting
2023/12/11 01:55:52.586  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift checkMenuIconVisable() checkMenuIconVisable: (1466.0, 1295.0, 25.0, 22.0) 0.0, hidden: false, coverd by notch:false
2023/12/11 02:00:44.192  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift setupData() Check helper status success 1.7
2023/12/11 02:00:44.193  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift setupData() HelperReady
2023/12/11 02:00:44.193  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift initMetaCore() initClashCore
2023/12/11 02:00:44.331  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift testMetaCore(_:) test core path: /Users/******/Library/Application Support/com.metacubex.ClashX.meta/com.metacubex.ClashX.ProxyConfigHelper.meta
2023/12/11 02:00:44.332  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift testMetaCore(_:) -v out: Clash Meta alpha-8c3557e darwin arm64 with go1.21.3 Fri Nov  3 05:59:19 UTC 2023
Use tags: with_gvisor
2023/12/11 02:00:44.723  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift testMetaCore(_:) test core path: /Users/******/Library/Application Support/com.metacubex.ClashX.meta/.private_core/com.metacubex.ClashX.ProxyConfigHelper.meta
2023/12/11 02:00:44.723  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift testMetaCore(_:) -v out: Clash Meta v1.16.0 darwin arm64 with go1.21.1 Mon Sep 25 11:37:50 UTC 2023
Use tags: with_gvisor
2023/12/11 02:00:44.724  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift initMetaCore() version: v1.16.0
2023/12/11 02:00:44.984  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift initMetaCore() initClashCore finish
2023/12/11 02:00:44.984  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift startProxy() Trying start meta core
2023/12/11 02:00:45.104  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift startProxy() 
########  Clash Meta Start Log  #########
[info] Start initial configuration in progress
[info] Geodata Loader mode: memconservative
[info] Initial configuration complete, total time: 0ms
[info] Sniffer is closed
[info] HTTP proxy listening at: 127.0.0.1:7890
[info] RESTful API listening at: 127.0.0.1:59090
########  END  #########
2023/12/11 02:00:45.104  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift pushInitConfig() Push init config file: config
2023/12/11 02:00:45.688  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift startProxy() Init config file success.
2023/12/11 02:00:45.705  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift setupData() port config updated,new: 7890,7891
2023/12/11 02:00:45.706  [info] /Users/runner/work/ClashX.Meta/ClashX.Meta/ClashX/AppDelegate.swift syncConfigWithTun(_:_:) tun didn't set
cheneyxx commented 10 months ago

确实有这个问题 希望新版本能修复

b1ghawk commented 10 months ago

同样遇到了这个问题,目前准备先降级1.3.5,楼上的大佬们。有新的结果了记得喊我下😋谢谢!

cheneyxx commented 10 months ago

同样遇到的这个问题,目前准备先降级,楼上的大佬们。有结果了记得喊我下😋

用 1.3.6 版本要好一点 如果出现这个问题 移除助手程序 退出 🐱 重新启动它再安装助手程序

b1ghawk commented 10 months ago

同样遇到的这个问题,目前准备先降级,楼上的大佬们。有结果了记得喊我下😋

用 1.3.6 版本要好一点 如果出现这个问题 移除助手程序 退出 🐱 重新启动它再安装助手程序

1.3.6同样有这个问题,我已切换至1.3.5,问题消失。

garipan commented 10 months ago

试了半天,已解决此问题:

  1. 下载1.3.5版本。不要下载"ClashX.Meta.macOS.12.0+.zip",这个版本不是完整版,下载下来实际版本号是1.0。要下载第二个文件"ClashX.Meta.zip"。覆盖安装,就好了。
  2. 确认在设置中已关闭"使用iCloud托管配置文件",这个也会导致加载失败。
b1ghawk commented 10 months ago

试了半天,已解决此问题:

  1. 下载1.3.5版本。不要下载"ClashX.Meta.macOS.12.0+.zip",这个版本不是完整版,下载下来实际版本号是1.0。要下载第二个文件"ClashX.Meta.zip"。覆盖安装,就好了。
  2. 确认在设置中已关闭"使用iCloud托管配置文件",这个也会导致加载失败。

我用那个1.3.5-macOS.12.0+.zip也没遇到这个问题了。 虽然不知道12.0+有啥特别之处?

cheneyxx commented 10 months ago

我也以为 12 以上系统下第一个 我现在都 Sonoma 了。。

Mrycp commented 10 months ago

遇到相同的问题,现在只能通过移除助手重新安装来解决。但另一台机子的系统版本不是最新的就没有遇到这个问题,感觉是系统调整了某些机制导致的,希望可以做下适配。

7ynstar commented 8 months ago

遇到的问题不知道是不是同一个

Version: v1.3.10(479) Meta Core: v1.18.1

MacBook Pro: M2 Pro Max OS: 14.3

在电脑重启之后,Clash 随着开启启动会报加载配置文件失败,错误日志如下:

2024/02/12 13:22:40.876  [info] TerminalCleanUpAction.swift run() ClashX quit need clean proxy setting
2024/02/12 13:22:40.878  [info] TerminalCleanUpAction.swift run() ClashX quit wait for clean up
2024/02/12 13:23:13.357  [error] SystemProxyManager.swift enableProxy(port:socksPort:) enableProxy fail: 0 0
2024/02/12 13:23:14.017  [error] SystemProxyManager.swift enableProxy(port:socksPort:) enableProxy fail: 0 0
2024/02/12 13:23:18.045  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:23:18.045  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:23:19.554  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:23:21.556  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:23:25.559  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:23:39.527  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:24:00.873  [error] ApiRequest.swift websocketDidDisconnect(socket:error:) 未能完成该操作。连接被拒绝
2024/02/12 13:24:27.835  [error] SystemProxyManager.swift enableProxy(port:socksPort:) enableProxy fail: 0 0
2024/02/12 13:24:27.904  [error] SystemProxyManager.swift enableProxy(port:socksPort:) enableProxy fail: 0 0

会报 API 的错误,怎么解决呀?

wzrzt commented 7 months ago

碰到API connect error之后,退回1.3.5版本,依然无法打开,提示 Ports Open Fail. 而且无法打开设置了。不知是否有解

image image
cheneyxx commented 7 months ago

已经换 clash verge rev 了 这软件不稳定

Rain Wei @.***> 于2024年3月4日周一 14:15写道:

碰到API connect error之后,退回1.3.5版本,依然无法打开,提示 Ports Open Fail. 而且无法打开设置了。不知是否有解 image.png (view on web) https://github.com/MetaCubeX/ClashX.Meta/assets/12440644/a849224f-c2aa-4b21-bbef-8ac96f207809 image.png (view on web) https://github.com/MetaCubeX/ClashX.Meta/assets/12440644/c5cb63f7-c9d8-4f94-b300-586373d0f71d

— Reply to this email directly, view it on GitHub https://github.com/MetaCubeX/ClashX.Meta/issues/46#issuecomment-1975805834, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACO5SWMY746AV4SQMUCQE53YWQGP5AVCNFSM6AAAAAA77T5LSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVHAYDKOBTGQ . You are receiving this because you commented.Message ID: <MetaCubeX/ClashX .@.***>

wzrzt commented 7 months ago

已经换 clash verge rev 了 这软件不稳定 Rain Wei @.> 于2024年3月4日周一 14:15写道: 碰到API connect error之后,退回1.3.5版本,依然无法打开,提示 Ports Open Fail. 而且无法打开设置了。不知是否有解 image.png (view on web) https://github.com/MetaCubeX/ClashX.Meta/assets/12440644/a849224f-c2aa-4b21-bbef-8ac96f207809 image.png (view on web) https://github.com/MetaCubeX/ClashX.Meta/assets/12440644/c5cb63f7-c9d8-4f94-b300-586373d0f71d — Reply to this email directly, view it on GitHub <#46 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACO5SWMY746AV4SQMUCQE53YWQGP5AVCNFSM6AAAAAA77T5LSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVHAYDKOBTGQ . You are receiving this because you commented.Message ID: <MetaCubeX/ClashX .@.>

非常感谢!这个好用!