Hello. I’ve installed PeerTube today, following the installation steps carefully. The problem I have is that transcoding never seems to start (or finish).
For example, here is a test video Final frontier - Bogus Agency PeerTube on which you can see the message « The video is being transcoded ». But no progress is made. There are no transcoding processes ever run on the server.
In the admin jobs view I see « transcoding job builder » output like this:
Job: da72f7b3-af91-4db3-98ba-6115ce026f2f
Type: transcoding-job-builder
Processed on -
Finished on -
{
"videoUUID": "eb05cfce-0ca6-4fa2-913a-61e7b1503980",
"optimizeJob": {
"isNewVideo": true
}
}
But this does not seem to create any actual transcoding jobs, and watching the process table on the server shows no activity from ffmpeg or anything else.
My instance is PeerTube v6.3.3 running in an LXD container on Ubuntu 24.04. I started with a completely fresh Ubuntu container. I followed the installation steps very literally. The only difference is that I am using a separate nginx reverse proxy, and so have removed the « optimizations » from the nginx config that rely on local access to files and placed the config on the proxy.
The peertube log file at /var/www/peertube/storage/logs/peertube.log does not mention transcoding at all, or contain any errors.
So I am stuck because I have no information about why transcoding is not happening. No errors, no logs, no feedback.
Unable to connect to PostgreSQL database. {
"err": {
"stack": "SequelizeConnectionError: password authentication failed for user \"peertube\"\n at Client._connectionCallback (/var/www/peertube/versions/peertube-v6.3.3/node_modules/sequelize/lib/dialects/pos
tgres/connection-manager.js:145:24)\n at Client._handleErrorWhileConnecting (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg/lib/client.js:327:19)\n at Client._handleErrorMessage (/var/www/peert
ube/versions/peertube-v6.3.3/node_modules/pg/lib/client.js:347:19)\n at Connection.emit (node:events:507:28)\n at /var/www/peertube/versions/peertube-v6.3.3/node_modules/pg/lib/connection.js:117:12\n at
Parser.parse (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg-protocol/dist/parser.js:36:17)\n at Socket.<anonymous> (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg-protocol/dist/index
.js:11:42)\n at Socket.emit (node:events:507:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (nod
e:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:189:23)",
"name": "SequelizeConnectionError",
"parent": {
"stack": "error: password authentication failed for user \"peertube\"\n at Parser.parseErrorMessage (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg-protocol/dist/parser.js:283:98)\n at Pa
rser.handlePacket (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg-protocol/dist/parser.js:122:29)\n at Parser.parse (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg-protocol/dist/parser
.js:35:38)\n at Socket.<anonymous> (/var/www/peertube/versions/peertube-v6.3.3/node_modules/pg-protocol/dist/index.js:11:42)\n at Socket.emit (node:events:507:28)\n at addChunk (node:internal/streams/re
adable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons
:189:23)",
"length": 104,
"name": "error",
"severity": "FATAL",
"code": "28P01",
"file": "auth.c",
"line": "323",
"routine": "auth_failed"
}
}
}
So there are many uncaught exceptions with buffer overflows mentioning jobs:
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: \"length\" is outside of buffer bounds
at Buffer.utf8Write (node:internal/buffer:1066:13)
at Packr.encodeUtf8 (/var/www/peertube/versions/peertube-v6.3.3/node_modules/msgpackr/dist/node.cjs:1211:18)
at pack (/var/www/peertube/versions/peertube-v6.3.3/node_modules/msgpackr/dist/node.cjs:1504:15)
at packArray (/var/www/peertube/versions/peertube-v6.3.3/node_modules/msgpackr/dist/node.cjs:1418:5)
at pack (/var/www/peertube/versions/peertube-v6.3.3/node_modules/msgpackr/dist/node.cjs:1604:7)
at Packr.pack.encode (/var/www/peertube/versions/peertube-v6.3.3/node_modules/msgpackr/dist/node.cjs:1309:6)
at Scripts.addStandardJob (/var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/scripts.js:99:19)
at Scripts.addJob (/var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/scripts.js:143:33)
at Job.addJob (/var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/job.js:782:29)
at FlowProducer.addNode (/var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/flow-producer.js:183:17)
at /var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/flow-producer.js:243:39
at Array.map (<anonymous>)
at FlowProducer.addChildren (/var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/flow-producer.js:243:22)
at FlowProducer.addNode (/var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/flow-producer.js:168:35)
at /var/www/peertube/versions/peertube-v6.3.3/node_modules/bullmq/dist/cjs/classes/flow-producer.js:243:39
at Array.map (<anonymous>)