PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Error in installation documentation

Open jpatje opened this issue 1 year ago • 1 comments

Describe the problem

After installing all the dependencies outlined in the dependencies document. I want to create the database following the guide of the official installation, Database section. It says to:

cd /var/www/peertube and after that: sudo -u postgres createuser -P peertube

But it is not possible to cd into the var/www/peertube directory. The error is 'permission denied'. Of course I can sudo su and enter the directory in this way, but then the next command won't work (sudo -u postgres createuser -P peertube). Doing a clean install on Ubuntu 24.04 LTS.

Additional information

  • PeerTube instance URL: not yet installed
  • PeerTube version: not yet installed
  • NodeJS version: 18.19.1
  • Ffmpeg version: 6.1.1
  • Redis version: 7.0.15
  • PostgreSQL version: 16.2

jpatje avatar May 02 '24 09:05 jpatje

Found the solution, it is not in the manual. sudo chmod 755 peertube sets the correct permissions (under /var/www).

jpatje avatar May 02 '24 15:05 jpatje

Hi,

The documentation states:

Ensure the peertube root directory is traversable by nginx:

ls -ld /var/www/peertube # Should be drwxr-xr-x

In https://docs.joinpeertube.org/install/any-os#peertube-user section :)

Chocobozzz avatar May 06 '24 06:05 Chocobozzz