Upgrade to PeerTube v5.0.0 failure

Hi there,
I trust you are well.

My PeerTube instance won’t start after upgrade. I don’t know where to start debugging this. I’d appreciate any assistance.

Dec 14 17:07:54 noiz peertube[961]: at Object. (/var/www/peertube/versions/peertube-v5.0.0/dist/server/helpers/logger.js:12:18)
Dec 14 17:07:54 noiz peertube[961]: at Module._compile (node:internal/modules/cjs/loader:1155:14)
Dec 14 17:07:55 noiz systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Dec 14 17:07:55 noiz systemd[1]: peertube.service: Failed with result ‹ exit-code ›.
Dec 14 17:07:55 noiz systemd[1]: peertube.service: Scheduled restart job, restart counter is at 5.
Dec 14 17:07:55 noiz systemd[1]: Stopped PeerTube daemon.
Dec 14 17:07:55 noiz systemd[1]: peertube.service: Start request repeated too quickly.
Dec 14 17:07:55 noiz systemd[1]: peertube.service: Failed with result ‹ exit-code ›.
Dec 14 17:07:55 noiz systemd[1]: Failed to start PeerTube daemon.
Dec 14 17:08:40 noiz systemd[1]: Started PeerTube daemon.
Dec 14 17:08:41 noiz peertube[982]: /var/www/peertube/versions/peertube-v5.0.0/node_modules/config/lib/config.js:179
Dec 14 17:08:41 noiz peertube[982]: throw new Error(‹ Configuration property " › + property + ‹ " is not defined ›);
Dec 14 17:08:41 noiz peertube[982]: ^
Dec 14 17:08:41 noiz peertube[982]: Error: Configuration property « object_storage.upload_acl.public » is not defined
Dec 14 17:08:41 noiz peertube[982]: at Config.get (/var/www/peertube/versions/peertube-v5.0.0/node_modules/config/lib/config.js:179:11)
Dec 14 17:08:41 noiz peertube[982]: at Object. (/var/www/peertube/versions/peertube-v5.0.0/dist/server/initializers/config.js:117:28)
Dec 14 17:08:41 noiz peertube[982]: at Module._compile (node:internal/modules/cjs/loader:1155:14)
Dec 14 17:08:41 noiz peertube[982]: at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10)
Dec 14 17:08:41 noiz peertube[982]: at Module.load (node:internal/modules/cjs/loader:1033:32)
Dec 14 17:08:41 noiz peertube[982]: at Function.Module._load (node:internal/modules/cjs/loader:868:12)
Dec 14 17:08:41 noiz peertube[982]: at Module.require (node:internal/modules/cjs/loader:1057:19)
Dec 14 17:08:41 noiz peertube[982]: at require (node:internal/modules/cjs/helpers:103:18)
Dec 14 17:08:41 noiz peertube[982]: at Object. (/var/www/peertube/versions/peertube-v5.0.0/dist/server/helpers/logger.js:12:18)
Dec 14 17:08:41 noiz peertube[982]: at Module._compile (node:internal/modules/cjs/loader:1155:14)
Dec 14 17:08:41 noiz systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE

1 « J'aime »

I had the same error on one of my instance.
Even if you are not using S3 storage, just copy and overwrite this block of configuration from the production.yml.example file to your production.yml:

Note: if you are using S3 storage, don’t overwrite, but compare your current config with the expected one.

To be more specific, I think the exact error is this change, that has to be made (even if you are not using S3):

1 « J'aime »

I found the solution. I copied the production.yaml.example into the production folder, edited it appropriately and made it live. Issue resolved.

I managed to resolve the original issue, however the ‹ channels › are no longer displaying in the GUI. Any ideas?