> > Do you have selinux enabled? I would guess that is part of the problem. > Negative
[root@u-puppetmaster-01 ~]# grep SELINUX /etc/sysconfig/selinux # SELINUX= can take one of these three values: SELINUX=disabled # SELINUXTYPE= can take one of three two values: SELINUXTYPE=targeted > What is the exact error? > > -bash-4.2$ /usr/bin/postgres -D /var/lib/pgsql/data/ -p 5432 2016-10-27 14:47:03 PDT FATAL: could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": No such file or directory > > What does `ls -ld /var/run/postgresql` show, is it there? It should have > postgres:postgres ownership, created via systemd-tmpfiles at boot. > > It doesn't exist after reboot: [root@ ~]# ls -ld /var/run/postgresql ls: cannot access /var/run/postgresql: No such file or directory > Also ensure that /var/run remains a symlink to /run. That's something I've actually never seen happen, you definitely made me look: [root@ ~]# ls -ld /var/run lrwxrwxrwx. 1 root root 6 Jan 21 2016 /var/run -> ../run > > > My question is, because I am new to foreman and postgresql (and how they > > are intertwined), what do I need to do to enable postgres to create the > > socket file? Did I miss some (obvious?) step? Do I need to point > > postgres to another location for the socket file (/tmp or > /var/lib/pgsql/ ?) > > It's a fairly default installation created with the > puppetlabs-postgresql module, nothing intertwined about it. Foreman is > just configured to connect to it via /etc/foreman/database.yml. > > Precisely why I am stumped as to how this isn't working. I do, thankfully, have snapshots of the VM prior to foreman install and after foreman install (prior to reboot) so I can easily rollback. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
