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)
- [Feature request] 现在mac下能用哪个?
- [Bug] unsupport proxy type
- [Bug]
- 能否支持一下圈X订阅 HOT 1
- [Bug] Unable to start docker container HOT 2
- [Bug] 启用优选IP无法访问,关闭可以
- Please add a profile for Loon (iOS platform) HOT 1
- [Feature request] 能否支持sing-box订阅? HOT 1
- 请求支持使用自己的配置文件 HOT 3
- 这个项目部署在 cvm,会消耗机器的流量吗? HOT 1
- 发错了
- [Bug]{"code":400,"message":"License key is required" HOT 1
- 我在windows11 的docker desktop中拉取了镜像vvbbnn00/warp-clash-api:latest,但是容器run起来后无法通过21001访问,应该如何部署
- 生成yaml文件
- [Bug] Loon Lite 无法使用 HOT 1
- 你的ip是什么ip啊 HOT 1
- [Bug] UBuntu 22.04 无法启动
- 导出订阅的节点信息应该如何修改? HOT 2
- 请问生成的节点都为国内ip是否正常? HOT 2
- [Bug] 优选IP脚本执行失败
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.