Upgrade gitlab postgresql fail

  • I use docker install gitlab/gitlab-ce:12.7.5-ce.0 upgrade gitlab/gitlab-ce:13.1.4-ce.0
    postgresql error message
2020-07-14_17:06:01.62748 FATAL:  database files are incompatible with server
2020-07-14_17:06:01.62750 DETAIL:  The database cluster was initialized with PG_CONTROL_VERSION 1002, but the server was compiled with PG_CONTROL_VERSION 1100.
2020-07-14_17:06:01.62750 HINT:  It looks like you need to initdb.
2020-07-14_17:06:01.62750 LOG:  database system is shut down
  • I was the first to upgrade gitlab , Then replace the postgresql data file
  • How can I solve this problem?