limn wrote:When it is successfully started on my box, messages has like this:
Code: Select all
Jul 25 06:46:45 gentoo su[10401]: Successful su for postgres by root
Jul 25 06:46:45 gentoo su[10401]: + /dev/pts/0 root:postgres
Jul 25 06:46:45 gentoo su[10401]: pam_unix(su:session): session opened for user postgres by limn(uid=0)
Jul 25 06:46:55 gentoo su[10401]: pam_unix(su:session): session closed for user postgres
dev-db/postgresql-10_beta2 is compiled with "ldap nls pam readline server ssl xml zlib" enabled.
Is sys-apps/shadow-4.5 compiled with pam on your box? Is pam a global use flag?
What happens if you
su - postgress asks for password, and i haven't set one.
this is the contents of /etc/pam.d/postgresql-10
Code: Select all
auth include system-auth
account include system-auth
session include system-auth
contents of /etc/postgresql-10/pg_hba.conf
Code: Select all
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all trust
host replication all 127.0.0.1/32 trust
host replication all ::1/128 trust
this is a line in /var/lib/postgresql/10/data/posmaster.log
Code: Select all
2017-07-28 22:49:45.958 CEST [24261] LOG: worker process: logical replication launcher (PID 24269) exited with exit code 1
2017-07-28 22:49:45.958 CEST [24261] LOG: received smart shutdown request
2017-07-28 22:49:46.014 CEST [24264] LOG: shutting down
2017-07-28 22:49:46.363 CEST [24261] LOG: database system is shut down
yes shadow is compiled with pam
update:
if i su - postgres as root, i can start the database with the command
Code: Select all
pg_ctl -D /var/lib/postgresql/10/data start
[Moderator edit: added [code] tags to preserve output layout. -Hu]
this is a strange strange world.