Ubuntu 24.04 /var/www/peertube/peertube-latest/ failed (13: Permission denied

Hello, after installing on Ubuntu 24.04 I constantly encounter this. The installation is standard, the default Nginx and PeerTube configs have not been changed either (domain, key, database password have been added). Nginx 1.24, PeerTube 6.3.2. ffmpeg -version 6, yarn 1.22, Node.js v20.18.0. Freshly installed, page PeerTube in the console error 403. In the logs /var/log/nginx/peertube.error.log. Where else can I look to solve this?)

213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/ru-RU/styles-6MDVCK3R.css HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:35:56 [error] 932#932: *1 open() "/var/www/peertube/peertube-latest/client/dist/ru-RU/media/SourceSans3VF-Roman.ttf-DPX3LM3Z.woff2" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/ru-RU/media/SourceSans3VF-Roman.ttf-DPX3LM3Z.woff2 HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:35:56 [crit] 932#932: *1 stat() "/var/www/peertube/storage/client-overrides/assets/images/favicon.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/favicon.png?a93b43dcee16e78f0091d2152f669f95d86c3ac6 HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:35:56 [crit] 932#932: *1 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/favicon.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/favicon.png?a93b43dcee16e78f0091d2152f669f95d86c3ac6 HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:35:56 [crit] 932#932: *5 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /manifest.webmanifest?638bd546d7da7ed563c1cadcff4f73a5755c961a HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:35:56 [crit] 932#932: *1 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-144x144.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-144x144.png HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:35:56 [crit] 932#932: *1 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-144x144.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-144x144.png HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:36:03 [error] 932#932: *1 open() "/var/www/peertube/peertube-latest/client/dist/ru-RU/styles-6MDVCK3R.css" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/ru-RU/styles-6MDVCK3R.css HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:36:03 [crit] 932#932: *5 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /manifest.webmanifest?638bd546d7da7ed563c1cadcff4f73a5755c961a HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/my-library/video-channels"
2024/10/18 19:36:23 [crit] 932#932: *10 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 88.99.26.177, server: angeltales.angellive.ru, request: "GET / HTTP/1.1", host: "angeltales.angellive.ru"
2024/10/18 19:36:36 [crit] 932#932: *13 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET / HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-UG7XBKEN.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-UG7XBKEN.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-GOQXWQS6.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-GOQXWQS6.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-L6IFYWM5.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-L6IFYWM5.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-CFH4UIWR.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-CFH4UIWR.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-ZIGFMZH6.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-ZIGFMZH6.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-2LHPOVYD.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-2LHPOVYD.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-CSVAFG3P.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-CSVAFG3P.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-TE466U42.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-TE466U42.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-ZTIZI5SX.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-ZTIZI5SX.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/chunk-A3C2VH6R.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/chunk-A3C2VH6R.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/polyfills-MMKWWPQO.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/polyfills-MMKWWPQO.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/main-VSF4UGOE.js" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/main-VSF4UGOE.js HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/styles-6MDVCK3R.css" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/styles-6MDVCK3R.css HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:37 [error] 932#932: *13 open() "/var/www/peertube/peertube-latest/client/dist/en-US/media/SourceSans3VF-Roman.ttf-DPX3LM3Z.woff2" failed (13: Permission denied), client: 34.72.176.129, server: angeltales.angellive.ru, request: "GET /client/en-US/media/SourceSans3VF-Roman.ttf-DPX3LM3Z.woff2 HTTP/2.0", host: "angeltales.angellive.ru", referrer: "https://angeltales.angellive.ru/"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-36x36.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-36x36.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-36x36.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-36x36.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-48x48.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-48x48.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-48x48.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-48x48.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-72x72.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-72x72.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-72x72.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-72x72.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-96x96.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-96x96.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-96x96.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-96x96.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-144x144.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-144x144.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:45 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-144x144.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-144x144.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:46 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-192x192.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-192x192.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:46 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-192x192.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-192x192.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:46 [crit] 932#932: *15 stat() "/var/www/peertube/storage/client-overrides/assets/images/icons/icon-512x512.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-512x512.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:46 [crit] 932#932: *15 stat() "/var/www/peertube/peertube-latest/client/dist/assets/images/icons/icon-512x512.png" failed (13: Permission denied), client: 213.108.6.232, server: angeltales.angellive.ru, request: "GET /client/assets/images/icons/icon-512x512.png HTTP/2.0", host: "angeltales.angellive.ru"
2024/10/18 19:36:46 [crit] 932#932: *22 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 205.169.39.184, server: angeltales.angellive.ru, request: "GET / HTTP/1.1", host: "angeltales.angellive.ru"
2024/10/18 19:36:53 [crit] 932#932: *29 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 205.169.39.184, server: angeltales.angellive.ru, request: "GET / HTTP/2.0", host: "angeltales.angellive.ru"

