Database error during start peertube

Hi everyone!
I manually install peertube instance. Nginx show me 502 Bad gateway.
In peertube’s …/storage/logs/peertube.log I found strings:

“level”: “error”,
“message”: “Cannot execute migration 0005.”,
“label”: “”,
“err”: {
“stack”: “SequelizeDatabaseError: relation “public.Pods” does not exist
at Query.formatError (/var/
at /var/
at tryCatcher (/var/
at Promise._settlePromiseFromHandler (/var/
at Promise._settlePromise (/var/
at Promise._settlePromise0 (/var/
at Promise._settlePromises (/var/
at _drainQueueStep (/var/
at _drainQueue (/var/
at Async._drainQueues (/var/
at Immediate.Async.drainQueues [as _onImmediate] (/var/
at processImmediate (internal/timers.js:456:21)”,
“message”: “relation “public.Pods” does not exist”,
“name”: “SequelizeDatabaseError”,
“parent”: {
“stack”: “error: relation “public.Pods” does not exist\n at Connection.parseE (/var/\n at Connection.parseMessage (/var/\n at Socket. (/var/\n at Socket.emit (events.js:321:20)\n at addChunk (_stream_readable.js:297:12)\n at readableAddChunk (_stream_readable.js:273:9)\n at Socket.Readable.push (_stream_readable.js:214:10)\n at TCP.onStreamRead (internal/stream_base_commons.js:186:23)”,
“message”: “relation “public.Pods” does not exist”,
“name”: “error”,
“length”: 109,
“severity”: “ERROR”,
“code”: “42P01”,
“file”: “namespace.c”,
“line”: “402”,
“routine”: “RangeVarGetRelidExtended”,
“sql”: “ALTER TABLE “public”.“Pods” ADD COLUMN “email” VARCHAR(400) NOT NULL DEFAULT ‘’;”
“sql”: “ALTER TABLE “public”.“Pods” ADD COLUMN “email” VARCHAR(400) NOT NULL DEFAULT ‘’;”
“timestamp”: “2020-02-03T14:40:29.646Z”

What is it? How can I solve this problem?

Please delete and re create your database and paste the output. I think there is an issue when peertube tries to initialize the database.

1 Like

Thank you. Its solved.

I’m sorry.
I have some problems with admin authentication.

But I have label “Invalid client: client is invalid”.
Tell me where the error may be.

Restart httpd and start/enable peertube and view peertube log.