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

获取规则的大小为1.x兆时报错Maximum file size exceeded #409

Closed
MingSpace opened this issue Nov 26, 2021 · 5 comments
Closed

获取规则的大小为1.x兆时报错Maximum file size exceeded #409

MingSpace opened this issue Nov 26, 2021 · 5 comments

Comments

@MingSpace
Copy link

参考规则:
ruleset=DIRECT,clash-domain:https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt

2021/11/26 Fri 07:52:24.797191 [1 140369860737848][INFO] Generate target: Clash
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=www.github.com
*  start date: May  6 00:00:00 2020 GMT
*  expire date: Apr 14 12:00:00 2022 GMT
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7faa67b4d5c0)
> GET /Loyalsoldier/clash-rules/release/direct.txt HTTP/2
Host: raw.githubusercontent.com
user-agent: subconverter/v0.7.1-b0c2d72 cURL/7.79.1
accept: */*
content-type: application/json;charset='utf-8'
subconverter-request: 1
subconverter-version: v0.7.1-b0c2d72

< HTTP/2 200
< cache-control: max-age=300
< content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
< content-type: text/plain; charset=utf-8
< etag: "786a258d543c556bde4f1bbed9ba83670f01c332b4d6a09182abe199c769d6cf"
< strict-transport-security: max-age=31536000
< x-content-type-options: nosniff
< x-frame-options: deny
< x-xss-protection: 1; mode=block
< x-github-request-id: 2CCE:387C:3214F2:441CB7:61A0915D
< accept-ranges: bytes
< date: Fri, 26 Nov 2021 07:52:24 GMT
< via: 1.1 varnish
< x-served-by: cache-hkg17930-HKG
< x-cache: HIT
< x-cache-hits: 1
< x-timer: S1637913145.886398,VS0,VE2
< vary: Authorization,Accept-Encoding,Origin
< access-control-allow-origin: *
< x-fastly-request-id: d733a342be8fd6e7da06ef594d1dace6fe6bb80a
< expires: Fri, 26 Nov 2021 07:57:24 GMT
< source-age: 219
< content-length: 1403267
<
* Maximum file size exceeded
* stopped the pause stream!
* Connection #0 to host 10.0.0.5 left intact
2021/11/26 Fri 07:52:24.926199 [1 140369860737848][WARN] Failed to fetch ruleset or ruleset is empty: 'https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt'!
2021/11/26 Fri 07:52:24.928488 [1 140369860737848][INFO] Generate completed.
@zhongfly
Copy link
Contributor

提问前建议详细阅读Readme文档

仔细阅读配置文件中的 [advanced] 部分 max_allowed_download_size

@MingSpace
Copy link
Author

提问前建议详细阅读Readme文档

仔细阅读配置文件中的 [advanced] 部分 max_allowed_download_size

不好意思,忘记说明max_allowed_download_size已经配置为0
附配置

[advanced]
async_fetch_ruleset=true
cache_config=300
cache_ruleset=21600
cache_subscription=60
enable_cache=false
log_level=verbose
max_allowed_download_size=0
max_allowed_rules=0
max_allowed_rulesets=0
max_concurrent_threads=4
max_pending_connections=10240
print_debug_info=true
script_clean_context=true
skip_failed_links=true

@zhongfly
Copy link
Contributor

提问前建议详细阅读Readme文档
仔细阅读配置文件中的 [advanced] 部分 max_allowed_download_size

不好意思,忘记说明max_allowed_download_size已经配置为0 附配置

检查所有配置文件

加载配置文件时会按照pref.toml、pref.yml、pref.ini的优先级顺序加载优先级高的配置文件

@MingSpace
Copy link
Author

MingSpace commented Nov 26, 2021

提问前建议详细阅读Readme文档
仔细阅读配置文件中的 [advanced] 部分 max_allowed_download_size

不好意思,忘记说明max_allowed_download_size已经配置为0 附配置

检查所有配置文件

加载配置文件时会按照pref.toml、pref.yml、pref.ini的优先级顺序加载优先级高的配置文件

使用docker启动,用自定的volume覆盖了整个/base文件夹,确保只有一个pref.ini

@MingSpace
Copy link
Author

找到问题了... docker下[latest]tag并不是github上release 0.7.1版本,也就是docker版本要比github上的更新? @zhongfly @tindy2013

tindy2013 added a commit that referenced this issue Dec 6, 2021
Fix build error.
Fix max_allowed_download_size option has no effect (#409).
Clean up codes.
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