Comments (7)
需要安装python模块,执行命令pip install cryptography
from streaming-media-server-pro.
感谢回复,我是用的dockerhub的镜像,还需要在再安装python模块么。刚刚主机安装了cryptography,docker还是不能运行,报同意的错误。
from streaming-media-server-pro.
感谢回复,我是用的dockerhub的镜像,还需要在再安装python模块么。刚刚主机安装了cryptography,docker还是不能运行,报同意的错误。
模块需要装在容器中,你在配置文件中把defaultdb 留空再运行试试
from streaming-media-server-pro.
defaultdb 留空运行后,再pip install cryptography,再用回mysql就可以了,谢谢!
from streaming-media-server-pro.
我docker部署的,没有连接数据库,昨天还可以正常用,今天发现日志报错。重拉了最新镜像,重启dockre,现象依旧,请求epg.xml和program.m3u正常,但channel.m3u8请求后报错,日志如下:
2022-10-06 14:23:42.079 | INFO | app.settings::14 - 配置加载中...
2022-10-06 14:23:43.367 | INFO | app.settings::90 - 配置加载完成
2022-10-06 14:23:43.860 | INFO | app.modules.DBtools::13 - 检测redis连接
2022-10-06 14:23:43.874 | WARNING | app.modules.DBtools::28 - redis连接失败
2022-10-06 14:23:43.875 | WARNING | app.modules.DBtools:init:53 - 数据库连接失败
2022-10-06 14:23:44.738 | SUCCESS | app.utile:init:48 - init final
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
INFO: 101.88.146.xxx:43783 - "GET /program.m3u HTTP/1.1" 200 OK
INFO: 101.88.146.xxx:42368 - "GET /EPG.xml HTTP/1.1" 200 OK
INFO: 101.88.146.xxx:43799 - "GET /channel.m3u8?fid=4gtv-live006&hd=1080 HTTP/1.1" 200 OK
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 269, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 670, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 68, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 260, in call
await wrap(partial(self.listen_for_disconnect, receive))
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 662, in aexit
raise exceptions[0]
File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 256, in wrap
await func()
File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 245, in stream_response
async for chunk in self.body_iterator:
File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 63, in iterate_in_threadpool
yield await anyio.to_thread.run_sync(_next, iterator)
File "/usr/local/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 53, in _next
return next(iterator)
File "/code/./app/utile.py", line 118, in generatem3u8
self.check(fid, hd)
File "/code/./app/utile.py", line 89, in check
self.updateonline(fid, hd)
File "/code/./app/utile.py", line 52, in updateonline
last = int(re.findall(r"expires.=(\d+)", url).pop())
IndexError: pop from empty list
INFO: 101.88.146.134:43800 - "GET /channel.m3u8?fid=4gtv-live006&hd=1080 HTTP/1.1" 200 OK
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 269, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 670, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 68, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 260, in call
await wrap(partial(self.listen_for_disconnect, receive))
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 662, in aexit
raise exceptions[0]
File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 256, in wrap
await func()
File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 245, in stream_response
async for chunk in self.body_iterator:
File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 63, in iterate_in_threadpool
yield await anyio.to_thread.run_sync(_next, iterator)
File "/usr/local/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 53, in _next
return next(iterator)
File "/code/./app/utile.py", line 118, in generatem3u8
self.check(fid, hd)
File "/code/./app/utile.py", line 89, in check
self.updateonline(fid, hd)
File "/code/./app/utile.py", line 52, in updateonline
last = int(re.findall(r"expires.=(\d+)", url).pop())
IndexError: pop from empty list
from streaming-media-server-pro.
官方把**服务器ip拉黑了,现在有些频道不能看,你可以看看其他频道,我正在找解决办法。
from streaming-media-server-pro.
defaultdb 留空运行后,再pip install cryptography,再用回mysql就可以了,谢谢!
不客气(^_^)
from streaming-media-server-pro.
Related Issues (20)
- updateonline函数报错 HOT 1
- docker环境下开启后很快无响应 HOT 7
- 请问有(天映经典)频道吗? HOT 9
- 请问proxy接口是否支持代理有用户名密码验证的m3u8 HOT 3
- 请求接口需要加参数,例如http://127.0.0.1:8080/channel3.m3u8?fid=4gtv-4gtv018 HOT 1
- 用docker佈署 出現錯誤 請問要如何解決? 用最新的2.5版 HOT 3
- 請問一直報錯 是否是演算法改變了?無法使用了? HOT 8
- 请教mysql的问题 HOT 10
- 新版2.6 已重新git 下來 有些頻道可以 大部分都無法解析成功 附上錯誤訊息 HOT 7
- 382420058上的数据没了 HOT 2
- generate_url 函数报错 HOT 1
- 請問斷流問題~有方法可改善嗎? HOT 5
- 今天突然無法使用~附上BUG 是否解析出問題了? 連docker也是一樣 有重新pull過了 HOT 1
- 用docker 會出現 该ip已被程序拉黑,无法访问 解封禁规则https://github.com/239144498/Streaming-Media-Server-Pro/issues/ HOT 5
- config.py中gdata = None,导致生成频道列表出错 HOT 1
- 导出program.m3u错误 HOT 1
- 请求成功,无法打开链接 HOT 1
- 请教大佬一下 HOT 5
- 無法正常使用
- 这个项目不能用了吗 HOT 1
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 streaming-media-server-pro.