Closed
Description
I followed all the installation guide and still had problem with make postgres
on a debian machine.
Initially I had the following error when running the sudo make postgres
-> Configure PostgreSQL database
-> Create database user 'packagedb'
sudo -u postgres createuser --no-createrole --no-superuser --login --inherit --createdb packagedb || true
sudo: unknown user: postgres
sudo: error initializing audit plugin sudoers_audit
sudo -u postgres psql -c "alter user packagedb with encrypted password 'packagedb';" || true
sudo: unknown user: postgres
sudo: error initializing audit plugin sudoers_audit
-> Drop 'packagedb' database
sudo -u postgres dropdb packagedb || true
sudo: unknown user: postgres
sudo: error initializing audit plugin sudoers_audit
-> Create 'packagedb' database
sudo -u postgres createdb --encoding=utf-8 --owner=packagedb packagedb
sudo: unknown user: postgres
sudo: error initializing audit plugin sudoers_audit
make: *** [Makefile:87: postgres] Error 1
so I started the service sudo service postgresql start
and I tried creating a user postgres
manually and the error still persists with the following error message.
-> Configure PostgreSQL database
-> Create database user 'packagedb'
sudo -u postgres createuser --no-createrole --no-superuser --login --inherit --createdb packagedb || true
createuser: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
sudo -u postgres psql -c "alter user packagedb with encrypted password 'packagedb';" || true
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
-> Drop 'packagedb' database
sudo -u postgres dropdb packagedb || true
dropdb: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
-> Create 'packagedb' database
sudo -u postgres createdb --encoding=utf-8 --owner=packagedb packagedb
createdb: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
make: *** [Makefile:87: postgres] Error 1
am I missing something?
Installed OS: Debian 6.0.12-1parrot1 x86_64 GNU/Linux
Installed PostgreSQL: postgres (PostgreSQL) 13.9 (Debian 13.9-0+deb11u1)
Metadata
Metadata
Assignees
Labels
No labels