Comments (9)
找到原因了,刷新成功了,问题出在环境变量上。代码应该
是-e PANDORA_NEXT_DOMAIN=http://地址:8181\
而不是
-e PANDORA_NEXT_DOMAIN=“http://地址:8181/” \
或者-e PANDORA_NEXT_DOMAIN=“http://地址/:8181/” \
应该是我之前是从浏览器复制过去的地址,端口号后面多了个左斜杠,导致地址组合错误。
from pandoranext-helper.
你好,截图看一下,点刷新后没反应吗
from pandoranext-helper.
from pandoranext-helper.
抱歉太晚了我得睡了,明晚下班我会再次尝试查找故障原因,到时候如有进展我会跟帖,谢谢。
from pandoranext-helper.
建议你排查下:
1、账密是否正确
2、PandoraNext域名是否正确,刷新是去请求PandoraNext的Api
3、应该会有日志输出的
from pandoranext-helper.
'“http://我的服务器IP/:8181/”/123.abcabc/api/auth/login' 2023-12-23 20:33:13.067 | ERROR | main.main:refresh:111 - No connection adapters were found for '“http://我的服务器IP/:8181/”/123.abcabc/api/auth/login'
我今天又重新拉了一下镜像再次部署,还是刷新失败,不过今天有如上日志了。
我的docker运行使用的代码是
docker run -d --restart=always --name PandoraNext-Helper \ -p 8182:8182 \ -v /pandoranext-deploy/data:/data \ -e PANDORA_NEXT_DOMAIN=“http://我的服务器IP/:8181/” \ q11391/pandora-next-helper:latest
感觉是路径不对,我自己获取token使用的路径是http://我的服务器IP:8181/123.abcabc/auth
,难道要把这个路径完整的填入docker的变量里面?
from pandoranext-helper.
卧槽,发出来我才感觉好像是docker变量那个IP地址后面多了个斜杠,我再去重新部署一次。
——————————
2023-12-23 20:52:03.437 | ERROR | main.main:refresh:111 - No connection adapters were found for '“http://服务器IP:8181/”/123.abcabc/api/auth/login'
去掉那个斜杠还是提示这个错误。
from pandoranext-helper.
楼主我现在还有另外一个docker错误日志,这个日志是在我打开定时刷新按钮以后出现的:`2023-12-23 21:11:56.308 | INFO | pandora_tools:fresh_setup:17 - 重载:{'code': 0, 'detail': 'success'}
ERROR:apscheduler.executors.default:Job "my_job (trigger: interval[0:01:00], next run at: 2023-12-23 21:18:10 CST)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/app/main/main.py", line 149, in refresh_all_user
users = query_db('select * from users')
File "/app/app.py", line 79, in query_db
cur = g.db.execute(query, args)
File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 311, in get
obj = instance._get_current_object()
File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 508, in _get_current_object
raise RuntimeError(unbound_message) from None
RuntimeError: Working outside of application context.
This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.
ERROR:apscheduler.executors.default:Job "my_job (trigger: interval[0:01:00], next run at: 2023-12-23 21:19:10 CST)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/app/main/main.py", line 149, in refresh_all_user
users = query_db('select * from users')
File "/app/app.py", line 79, in query_db
cur = g.db.execute(query, args)
File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 311, in get
obj = instance._get_current_object()
File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 508, in _get_current_object
raise RuntimeError(unbound_message) from None
RuntimeError: Working outside of application context.
This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.`
from pandoranext-helper.
定时bug已修复
楼主我现在还有另外一个docker错误日志,这个日志是在我打开定时刷新按钮以后出现的:`2023-12-23 21:11:56.308 | INFO | pandora_tools:fresh_setup:17 - 重载:{'code': 0, 'detail': 'success'} ERROR:apscheduler.executors.default:Job "my_job (trigger: interval[0:01:00], next run at: 2023-12-23 21:18:10 CST)" raised an exception Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/app/main/main.py", line 149, in refresh_all_user users = query_db('select * from users') File "/app/app.py", line 79, in query_db cur = g.db.execute(query, args) File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 311, in get obj = instance._get_current_object() File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 508, in _get_current_object raise RuntimeError(unbound_message) from None RuntimeError: Working outside of application context.
This typically means that you attempted to use functionality that needed the current application. To solve this, set up an application context with app.app_context(). See the documentation for more information. ERROR:apscheduler.executors.default:Job "my_job (trigger: interval[0:01:00], next run at: 2023-12-23 21:19:10 CST)" raised an exception Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/app/main/main.py", line 149, in refresh_all_user users = query_db('select * from users') File "/app/app.py", line 79, in query_db cur = g.db.execute(query, args) File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 311, in get obj = instance._get_current_object() File "/usr/local/lib/python3.10/site-packages/werkzeug/local.py", line 508, in _get_current_object raise RuntimeError(unbound_message) from None RuntimeError: Working outside of application context.
This typically means that you attempted to use functionality that needed the current application. To solve this, set up an application context with app.app_context(). See the documentation for more information.`
from pandoranext-helper.
Related Issues (20)
- 共享和建议 HOT 3
- 在点击同步到pandoranext之后,跳转会报错 HOT 4
- 希望可以支持下turnstile HOT 1
- 【提问】谷歌账号登陆的支持吗? HOT 1
- 【讨论】我发现share-token失效之后重新获取,获取的和原来的是一样的,是吗 HOT 1
- 一堆不支持的验证码提供商报错 HOT 2
- 点击登录一直在等待 HOT 9
- 刷新失败 HOT 1
- 如何关闭验证码? HOT 3
- docker 0.7.0 無法使用 HOT 1
- docker报错RuntimeError: can't start new thread HOT 11
- 建议账号管理增加一个plus的checkbox HOT 3
- 刷新账号失败 HOT 5
- 0.7.0不设置验证码部署后,登陆页面无法访问。 HOT 8
- 0.7.0登陆页面输入密码登录无反应,log没有对应日志。 HOT 6
- 新增 docker-compose 部署方式 HOT 1
- 对于token.json备份文件清理
- 新注册的账号没有gtp store正常吗? HOT 1
- 支持管理Pool Token HOT 1
- 不懂就问 添加完账号额度光速消耗完 HOT 3
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 pandoranext-helper.