Live streams are breaking up

Hi there, lately I have problems with live streams on my site. The are breaking up after a few minutes with the following error:

[makertube.net:443] 2025-03-14 07:18:36.135 error: Cannot copy segment /data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts to replay directory. {
  "err": {
    "stack": "Error: ENOENT: no such file or directory, open '/data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts'",
    "message": "ENOENT: no such file or directory, open '/data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts'",
    "errno": -2,
    "code": "ENOENT",
    "syscall": "open",
    "path": "/data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts"
  }
}
[makertube.net:443] 2025-03-14 07:18:36.143 error: Cannot store TS segment /data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts in object storage {
  "err": {
    "stack": "Error: ENOENT: no such file or directory, open '/data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts'",
    "message": "ENOENT: no such file or directory, open '/data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts'",
    "errno": -2,
    "code": "ENOENT",
    "syscall": "open",
    "path": "/data/streaming-playlists/hls/private/d4e880da-399b-4b19-842b-65bbe87d18c5/0-000016.ts"
  }
}

Any clue what might be the issue here? I recently changed object storage backend but I thought it’s not involved in lives, only in the end when it’s permanently stored.

And it makes no difference if I have transcoding of the stream enabled or not.

I just found this setting: PeerTube/config/production.yaml.example at develop · Chocobozzz/PeerTube · GitHub
I will try that.

Hi,

Can you enable debug logs so we can see why this segment is not available?

Now I have problems to reproduce it. Maybe some latency issue on object storage side?