Video stuck in edition mode, missing transcoded files, but stream ok

Hi. I am kinda stuck on this.

One of my user has edited one of their video with the Studio feature.

Since then, the video is displayed as being edited so it is unlisted.
The user wants to keep the original URL. Streaming/viewing is OK.

What I tried to do:

  • Modifying + saving the video: does not do anything, video still displayed as being edited + unlisted.
  • Downloading the video in any resolution and I am getting a 404 error.

Indeed, the different transcoded files are not there in the storage dir:

root@web-01 ~ # find /var/www/peertube/storage/ -type f -name "*e41cb6f3*"
root@web-01 ~ #

No pending jobs for this UUID.

Audit logs don’t show anything of interest concerning this UUID. It is shown as still waiting for transcoding tho.

Can I force the transcoding task for this video via the CLI or something?
Peertube has been restarted since then but it did nothing.

I can supply any extra info if needed. Thanks.

Audit log:

audit[21/09/2023 16:48:41]Par revedabsolus ->videos -> update

{
  "user": "revedabsolus",
  "domain": "videos",
  "action": "update",
  "video-tags": [
    "Anticipation",
    "Fiction",
    "Film",
    "Zombis"
  ],
  "video-uuid": "e41cb6f3-20da-4a44-9bc9-d848d0e34f17",
  "video-id": 560896,
  "video-createdAt": "2023-08-31T13:02:15.800Z",
  "video-updatedAt": "2023-09-20T12:52:49.260Z",
  "video-publishedAt": "2023-08-31T13:04:24.961Z",
  "video-description": "BANDE ANNONCE",
  "video-duration": 60,
  "video-isLocal": true,
  "video-name": "#1 UNE AUTRE FAIM DU MONDE (Bande annonce)",
  "video-thumbnailPath": "/static/thumbnails/77de8ec5-f3d9-4fc0-9848-650ad01116c4.jpg",
  "video-previewPath": "/lazy-static/previews/d3241339-67cd-4ddc-9610-ff8dc9d83a96.jpg",
  "video-nsfw": false,
  "video-waitTranscoding": true,
  "video-account-id": 46950,
  "video-account-name": "revedabsolus",
  "video-channel-id": 7376,
  "video-channel-name": "la_cie_reve",
  "video-support": null,
  "video-commentsEnabled": true,
  "video-downloadEnabled": true
}

I just found the transcoded files in streaming-playlists/hls/ (files naming is different).

Maybe I need to force it as published directly in database? Any help greatly appreciated.
Don’t know, maybe the user did edit the video without saving it afterwards in Studio.

root@web-01 /var/www/peertube # l storage/streaming-playlists/hls/e41cb6f3-20da-4a44-9bc9-d848d0e34f17/
total 60M
-rw-r--r-- 1 peertube peertube  870 31 août  15:08 0351575d-c91e-4663-9d37-202d270c51bd-master.m3u8
-rw-r--r-- 1 peertube peertube 7,8K 31 août  15:08 4400a04f-4044-4e83-b8a5-93bc7ff267e5-segments-sha256.json
-rw-r--r-- 1 peertube peertube 3,4M 31 août  15:08 62b8c621-1872-48d6-bd4c-9b66fbca56af-240-fragmented.mp4
-rw-r--r-- 1 peertube peertube 1,8K 31 août  15:08 62b8c621-1872-48d6-bd4c-9b66fbca56af-240.m3u8
-rw-r--r-- 1 peertube peertube 5,3M 31 août  15:06 6868d57f-669d-4697-b0c4-d1a128be6811-360-fragmented.mp4
-rw-r--r-- 1 peertube peertube 1,8K 31 août  15:06 6868d57f-669d-4697-b0c4-d1a128be6811-360.m3u8
-rw-r--r-- 1 peertube peertube 1,4M 31 août  15:04 a2725e1c-2f22-44fc-9ed7-74ec2e1124a7-0-fragmented.mp4
-rw-r--r-- 1 peertube peertube 1,7K 31 août  15:04 a2725e1c-2f22-44fc-9ed7-74ec2e1124a7-0.m3u8
-rw-r--r-- 1 peertube peertube 7,5M 31 août  15:05 c9379780-d245-4d34-bed3-d82f3d341f52-480-fragmented.mp4
-rw-r--r-- 1 peertube peertube 1,8K 31 août  15:05 c9379780-d245-4d34-bed3-d82f3d341f52-480.m3u8
-rw-r--r-- 1 peertube peertube  29M 31 août  15:04 f74cfef6-44a5-47d6-b33c-54bd53332635-1080-fragmented.mp4
-rw-r--r-- 1 peertube peertube 1,8K 31 août  15:04 f74cfef6-44a5-47d6-b33c-54bd53332635-1080.m3u8
-rw-r--r-- 1 peertube peertube  14M 31 août  15:07 fc9c3655-27ef-49c8-b93f-c2c49eb4bd24-720-fragmented.mp4
-rw-r--r-- 1 peertube peertube 1,8K 31 août  15:07 fc9c3655-27ef-49c8-b93f-c2c49eb4bd24-720.m3u8

Hi,

Maybe the edition task crashed? If you find the error logs, don’t hesitate to share it so we can fix the root issue.

You can fix the video state and put it as « public » using the following sql command:

update video set "state"='1' where "uuid"='e41cb6f3-20da-4a44-9bc9-d848d0e34f17';
1 « J'aime »