@nebulon Having the same here, I had to remove peertube-plugin-categories for the app to boot without issue.
log part about this :
Aug 18 09:17:27 [yourdomain.tld:443 peertube-plugin-categories] 2021-08-18 07:17:27.335 error: uncaughtException: Unexpected token < in JSON at position 0
Aug 18 09:17:27 SyntaxError: Unexpected token < in JSON at position 0
Aug 18 09:17:27 at JSON.parse (<anonymous>)
Aug 18 09:17:27 at IncomingMessage.<anonymous> (/app/data/storage/plugins/node_modules/peertube-plugin-categories/src/server/api.js:26:24)
Aug 18 09:17:27 at IncomingMessage.emit (events.js:327:22)
Aug 18 09:17:27 at IncomingMessage.EventEmitter.emit (domain.js:467:12)
Aug 18 09:17:27 at endReadableNT (internal/streams/readable.js:1327:12)
Aug 18 09:17:27 at processTicksAndRejections (internal/process/task_queues.js:80:21) {
Aug 18 09:17:27 "error": {
Aug 18 09:17:27 "stack": "SyntaxError: Unexpected token < in JSON at position 0\n at JSON.parse (<anonymous>)\n at IncomingMessage.<anonymous> (/app/data/storage/plugins/node_modules/peertube-plugin-categories/src/server/api.js:26:24)\n at IncomingMessage.emit (events.js:327:22)\n at IncomingMessage.EventEmitter.emit (domain.js:467:12)\n at endReadableNT (internal/streams/readable.js:1327:12)\n at processTicksAndRejections (internal/process/task_queues.js:80:21)",
Aug 18 09:17:27 "message": "Unexpected token < in JSON at position 0"
I went to /app/data/storage/plugins/node_modules/ to remove it, the app boot log
Aug 18 09:17:49 [yourdomain.tld:443] 2021-08-18 07:17:49.879 info: Registering plugin or theme peertube-plugin-categories.
Aug 18 09:17:49 [yourdomain.tld:443] 2021-08-18 07:17:49.880 info: Unregister plugin peertube-plugin-categories.
Aug 18 09:17:49 [yourdomain.tld:443] 2021-08-18 07:17:49.880 error: Cannot register plugin categories, skipping. {
Aug 18 09:17:49 "err": {
Aug 18 09:17:49 "stack": "Error: ENOENT: no such file or directory, open '/app/data/storage/plugins/node_modules/peertube-plugin-categories/package.json'",
Aug 18 09:17:49 "message": "ENOENT: no such file or directory, open '/app/data/storage/plugins/node_modules/peertube-plugin-categories/package.json'",
Aug 18 09:17:49 "errno": -2,
Aug 18 09:17:49 "code": "ENOENT",
Aug 18 09:17:49 "syscall": "open",
Aug 18 09:17:49 "path": "/app/data/storage/plugins/node_modules/peertube-plugin-categories/package.json"
Aug 18 09:17:49 }
But then boot just fine, I'm going to try to reinstall this plugin from the front-end and see how it goes !
edit : reinstall the plugin work just fine