Discussion:
[OPEN-ILS-GENERAL] postgres: FATAL: role "root" does not exist
Jim Lynch
2016-07-10 15:52:50 UTC
Permalink
It looks like the install of postgres went in without error by running:
***@ubuntu-OptiPlex-755:~/Evergreen-ILS-2.10.5# make -f
Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-trusty
But when I issued:

***@ubuntu-OptiPlex-755:~/Evergreen-ILS-2.10.5# createuser -s -P evergreen
Enter password for new role:
Enter it again:
createuser: could not connect to database postgres: FATAL: role "root"
does not exist

Just in case I did
***@ubuntu-OptiPlex-755:~/Evergreen-ILS-2.10.5# /etc/init.d/postgresql
start
* Starting PostgreSQL 9.3 database server

But a second attempt ad creating a user failed in the same manner. I'm
not a postgres person. I know mysql well.

Thanks,
Jim.
Ben Shum
2016-07-10 15:59:04 UTC
Permalink
The create user step from the README says to do it as the postgres user.
You're attempting to run the command as the root user, hence the error
message. You can switch users using something like "su postgres"

-- Ben

Sent from my Nexus 6
Post by Jim Lynch
Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-trusty
createuser: could not connect to database postgres: FATAL: role "root"
does not exist
Just in case I did
start
* Starting PostgreSQL 9.3 database server
But a second attempt ad creating a user failed in the same manner. I'm not
a postgres person. I know mysql well.
Thanks,
Jim.
Loading...