Postgresql 13 on CentOS8 fail to start at boot time, but can be started manualy

Solution 1:

I had exactly the same error! The database was also transferred to another mounted disk, but as it turned out, that was not the problem. In the postgresql.conf file on line 59, change

#listen_addresses = 'localhost' # what IP address (es) to listen on;

to

listen_addresses = '*'

This solved my problem. Now postgresql 13 starts automatically when the server boots!