Standard folder permissions

root@vxfgcoktfl:~# ls -ld /var/www/peertube/peertube-latest/client/dist/ru-RU/
drwxr-xr-x 3 peertube peertube 32768 Oct  8 05:11 /var/www/peertube/peertube-latest/client/dist/ru-RU/
root@vxfgcoktfl:~# ls -ld /var/www/peertube/storage/
drwxrwxr-x 20 peertube peertube 4096 Oct 18 19:34 /var/www/peertube/storage/
ls -ld /var/www/peertube
drwxr-x--- 7 peertube peertube 4096 Oct 18 19:28 /var/www/peertube

After installation, nothing changed, only the PeerTube config was edited. I installed it several times, the result is the same, one thing still confuses me is this: what is dev/null?

2024/10/18 19:36:23 [crit] 932#932: *10 stat() "/var/www/peertube/storage/dev/null" failed (13: Permission denied), client: 88.99.26.177, server: angeltales.angellive.ru, request: "GET / HTTP/1.1", host: "angeltales.angellive.ru"

/var/www/peertube/storage/logs/peertube.log

{"level":"info","message":"Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml.","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:23.730Z"}
{"level":"info","message":"Database peertube_prod is ready.","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:24.275Z"}
{"message":"Creating a default OAuth Client.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.051Z"}
{"message":"Creating the administrator.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.070Z"}
{"message":"Creating application account.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.076Z"}
{"message":"Client id: kf214pjxngxcneyc2bi13vpor0kj86z0","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.084Z"}
{"message":"Client secret: lJV4zce9Tii2biQIz8u8QdLF0hCy8LLZ","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.085Z"}
{"message":"Generating a RSA key...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.148Z"}
{"message":"Generating a RSA key...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.360Z"}
{"message":"Generating a RSA key...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.364Z"}
{"message":"Username: root","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.757Z"}
{"message":"User password: gokakabesizexuja","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.757Z"}
{"message":"Connecting to redis standalone...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.764Z"}
{"level":"info","message":"Using mail.angellive.ru:587 as SMTP server.","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.769Z"}
{"message":"Testing SMTP server...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.787Z"}
{"message":"Connected to redis.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:25.922Z"}
{"level":"info","message":"Connection established to 5.35.90.175:587","label":"angeltales.angellive.ru:443","component":"smtp-connection","sid":"vHMCjGVy3oQ","tnx":"network","localAddress":"217.12.38.187","localPort":56550,"remoteAddress":"5.35.90.175","remotePort":587,"timestamp":"2024-10-18T19:34:26.373Z"}
{"component":"smtp-connection","sid":"vHMCjGVy3oQ","tnx":"smtp","level":"info","message":"Connection upgraded with STARTTLS","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:26.624Z"}
{"level":"info","message":"User \"tales@angellive.ru\" authenticated","label":"angeltales.angellive.ru:443","component":"smtp-connection","sid":"vHMCjGVy3oQ","tnx":"smtp","username":"tales@angellive.ru","action":"authenticated","method":"PLAIN","timestamp":"2024-10-18T19:34:26.692Z"}
{"message":"Successfully connected to SMTP server.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:26.693Z"}
{"level":"info","message":"HTTP server listening on 127.0.0.1:9000","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:26.726Z"}
{"level":"info","message":"Web server: https://angeltales.angellive.ru","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:26.727Z"}
{"component":"smtp-connection","sid":"vHMCjGVy3oQ","tnx":"network","level":"info","message":"Connection closed","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:26.901Z"}
{"level":"info","message":"Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml.","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:50.387Z"}
{"level":"info","message":"Database peertube_prod is ready.","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:50.996Z"}
{"message":"Connecting to redis standalone...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.214Z"}
{"level":"info","message":"Using mail.angellive.ru:587 as SMTP server.","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.220Z"}
{"message":"Testing SMTP server...","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.238Z"}
{"message":"Connected to redis.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.327Z"}
{"level":"info","message":"Connection established to 5.35.90.175:587","label":"angeltales.angellive.ru:443","component":"smtp-connection","sid":"6injNZwq99Y","tnx":"network","localAddress":"217.12.38.187","localPort":57576,"remoteAddress":"5.35.90.175","remotePort":587,"timestamp":"2024-10-18T19:34:51.746Z"}
{"component":"smtp-connection","sid":"6injNZwq99Y","tnx":"smtp","level":"info","message":"Connection upgraded with STARTTLS","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.922Z"}
{"level":"info","message":"User \"tales@angellive.ru\" authenticated","label":"angeltales.angellive.ru:443","component":"smtp-connection","sid":"6injNZwq99Y","tnx":"smtp","username":"tales@angellive.ru","action":"authenticated","method":"PLAIN","timestamp":"2024-10-18T19:34:51.958Z"}
{"message":"Successfully connected to SMTP server.","level":"info","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.959Z"}
{"level":"info","message":"HTTP server listening on 127.0.0.1:9000","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.995Z"}
{"level":"info","message":"Web server: https://angeltales.angellive.ru","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:51.996Z"}
{"component":"smtp-connection","sid":"6injNZwq99Y","tnx":"network","level":"info","message":"Connection closed","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:34:52.166Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:35:56 +0000] \"GET /my-library/video-channels HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:35:56.149Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:35:56 +0000] \"GET /client/assets/images/favicon.png?a93b43dcee16e78f0091d2152f669f95d86c3ac6 HTTP/1.0\" 200 746 \"https://angeltales.angellive.ru/my-library/video-channels\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:35:56.547Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:35:56 +0000] \"GET /manifest.webmanifest?638bd546d7da7ed563c1cadcff4f73a5755c961a HTTP/1.0\" 200 883 \"https://angeltales.angellive.ru/my-library/video-channels\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:35:56.652Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:35:56 +0000] \"GET /client/assets/images/icons/icon-144x144.png HTTP/1.0\" 200 8319 \"https://angeltales.angellive.ru/my-library/video-channels\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:35:56.708Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:03 +0000] \"GET /manifest.webmanifest?638bd546d7da7ed563c1cadcff4f73a5755c961a HTTP/1.0\" 304 - \"https://angeltales.angellive.ru/my-library/video-channels\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:03.886Z"}
{"tags":["http"],"level":"info","message":"88.99.0.0 - - [18/Oct/2024:19:36:23 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.5993.80 Mobile Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:23.124Z"}
{"tags":["http"],"level":"info","message":"34.72.0.0 - - [18/Oct/2024:19:36:36 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4515.159 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:36.872Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:45 +0000] \"GET /client/assets/images/icons/icon-36x36.png HTTP/1.0\" 200 9211 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:45.084Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:45 +0000] \"GET /client/assets/images/icons/icon-48x48.png HTTP/1.0\" 200 8260 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:45.252Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:45 +0000] \"GET /client/assets/images/icons/icon-72x72.png HTTP/1.0\" 200 8777 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:45.312Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:45 +0000] \"GET /client/assets/images/icons/icon-96x96.png HTTP/1.0\" 200 7804 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:45.925Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:45 +0000] \"GET /client/assets/images/icons/icon-144x144.png HTTP/1.0\" 200 8319 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:45.987Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:46 +0000] \"GET /client/assets/images/icons/icon-192x192.png HTTP/1.0\" 200 8197 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:46.474Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:19:36:46 +0000] \"GET /client/assets/images/icons/icon-512x512.png HTTP/1.0\" 200 11463 \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:46.557Z"}
{"tags":["http"],"level":"info","message":"205.169.0.0 - - [18/Oct/2024:19:36:46 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:46.650Z"}
{"tags":["http"],"level":"info","message":"205.169.0.0 - - [18/Oct/2024:19:36:53 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:36:53.228Z"}
{"tags":["http"],"level":"info","message":"93.119.0.0 - - [18/Oct/2024:19:43:23 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; SCH-I535 Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:43:23.084Z"}
{"tags":["http"],"level":"info","message":"205.169.0.0 - - [18/Oct/2024:19:44:15 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:44:15.999Z"}
{"tags":["http"],"level":"info","message":"69.4.0.0 - - [18/Oct/2024:19:55:25 +0000] \"GET / HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T19:55:25.042Z"}
{"tags":["http"],"level":"info","message":"176.9.0.0 - - [18/Oct/2024:20:01:38 +0000] \"GET /my-library/video-channels HTTP/1.0\" 200 16530 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T20:01:38.842Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:20:02:11 +0000] \"GET /my-library/video-channels HTTP/1.0\" 304 - \"-\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T20:02:11.685Z"}
{"tags":["http"],"level":"info","message":"213.108.0.0 - - [18/Oct/2024:20:02:12 +0000] \"GET /manifest.webmanifest?638bd546d7da7ed563c1cadcff4f73a5755c961a HTTP/1.0\" 304 - \"https://angeltales.angellive.ru/my-library/video-channels\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\"","label":"angeltales.angellive.ru:443","timestamp":"2024-10-18T20:02:12.179Z"}




