PeerTubeでS3を設定したけどdaemonが起動できない。
謎。 #peertube root@ubuntu:~$ sudo journalctl -u peertube -f
Aug 15 00:38:21 ubuntu peertube[1009]: at Module.load (node:internal/modules/cjs/loader:1091:32)
Aug 15 00:38:21 ubuntu peertube[1009]: at Module._load (node:internal/modules/cjs/loader:938:12)
Aug 15 00:38:21 ubuntu peertube[1009]: Node.js v20.5.1
Aug 15 00:38:22 ubuntu systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Aug 15 00:38:22 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Aug 15 00:38:22 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 5.
Aug 15 00:38:22 ubuntu systemd[1]: Stopped PeerTube daemon.
Aug 15 00:38:22 ubuntu systemd[1]: peertube.service: Start request repeated too quickly.
Aug 15 00:38:22 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Aug 15 00:38:22 ubuntu systemd[1]: Failed to start PeerTube daemon.
Conversation
Notices
-
PYU224(KindWorld管理者) (pyu224@misskey.kindworld.one)'s status on Tuesday, 15-Aug-2023 09:49:49 JST PYU224(KindWorld管理者) -
ふよん (fuyon@misskey.kindworld.one)'s status on Tuesday, 15-Aug-2023 13:11:35 JST ふよん @PYU224 journalctlは標準で直近10行のログを出力しますが、エラーが長くて先頭部分が削れてますね。 -n で行数が指定できるので、以下のようにある程度大きな値を設定すればエラー全体が見えると思います。sudo journalctl -u peertube -n 50
PYU224(KindWorld管理者) likes this. -
PYU224(KindWorld管理者) (pyu224@misskey.kindworld.one)'s status on Tuesday, 15-Aug-2023 13:22:44 JST PYU224(KindWorld管理者) @fuyon エラーメッセージが見えました。
S3のエンドポイントの後に半角の「:」が無かったから起きたエラーのようです。
修正できました。ありがとうございます。Aug 15 00:38:21 ubuntu systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE Aug 15 00:38:21 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'. Aug 15 00:38:21 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 4. Aug 15 00:38:21 ubuntu systemd[1]: Stopped PeerTube daemon. Aug 15 00:38:21 ubuntu systemd[1]: Started PeerTube daemon. Aug 15 00:38:21 ubuntu peertube[1009]: /var/www/peertube/versions/peertube-v5.2.0/node_modules/config/lib/config.js:853 Aug 15 00:38:21 ubuntu peertube[1009]: throw new Error("Cannot parse config file: '" + fullFilename + "': " + e3); Aug 15 00:38:21 ubuntu peertube[1009]: ^ Aug 15 00:38:21 ubuntu peertube[1009]: Error: Cannot parse config file: '/var/www/peertube/config/production.yaml': YAMLException: can not read an implicit mapping pai> Aug 15 00:38:21 ubuntu peertube[1009]: 159 | enabled: true Aug 15 00:38:21 ubuntu peertube[1009]: 160 | Aug 15 00:38:21 ubuntu peertube[1009]: 161 | # Without protocol, will default to HTTPS Aug 15 00:38:21 ubuntu peertube[1009]: 162 | endpoint 's3.terrahost.no' # 's3.amazonaws.com' or 's3.fr- ... Aug 15 00:38:21 ubuntu peertube[1009]: ------------------------------------^ Aug 15 00:38:21 ubuntu peertube[1009]: 163 | Aug 15 00:38:21 ubuntu peertube[1009]: 164 | region: 'no-south-1' Aug 15 00:38:21 ubuntu peertube[1009]: at util.parseFile (/var/www/peertube/versions/peertube-v5.2.0/node_modules/config/lib/config.js:853:11) Aug 15 00:38:21 ubuntu peertube[1009]: at /var/www/peertube/versions/peertube-v5.2.0/node_modules/config/lib/config.js:649:26 Aug 15 00:38:21 ubuntu peertube[1009]: at Array.forEach () Aug 15 00:38:21 ubuntu peertube[1009]: at util.loadFileConfigs (/var/www/peertube/versions/peertube-v5.2.0/node_modules/config/lib/config.js:648:16) Aug 15 00:38:21 ubuntu peertube[1009]: at new Config (/var/www/peertube/versions/peertube-v5.2.0/node_modules/config/lib/config.js:113:27) Aug 15 00:38:21 ubuntu peertube[1009]: at Object. (/var/www/peertube/versions/peertube-v5.2.0/node_modules/config/lib/config.js:1510:31) Aug 15 00:38:21 ubuntu peertube[1009]: at Module._compile (node:internal/modules/cjs/loader:1233:14) Aug 15 00:38:21 ubuntu peertube[1009]: at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) Aug 15 00:38:21 ubuntu peertube[1009]: at Module.load (node:internal/modules/cjs/loader:1091:32)
-