On 27/10/16 22:09, Joe Barnes wrote:
> I am running into issues after installation
> (following https://www.theforeman.org/manuals/1.13/index.html#2.Quickstart
> for RHEL 7)
> 
> In a nutshell, I can run through the installation and everything appears
> to be working. I can access the web interface, import puppet modules,
> etc. However, as soon as I reboot it no longer works. I can see that the
> problem is that postgresql is unable to create the socket
> file /var/run/postgresql/.s.PGSQL.5432 during startup.

What is the exact error?

What does `ls -ld /var/run/postgresql` show, is it there? It should have
postgres:postgres ownership, created via systemd-tmpfiles at boot.

Also ensure that /var/run remains a symlink to /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.

-- 
Dominic Cleal
[email protected]

-- 
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.

Reply via email to