Error Upgrading Gitlab CE with Docker, 16.1.2 -> 16.2.3

Got error trying to upgrade my Gitlab Community instance with Docker from version 16.1.2 to 16.2.3.

Docker instance states is Healthy, but can not be accessed via Web Browser.

Seeing the instance logs, found this error message:

==> /var/log/gitlab/postgres-exporter/current <==
2023-08-07_19:05:35.64894 ts=2023-08-07T19:05:35.648Z caller=collector.go:190 level=error msg=“collector failed” name=replication duration_seconds=0.177372624 err=“sql: Scan error on column index 0, name "pg_postmaster_start_time": converting driver.Value type time.Time ("2023-08-07 18:52:36.299511 +0000 GMT") to a float64: invalid syntax”

I have tried reverting to my Previous version, 16.1.2, but Redis not starting with Error DB.

2023-08-07_19:28:03.28976 3629:M 07 Aug 2023 19:28:03.289 # Server initialized
2023-08-07_19:28:03.29042 3629:M 07 Aug 2023 19:28:03.290 # Can’t handle RDB format version 10
2023-08-07_19:28:03.29049 3629:M 07 Aug 2023 19:28:03.290 # Fatal error loading the DB: Invalid argument. Exiting

What should I do to get it fixed ??

Suggest disabling the postgres exporter until postgres-exporter has pg_postmaster_start_time invalid syntax (#420063) · Issues · GitLab.org / GitLab · GitLab is addressed (requires updating the exporter in GitLab).

Hi, dnsmichi

Thank you for suggestion. My issue has been resolved. My Gitlab Instance is currently working as usual.

What I did:

I am not sure Upgrading to 16.2.3 for now, I guess let it run with 16.1.4 for now, since I got no article related to pg_postmaster_start_time issue

1 Like