I have deployed a few times in these two days. Tonight, when I tried in a new server, it returns with this error message:
could not change directory to « /var/www/peertube »: Permission denied
in quite a few places.
root@localhost:~# cd /var/www/peertube
sudo -u postgres createuser -P peertube
could not change directory to « /var/www/peertube »: Permission denied
Enter password for new role:
Enter it again:
root@localhost:/var/www/peertube# sudo -u postgres createdb -O peertube -E UTF8 -T template0 peertube_prod
could not change directory to « /var/www/peertube »: Permission denied
root@localhost:/var/www/peertube# -u postgres createuser -P peertube
-u: command not found
root@localhost:/var/www/peertube# sudo -u postgres createuser -P peertube
could not change directory to « /var/www/peertube »: Permission denied
Enter password for new role:
Enter it again:
root@localhost:/var/www/peertube# sudo -u postgres createdb -O peertube -E UTF8 -T template0 peertube_prod
could not change directory to « /var/www/peertube »: Permission denied
I did not recall seeing this yesterday.
Now my site is a blank page: o8o.icu
I have use the same command to install peertube which I used last night. I can successfully visit the peertube site right after. But now is a blank page.
Can someone help me please?