Comments (8)
忘了说 在此之前 我运行过一句命令
docker-compose exec warp-clash python3 app.py optimize
我不知道这是否有影响。从而导致后面我重启docker-compose也不管用,一直是500
大概是ip优选后没有可用的节点导致的问题 可以检查一下/config/result.csv中 是不是所有节点的loss都100或者延迟超时了
修复方法可以是再优选一下ip 或者将项目里面的result.csv 还原成远程仓库的
from warp-clash-api.
提供一下日志
from warp-clash-api.
from warp-clash-api.
这个是定时任务的日志 需要web的
from warp-clash-api.
web log是空的什么都没有
from warp-clash-api.
web log是空的什么都没有
看看控制台输出的日志
from warp-clash-api.
2024-02-27 13:39:43 /usr/local/lib/python3.11/site-packages/tzlocal/unix.py:193: UserWarning: Can not find any timezone configuration, defaulting to UTC.
2024-02-27 13:39:43 warnings.warn("Can not find any timezone configuration, defaulting to UTC.")
2024-02-27 13:39:43 2024-02-27 05:39:43,497 - INFO - Start scheduler.
2024-02-27 13:39:43 2024-02-27 05:39:43,498 - INFO - DO_GET_WARP_DATA is True, will fetch WARP data per 18 seconds.
2024-02-27 13:39:43 2024-02-27 05:39:43,499 - INFO - Start save account job, will update account info per 120 seconds.
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [8] [INFO] Starting gunicorn 21.2.0
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [8] [INFO] Listening at: http://0.0.0.0:3000 (8)
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [8] [INFO] Using worker: sync
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [10] [INFO] Booting worker with pid: 10
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [11] [INFO] Booting worker with pid: 11
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [12] [INFO] Booting worker with pid: 12
2024-02-27 13:39:43 [2024-02-27 05:39:43 +0000] [13] [INFO] Booting worker with pid: 13
2024-02-27 13:39:57 2024-02-27 05:39:57,598 - INFO - Get current account
2024-02-27 13:39:57 2024-02-27 05:39:57,601 - INFO - Reload entrypoints from ./config/result.csv
2024-02-27 13:39:57 2024-02-27 05:39:57,604 - ERROR - Exception on /api/wireguard [GET]
2024-02-27 13:39:57 Traceback (most recent call last):
2024-02-27 13:39:57 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app
2024-02-27 13:39:57 response = self.full_dispatch_request()
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request
2024-02-27 13:39:57 rv = self.handle_user_exception(e)
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request
2024-02-27 13:39:57 rv = self.dispatch_request()
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request
2024-02-27 13:39:57 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/app/services/web_service.py", line 72, in decoratedFunction
2024-02-27 13:39:57 return f(*args, **kwargs)
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/app/services/web_service.py", line 32, in decoratedFunction
2024-02-27 13:39:57 return f(*args, **kwargs)
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/app/services/web_service.py", line 182, in httpSubscription
2024-02-27 13:39:57 fileData = generateWireguardSubFile(account, logger, best=best)
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/app/services/subscription.py", line 103, in generateWireguardSubFile
2024-02-27 13:39:57 random_point = random.choice(entrypoints) if not best else getBestEntrypoints(1)[0]
2024-02-27 13:39:57 ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:39:57 File "/usr/local/lib/python3.11/random.py", line 373, in choice
2024-02-27 13:39:57 raise IndexError('Cannot choose from an empty sequence')
2024-02-27 13:39:57 IndexError: Cannot choose from an empty sequence
2024-02-27 13:40:01 2024-02-27 05:40:01,503 - INFO - Get current account
2024-02-27 13:40:01 2024-02-27 05:40:01,513 - INFO - WORK ON ID: ef8b7ba2-70fb-4fa1-9b08-f7b72aa1c3ff
2024-02-27 13:40:02 2024-02-27 05:40:02,092 - INFO - Get current account
2024-02-27 13:40:02 2024-02-27 05:40:02,093 - INFO - Reload entrypoints from ./config/result.csv
2024-02-27 13:40:02 2024-02-27 05:40:02,095 - ERROR - Exception on /api/shadowrocket [GET]
2024-02-27 13:40:02 Traceback (most recent call last):
2024-02-27 13:40:02 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app
2024-02-27 13:40:02 response = self.full_dispatch_request()
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request
2024-02-27 13:40:02 rv = self.handle_user_exception(e)
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request
2024-02-27 13:40:02 rv = self.dispatch_request()
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request
2024-02-27 13:40:02 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/app/services/web_service.py", line 72, in decoratedFunction
2024-02-27 13:40:02 return f(*args, **kwargs)
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/app/services/web_service.py", line 32, in decoratedFunction
2024-02-27 13:40:02 return f(*args, **kwargs)
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/app/services/web_service.py", line 200, in httpSubscription
2024-02-27 13:40:02 fileData = generateShadowRocketSubFile(account, logger, best=best, random_name=random_name)
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/app/services/subscription.py", line 217, in generateShadowRocketSubFile
2024-02-27 13:40:02 random_points = random.sample(entrypoints, RANDOM_COUNT) if not best else getBestEntrypoints(RANDOM_COUNT)
2024-02-27 13:40:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27 13:40:02 File "/usr/local/lib/python3.11/random.py", line 456, in sample
2024-02-27 13:40:02 raise ValueError("Sample larger than population or is negative")
2024-02-27 13:40:02 ValueError: Sample larger than population or is negative
from warp-clash-api.
忘了说 在此之前 我运行过一句命令 docker-compose exec warp-clash python3 app.py optimize
我不知道这是否有影响。从而导致后面我重启docker-compose也不管用,一直是500
from warp-clash-api.
Related Issues (20)
- [Bug] 配置.env.local 文件报错 HOT 15
- 请问安卓使用哪个客户端可以正常使用呢?
- 一直报错是啥玩意? mv: can't rename 'result.csv': No such file or directory HOT 3
- [Bug] 连上以后无法访问ipv6的资源
- [Bug] Ubuntu22.04 总是构建失败 HOT 2
- 请教优选ip自定义的问题, HOT 1
- 环境变量好像不生效 HOT 1
- [Bug] 生成的wireguard配置在linux虚拟机中无法使用
- 优选IP没几个了,节点也只剩下1个或者2个,是接口问题吗? HOT 2
- [Bug] 可以订阅,看到延时值 ,但是无法连网。 HOT 1
- [Bug] 部署到zeabur且配置域名后,导入到clash失败,报错订阅链接格式错误 HOT 3
- [Bug]
- [Bug] duplicate name 重名报错 HOT 1
- [Feature request]建议增加一键部署
- [Bug] WARN[0000] HOT 1
- [Bug] 谷歌搜索显示存在异常流量 HOT 1
- [Feature request]Please provide pure docker command HOT 2
- [Bug] WARNING:app_background:429 Client Error: Too Many Requests for url: https://api.cloudflareclient.com/v0i2308311933/reg
- 我不需要刷流量,如何导入一批已有的wg-config.conf
- 更新license_key报错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from warp-clash-api.