Postgres: PANIC: could not locate a valid checkpoint record

I recently started to play with Postgres and this was one of the errors I got from my setup when I was trying to bring up the database:   [Tue Nov 06 09:58:10 root@postgres-primary:~ ] $ su – postgres -c ‘/usr/pgsql-10/bin/pg_ctl -D $PGDATA start’ waiting for server to start….2018-11-06 09:58:37.346 UTC [21595] LOG: listening on…