Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reloading not working #2661

Open
1 of 13 tasks
robsumoza opened this issue Nov 7, 2023 · 2 comments
Open
1 of 13 tasks

Hot reloading not working #2661

robsumoza opened this issue Nov 7, 2023 · 2 comments
Labels
bug Something isn't working general

Comments

@robsumoza
Copy link

Which version are you using?

v1.2.1

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

When changing the configuration file nothing is happening, nor logs nor any change on the server.

Describe how to replicate the issue

  1. start the server - docker run --rm -it --network=host -v $PWD/mediamtx.yml:/mediamtx.yml bluenviron/mediamtx
    2.update config file

Did you attach the server logs?

no

It does not shown any logs even in debug mode when the file is updated manually

Did you attach a network dump?

no

@aler9
Copy link
Member

aler9 commented Nov 10, 2023

Hello, yes, when the configuration file is mounted from the host to Docker through -v, the server is unable to detect changes. In a previous issue i wrote that this was a Docker limitation and i recommended to mount the configuration file in a folder, in this way:

docker run --rm -it --network=host -v $PWD/conf:/conf:ro bluenviron/mediamtx /conf/mediamtx.yml

Anyway i'd like to dig further into the bug, so i'm leaving this issue open. If this really can't be fixed, i'll update the README with the solution above.

@aler9 aler9 added bug Something isn't working general labels Nov 10, 2023
@v1ct0rv
Copy link

v1ct0rv commented Nov 29, 2023

Hi,

I changed my docker-compose.yml file to:

services:
  mediamtx:
    container_name: mediamtx
    image: bluenviron/mediamtx:latest-ffmpeg
    restart: unless-stopped
    network_mode: "host"
    volumes:
      - $PWD/conf:/conf:ro
    command: /conf/mediamtx.yml

but hot reloading still not works...

The server starts ok, but is not loading new configurations:

mediamtx  | 2023/11/29 21:07:54 INF MediaMTX v1.3.1
mediamtx  | 2023/11/29 21:07:54 INF configuration loaded from /conf/mediamtx.yml
mediamtx  | 2023/11/29 21:07:54 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
mediamtx  | 2023/11/29 21:07:54 INF [RTMP] listener opened on :1935
mediamtx  | 2023/11/29 21:07:54 INF [HLS] listener opened on :8888
mediamtx  | 2023/11/29 21:07:54 INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/UDP)
mediamtx  | 2023/11/29 21:07:54 INF [SRT] listener opened on :8890 (UDP)
mediamtx  | 2023/11/29 21:07:54 INF [API] listener opened on 0.0.0.0:9997
mediamtx  | 2023/11/29 21:07:56 INF [WebRTC] [session a627342e] created by [::1]:45868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working general
Projects
None yet
Development

No branches or pull requests

3 participants