500 error only when attempting to log in as root (Docker)

Hi there, my first post on this forum.

I have been running GitLab via the Docker implementation for quite some time with success. Today I attempted an upgrade path 13.12 → 14.0 → latest. The last jump failed, and so I attempted to go back to a 14.0.5 that another user cited as being their fix. That failed, and so i went back to a backup of 14.0.0, which earlier was working well.

From this point I have since had the dreaded 500 error only on logging in as root (the name of my admin account) through the interface. All other accounts can log in fine. In the production log, I see:

ActionView::Template::Error (PG::UndefinedTable: ERROR:  relation "services" does not exist
LINE 8:  WHERE a.attrelid = '"services"'::regclass
    1: - return unless show_service_templates_deprecated_callout?
    3: - doc_link_start = "<a href=\"#{integrations_help_page_path}\" target='_blank' rel='noopener noreferrer'>".html_safe
    4: - settings_link_start = "<a href=\"#{integrations_admin_application_settings_path}\">".html_safe

After upgrade I have run the gitlab-rake db:migrate and gitlab-rake db:migrate:status reports all are up. I have also run gitlab-ctl reconfigure with no change in outcome.

Any help appreciated!

Here is some output from the Postgres log when I attempt to log in as root (the admin account):

2021-10-16_06:20:58.28148 ERROR:  relation "services" does not exist at character 454
2021-10-16_06:20:58.28156 STATEMENT:  SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2021-10-16_06:20:58.28158              pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
2021-10-16_06:20:58.28159              c.collname, col_description(a.attrelid, a.attnum) AS comment
2021-10-16_06:20:58.28162         FROM pg_attribute a
2021-10-16_06:20:58.28163         LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2021-10-16_06:20:58.28163         LEFT JOIN pg_type t ON a.atttypid = t.oid
2021-10-16_06:20:58.28164         LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
2021-10-16_06:20:58.28165        WHERE a.attrelid = '"services"'::regclass
2021-10-16_06:20:58.28166          AND a.attnum > 0 AND NOT a.attisdropped
2021-10-16_06:20:58.28167        ORDER BY a.attnum

Any ideas? I’m quite stuck with this one.

FTR this was finally solved by going from 14.0.5 to 14.0.11, and then on to 14.1.7. I’ll take greater care of the recommended upgrade path next time (which I’d never needed to do before, so went in overconfident).