livekit / ingress

Ingest streams (RTMP/WHIP) or files (HLS, MP4) to LiveKit WebRTC
Apache License 2.0
71 stars 25 forks source link

Failed reading cpu stats file on WSL2 #45

Closed Lyx52 closed 1 year ago

Lyx52 commented 1 year ago

Starting the service it exists with exit code 0 and throws "Failed reading cpu stats file". Im using WSL2 and Docker Engine v4.16.1. I tried running it as a seperate docker container and adding it as a service to livekit, but seems to return the same message.

These are the logs: {"level":"info","ts":1674200810.1469305,"logger":"ingress","caller":"redis/redis.go:53","msg":"connecting to redis","nodeID":"NE_hdd82Cduay5A","sentinel":false,"addr":"host.docker.internal:6379"} failed reading cpu stats file {"level":"debug","ts":1674200810.1541233,"logger":"ingress","caller":"service/service.go:119","msg":"starting service","nodeID":"NE_hdd82Cduay5A"} {"level":"info","ts":1674200810.1541848,"logger":"ingress","caller":"stats/monitor.go:126","msg":"available CPU cores: 12.000000 max cost: 2.000000","nodeID":"NE_hdd82Cduay5A"}

This is my configuration file: log_level: debug api_key: <retracted> api_secret: <retracted> ws_url: ws://<retracted>:7880 redis: address: host.docker.internal:6379 username: "" password: "" db: 0 cpu_cost: rtmp_cpu_cost: 2.0 ingress: rtmp_base_url: rtmp://<retracted>

Lyx52 commented 1 year ago

Issue is fixed when building docker image from source...