PeerTube embed plugin errors

What app is this about, and its version: PeerTube 8.1.3~ynh1
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online

Describe your issue

Since a botched PeerTube upgrade two weeks ago (since fixed) my VPS is having all sorts of issues (mostly dnsmasq related).

I just checked my PeerTube logs and it appears there is a problem with the Embed plugin. I uninstalled and reinstalled it but the problems persist. I cannot delete the plugin because one of my PeerTube videos is being embedded on lots of sites.

Anyway, sharing logs below and I would really appreciate any advice (I get there’s an issue with “uuid” but I don’t know how to address/fix this).

Share relevant logs or error messages

error[4/6/2026, 12:48:51 PM] Cannot run hook filter:html.embed.video.allowed.result of plugin embed.
{
“err”: {
“stack”: “Error\n at Query.run (/var/www/peertube/node_modules/.pnpm/sequelize@6.37.8_pg@8.18.0/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)\n at /var/www/peertube/node_modules/.pnpm/sequelize@6.37.8_pg@8.18.0/node_modules/sequelize/lib/sequelize.js:315:28\n at async Promise.all (index 0)\n at async VideoModelGetQueryBuilder.queryVideo (file:///var/www/peertube/dist/core/models/video/sql/video/video-model-get-query-builder.js:50:76)\n at async handler (/home/yunohost.app/peertube/storage/plugins/node_modules/peertube-plugin-embed/main.js:16:21)\n at async internalRunHook (file:///var/www/peertube/packages/core-utils/dist/plugins/hooks.js:16:19)\n at async PluginManager.runHook (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:168:22)\n at async generateVideoEmbedHtmlPage (file:///var/www/peertube/dist/core/controllers/client.js:76:27)”,
“message”: “invalid input syntax for type uuid: ""”,
“name”: “SequelizeDatabaseError”,
“parent”: {
“stack”: “error: invalid input syntax for type uuid: ""\n at parseErrorMessage (/var/www/peertube/node_modules/.pnpm/pg-protocol@1.11.0/node_modules/pg-protocol/dist/parser.js:305:11)\n at Parser.handlePacket (/var/www/peertube/node_modules/.pnpm/pg-protocol@1.11.0/node_modules/pg-protocol/dist/parser.js:143:27)\n at Parser.parse (/var/www/peertube/node_modules/.pnpm/pg-protocol@1.11.0/node_modules/pg-protocol/dist/parser.js:37:38)\n at Socket. (/var/www/peertube/node_modules/.pnpm/pg-protocol@1.11.0/node_modules/pg-protocol/dist/index.js:11:42)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:189:23)”,
“message”: “invalid input syntax for type uuid: ""”,
“length”: 100,
“name”: “error”,
“severity”: “ERROR”,
“code”: “22P02”,
“position”: “681”,
“file”: “uuid.c”,
“line”: “133”,
“routine”: “string_to_uuid”,
“sql”: “SELECT "video"., "Thumbnails"."id" AS "Thumbnails.id", "Thumbnails"."filename" AS "Thumbnails.filename", "Thumbnails"."fileUrl" AS "Thumbnails.fileUrl", "Thumbnails"."width" AS "Thumbnails.width", "Thumbnails"."height" AS "Thumbnails.height", "Thumbnails"."aspectRatio" AS "Thumbnails.aspectRatio", "Thumbnails"."cached" AS "Thumbnails.cached", "Thumbnails"."automaticallyGenerated" AS "Thumbnails.automaticallyGenerated", "Thumbnails"."videoId" AS "Thumbnails.videoId", "Thumbnails"."videoPlaylistId" AS "Thumbnails.videoPlaylistId", "Thumbnails"."createdAt" AS "Thumbnails.createdAt", "Thumbnails"."updatedAt" AS "Thumbnails.updatedAt" FROM (SELECT * FROM "video" WHERE uuid = ‘’ LIMIT 1) AS "video" LEFT OUTER JOIN "thumbnail" AS "Thumbnails" ON "video"."id" = "Thumbnails"."videoId""
},
“sql”: "SELECT "video".
, "Thumbnails"."id" AS "Thumbnails.id", "Thumbnails"."filename" AS "Thumbnails.filename", "Thumbnails"."fileUrl" AS "Thumbnails.fileUrl", "Thumbnails"."width" AS "Thumbnails.width", "Thumbnails"."height" AS "Thumbnails.height", "Thumbnails"."aspectRatio" AS "Thumbnails.aspectRatio", "Thumbnails"."cached" AS "Thumbnails.cached", "Thumbnails"."automaticallyGenerated" AS "Thumbnails.automaticallyGenerated", "Thumbnails"."videoId" AS "Thumbnails.videoId", "Thumbnails"."videoPlaylistId" AS "Thumbnails.videoPlaylistId", "Thumbnails"."createdAt" AS "Thumbnails.createdAt", "Thumbnails"."updatedAt" AS "Thumbnails.updatedAt" FROM (SELECT * FROM "video" WHERE uuid = ‘’ LIMIT 1) AS "video" LEFT OUTER JOIN "thumbnail" AS "Thumbnails" ON "video"."id" = "Thumbnails"."videoId"”,
“parameters”: {}
}
}

I don’t have a Peertube instance, but I found this.
I hope it will help you.

PeerTube Embed

Thanks… I still need help with this, interpreting the logs :smiling_face_with_tear:

I found this which is similar to your case:

The command to execute to access MySQL:

mysql

Result :
MariaDB [(none)]>

Connect to

connect peertube

Result :
SELECT COUNT(*) FROM "video";

Then check the GitHub link and once finished.
Type “exit” to quit

I don’t have a Peertube instance, but I hope this can help you.