wzdnzd / aggregator

One-stop Proxies Crawling and Aggregation Platform
https://github.com/wzdnzd/aggregator
Apache License 2.0
1.36k stars 1.46k forks source link

subconverter-linux 在arm64的机器执行错误 #49

Closed Jiabinone closed 2 months ago

Jiabinone commented 2 months ago

Traceback (most recent call last): File "/root/sub/aggregator/subscribe/airport.py", line 486, in parse nodes = self.decode( ^^^^^^^^^^^^ File "/root/sub/aggregator/subscribe/airport.py", line 673, in decode success = subconverter.convert(binname=program, artifact=artifact) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/sub/aggregator/subscribe/subconverter.py", line 132, in convert success, _ = utils.cmd(args) ^^^^^^^^^^^^^^^ File "/root/sub/aggregator/subscribe/utils.py", line 195, in cmd else subprocess.Popen(command) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/root/sub/aggregator/subconverter/subconverter-linux'

wzdnzd commented 2 months ago

看样子是 subconverter 编译版本的问题,是armv7吗?

a4346422 commented 2 months ago

我也是这个问题

wzdnzd commented 2 months ago

我也是这个问题

armv7是吧?

a4346422 commented 2 months ago

我也是这个问题

armv7是吧?

在哪个文件里呢? 看了下我们的报错还不一样

]0;SubConverter v0.9.6]0;SubConverter v0.9.6]0;SubConverter v0.9.62024-07-26 11:27:11 collect.py [line:352] INFO: found 4 proxies, save it to ['/home/runner/work/aggregator/aggregator/data/clash.yaml', '/home/runner/work/aggregator/aggregator/data/v2ray.txt', '/home/runner/work/aggregator/aggregator/data/singbox.json'] 2024-07-26 11:27:11 push.py [line:100] ERROR: [PushError]: group=[collect], name: gist, error message: Traceback (most recent call last): File "/home/runner/work/aggregator/aggregator/subscribe/push.py", line 72, in push_to response = urllib.request.urlopen(request, timeout=60, context=utils.CTX) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/urllib/request.py", line 521, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/urllib/request.py", line 630, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/urllib/request.py", line 559, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/urllib/request.py", line 492, in _call_chain result = func(args) ^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/urllib/request.py", line 639, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 422: Unprocessable Entity

wzdnzd commented 2 months ago

@a4346422 你这是在往 gist 写数据的时候网络出问题了导致的,不属于CPU架构与软件版本兼容的问题

wzdnzd commented 2 months ago

@Jiabinone 试试最新提交的代码 eca799e

jiongjiongJOJO commented 1 month ago

@Jiabinone 试试最新提交的代码 eca799e

最新版还是会有这个问题,上传失败后重试成功了,但是clash.yaml文件不见了。另外再运行collect.py,会一直报上传的错。 参考一下别人的解决方案,可能可行,我这边也在尝试在本地复现这个问题 https://github.com/orgs/community/discussions/55336