livekit / egress

Export and record WebRTC sessions and tracks
https://blog.livekit.io/livekit-universal-egress-launch/
Apache License 2.0
168 stars 68 forks source link

[BUG] failed to create egress, no response from servers #720

Closed jsyqrt closed 1 month ago

jsyqrt commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

Failed to start-room-composite-egress

2024-07-07T10:42:40.975Z        DEBUG   egress  stats/monitor.go:173    cpu check       {"nodeID": "NE_s7aGJGh4RzTK", "clusterID": "", "total": 8, "pending": 0, "used": 0, "required": 4, "available": 8, "activeRequests": 0, "canAccept": true}
2024-07-07T10:42:40.976Z        INFO    egress  server/server_rpc.go:55 request received        {"nodeID": "NE_s7aGJGh4RzTK", "clusterID": "", "egressID": "EG_4EYXNfRZSTXJ"}
2024-07-07T10:42:41.982Z        ERROR   egress  service/io.go:47        failed to create egress {"nodeID": "NE_s7aGJGh4RzTK", "clusterID": "", "error": "no response from servers"}
github.com/livekit/egress/pkg/service.(*IOClient).CreateEgress
        /workspace/pkg/service/io.go:47
github.com/livekit/egress/pkg/server.(*Server).StartEgress
        /workspace/pkg/server/server_rpc.go:64
github.com/livekit/psrpc/pkg/server.(*rpcHandlerImpl[...]).handleRequest
        /root/go/pkg/mod/github.com/livekit/psrpc@v0.5.3-0.20240403150641-811331b106d9/pkg/server/rpc.go:188
github.com/livekit/psrpc/pkg/server.(*rpcHandlerImpl[...]).run.func1.1
        /root/go/pkg/mod/github.com/livekit/psrpc@v0.5.3-0.20240403150641-811331b106d9/pkg/server/rpc.go:133

Egress Version What version are you running? v1.8.5

Egress Request Post the request here (be sure to remove any PII).

{
  "room_name": "cc1f5d29-3972-4da3-87a1-6ae42aa3ff31",
  "layout": "speaker-dark",
  "file_outputs": [
    {
      "filepath": "/opt/my-room-test.mp4"
    }
  ]
}

Additional context Add any other context about the problem here.

livekit-cli version 1.2.10 livekit-server version 1.4.5

Logs Post any relevant logs from the egress service here.

jsyqrt commented 2 months ago

command line used

livekit-cli start-room-composite-egress --url http://localhost:7880 --api-key devkey --api-secret secret --request x.json --verbose
{
  "room_name": "cc1f5d29-3972-4da3-87a1-6ae42aa3ff31",
  "layout": "speaker-dark",
  "Output": null,
  "Options": null,
  "file_outputs": [
    {
      "filepath": "/opt/my-room-test.mp4",
      "Output": null
    }
  ]
}
twirp error unavailable: no response from servers
jsyqrt commented 1 month ago

It works fine after upgrading livekit-server to 1.7.0, closing this.