Skip to content

Transcoding Failed on Remote Runner: Unknown next state for video [uuid]: 2 #7514

@RSXEnthusiast

Description

@RSXEnthusiast

Describe the current behavior

Currently, when any video is uploaded to my instance, the remote runner HLS transcoding job completes, but then errors at the end with a reported "Unknown next state for video [uuid]: 2"

Steps to reproduce

  1. Upload video
  2. Allow it to transcode on a remote runner
  3. Observe error

Describe the expected behavior

The job should complete transcoding without error.

Additional information

  • PeerTube instance:

  • Browser name, version and platforms on which you could reproduce the bug:

    • Firefox 148.0.2 (but likely not relevant)
  • Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):

These seem to be some relevant logs:

peertube-1  | [joeltube.com:443] 2026-03-22 17:29:25.233 info: 192.168.0.226 - - [22/Mar/2026:17:29:25 +0000] "POST /api/v1/runners/jobs/33b6f680-d3c6-4511-a933-6cde852aa527/update HTTP/1.1" 204 - "-" "-"
peertube-1  | [joeltube.com:443] 2026-03-22 17:29:30.163 warn: Cannot execute function with many retries. {
peertube-1  |   "err": {
peertube-1  |     "stack": "Error: Unknown next state for video 7d36038c-fe95-4c94-97b3-4d273c27a37a: 2\n    at file:///app/dist/core/lib/video-state.js:51:19\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /app/node_modules/.pnpm/sequelize@6.37.8_pg@8.18.0/node_modules/sequelize/lib/sequelize.js:507:18",
peertube-1  |     "message": "Unknown next state for video 7d36038c-fe95-4c94-97b3-4d273c27a37a: 2"
peertube-1  |   }
peertube-1  | }
peertube-1  | [joeltube.com:443] 2026-03-22 17:29:30.163 warn: Cannot execute moveToNextState with many retries. {
peertube-1  |   "err": {
peertube-1  |     "stack": "Error: Unknown next state for video 7d36038c-fe95-4c94-97b3-4d273c27a37a: 2\n    at file:///app/dist/core/lib/video-state.js:51:19\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /app/node_modules/.pnpm/sequelize@6.37.8_pg@8.18.0/node_modules/sequelize/lib/sequelize.js:507:18",
peertube-1  |     "message": "Unknown next state for video 7d36038c-fe95-4c94-97b3-4d273c27a37a: 2"
peertube-1  |   }
peertube-1  | }
peertube-1  | [joeltube.com:443] 2026-03-22 17:29:30.163 error: Cannot complete runner job {
peertube-1  |   "err": {
peertube-1  |     "stack": "Error: Unknown next state for video 7d36038c-fe95-4c94-97b3-4d273c27a37a: 2\n    at file:///app/dist/core/lib/video-state.js:51:19\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /app/node_modules/.pnpm/sequelize@6.37.8_pg@8.18.0/node_modules/sequelize/lib/sequelize.js:507:18",
peertube-1  |     "message": "Unknown next state for video 7d36038c-fe95-4c94-97b3-4d273c27a37a: 2"
peertube-1  |   }
peertube-1  | }
peertube-1  | [joeltube.com:443] 2026-03-22 17:29:32.246 info: Creating torrent /data/torrents/5c1b9f46-1147-4e52-b445-a252787f0668-360-hls.torrent.
peertube-1  | [joeltube.com:443] 2026-03-22 17:29:32.264 info: Fetching HLS file hls/7d36038c-fe95-4c94-97b3-4d273c27a37a/99d4751f-5a21-482c-9dc1-e4af4084eed5-0-fragmented.mp4 from object storage to /data/tmp/17bbf214-df57-433a-acb3-e808c9e7b987.mp4.
peertube-1  | [joeltube.com:443] 2026-03-22 17:29:32.533 info: 192.168.0.226 - - [22/Mar/2026:17:29:32 +0000] "POST /api/v1/runners/jobs/2c8159a2-7e44-4538-a269-e3947488c329/update HTTP/1.1" 204 - "-" "-"

If I recreate the transcoding jobs in the admin panel, they seem to complete successfully.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions