Coder Social home page Coder Social logo

Comments (7)

239144498 avatar 239144498 commented on June 1, 2024

需要安装python模块,执行命令pip install cryptography

from streaming-media-server-pro.

louphier avatar louphier commented on June 1, 2024

感谢回复,我是用的dockerhub的镜像,还需要在再安装python模块么。刚刚主机安装了cryptography,docker还是不能运行,报同意的错误。

from streaming-media-server-pro.

239144498 avatar 239144498 commented on June 1, 2024

感谢回复,我是用的dockerhub的镜像,还需要在再安装python模块么。刚刚主机安装了cryptography,docker还是不能运行,报同意的错误。

模块需要装在容器中,你在配置文件中把defaultdb 留空再运行试试

from streaming-media-server-pro.

louphier avatar louphier commented on June 1, 2024

defaultdb 留空运行后,再pip install cryptography,再用回mysql就可以了,谢谢!

from streaming-media-server-pro.

redrainl avatar redrainl commented on June 1, 2024

我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.

239144498 avatar 239144498 commented on June 1, 2024

官方把**服务器ip拉黑了,现在有些频道不能看,你可以看看其他频道,我正在找解决办法。

from streaming-media-server-pro.

239144498 avatar 239144498 commented on June 1, 2024

defaultdb 留空运行后,再pip install cryptography,再用回mysql就可以了,谢谢!

不客气(^_^)

from streaming-media-server-pro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.