I've installed a trial version of EDB PostgreSQL 11.3 on a RHEL 7.3 virtual machine.
I followed the installation steps and all went well until I tried to connect to the database from pgadmin and got this: FATAL: no pg_hba.conf entry for host "10.2.191.84", user "system", database "postgres", SSL off
So I set up enabling remote connection. Postgresql.conf had already had listen_addresses = '*'
so I added
host all all 0.0.0.0/0 md5
host all all ::/0 md5
And now I need to restart the database.
Installation instructions told me to run systemctl restart edb-as-11
but that fails:
[root@EDBPostgre0 bin]# systemctl restart edb-as-11.service
Job for edb-as-11.service failed because the control process exited with error code. See "systemctl status edb-as-11.service" and "journalctl -xe" for details.
[root@EDBPostgre0 bin]#
[root@EDBPostgre0 bin]#
[root@EDBPostgre0 bin]#
[root@EDBPostgre0 bin]# systemctl status edb-as-11.service
● edb-as-11.service - EDB Postgres Advanced Server 11
Loaded: loaded (/usr/lib/systemd/system/edb-as-11.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-04-28 17:33:22 IDT; 3s ago
Process: 7142 ExecStartPre=/usr/edb/as11/bin/edb-as-11-check-db-dir ${PGDATA} (code=exited, status=1/FAILURE)
Apr 28 17:33:22 meirav4EDBPostgre0 systemd[1]: Starting EDB Postgres Advanced Server 11...
Apr 28 17:33:22 meirav4EDBPostgre0 systemd[1]: edb-as-11.service: control process exited, code=exited status=1
Apr 28 17:33:22 meirav4EDBPostgre0 systemd[1]: Failed to start EDB Postgres Advanced Server 11.
Apr 28 17:33:22 meirav4EDBPostgre0 systemd[1]: Unit edb-as-11.service entered failed state.
Apr 28 17:33:22 meirav4EDBPostgre0 systemd[1]: edb-as-11.service failed.
[root@EDBPostgre0 bin]# journalctl -xe
Apr 28 17:33:22 EDBPostgre0 systemd[1]: Failed to start EDB Postgres Advanced Server 11.
-- Subject: Unit edb-as-11.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit edb-as-11.service has failed.
--
-- The result is failed.
And what's strangest is that I can still connect to the database via psql. But I need to also connect to it remotely.
I tried to restart postgresql.service but there's no such thing on my machine. Using pg_ctl only told me off and pointed me to use systemctl.
What am I doing wrong?