tmiland / invidious-updater

Automatic install and update script for Invidious
https://github.com/iv-org/invidious
MIT License
240 stars 38 forks source link

psql: FATAL: Peer authentication failed for user "kemal" #85

Closed arvidortwig closed 2 years ago

arvidortwig commented 2 years ago

When running the script (download and execute) to install invidious it throws the error: psql: FATAL: Peer authentication failed for user "kemal"

Expected behavior ➜ Running /home/invidious/invidious/config/sql/users.sql CREATE TABLE GRANT CREATE INDEX

Running on Debian 11

Solution: Add -h 127.0.0.1 to the command in line 1598: ${SUDO} -i -u postgres PGPASSWORD="$PSQLPASS" psql -U kemal -h 127.0.0.1 -d $PSQLDB -f $file

tmiland commented 2 years ago

Closing. Not able to reproduce this issue on Debian 11 with latest Master