In general, the topic is like this, I have set it many times and received such complexity many times. Here’s what I found out for some reason from the /var/www/peertube / folder after installing strictly according to the manual Production guide | PeerTube documentation, rights are 750, not 755, and Nginx can’t interact with it. Strange, I put on another version of Ubuntu 22.04 I see the rights of the folder /var/www/peertube after installation 755, and /var/www/peertube/storage in general 775(although I always thought that the rights to it were 750). All files have 644, but this is normal, but with the rights of folders, everything is strange. Once you put the same scenario, you get one thing, another time another(I have a creak and it can not be mistaken)
It is not very clear why in the installation rights folder config 750??? So what are the correct rights as planned and on which folders? Thanks

cd /var/www/peertube
sudo -u peertube mkdir config storage versions
sudo -u peertube chmod 750 config/



644 for /var/www/peertube/config is fine, but i think 640 would be ok too.

But for the storage folder, and for the folder containing peertube assets, nginx need access too.
So avoid removing rights for other.

An alternative solution would be to add the user used by nginx in the peertube group. I never tried, but I assume it could work. Note: I’m note sure it is a good idea (nginx could write in some files/directories if you give write access to the peertube group).
(on Debian, the nginx user is www-data).

Hello, the question is that in the official documentation we see this

cd /var/www/peertube
sudo -u peertube mkdir config storage versions
sudo -u peertube chmod 750 config/

When installing strictly according to Production guide | PeerTube documentation, sometimes we get permissions to the /var/www/peertube 750 folder, which prevents nginx from working. The most interesting thing is that if you put it on another system, for example on DEbian 12, the rights will already be 755, the scenario is the same, a mystery).
It might be worth amending the documentation, including adding Nginx to the group is a good idea. But still, it would be good to understand the installation and creation of rights.

Sorry, i thought you had an issue.

Indeed, the documentation is not very precise. The default rights when creating the folder will be inherited from /var/www, and I guess it can depend on the OS.

Feel free to make a Pull Request on the documentation.

1 « J'aime »

Can you detail why it’s not precise enough? We have a line in Production guide | PeerTube documentation stating Ensure the peertube root directory is traversable by nginx: (with the command below to check folder rights).

Some distributions have different umask policies.

Oh right.
Why not add sudo -u peertube chmod 755 /var/www/peertube to make it clearer?

1 « J'aime »

That’s right, I tested the installation on different distributions, and 50/50 I was faced with the lack of rights for Nginx. There are other errors, but more on them next time)