Error 500 on yum update with Omnibus

I forgot to block GitLab when upgrading the OS. Now I’m getting a 500 error. Can I rebuid/reinstall the installation while keeping the PostgreSQL and repos unchanged?

$ sudo gitlab-rake gitlab:check --trace

** Invoke gitlab:check (first_time)
** Invoke gitlab_environment (first_time)
** Execute gitlab_environment
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:check

Checking GitLab subtasks …
Checking GitLab Shell …

GitLab Shell: … GitLab Shell version >= 14.18.0 ? … OK (14.18.0)

Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successful
Checking GitLab Shell … Finished

Checking Gitaly …

Gitaly: … default … OK

Checking Gitaly … Finished

Checking Sidekiq …
Sidekiq: … Running? … yes

Number of Sidekiq processes (cluster/worker) … 1/1

Checking Sidekiq … Finished

Checking Incoming Email …
Incoming Email: … Reply by email is disabled in config/gitlab.yml

Checking Incoming Email … Finished

Checking LDAP …
LDAP: … Server: ldapmain
LDAP authentication… Success
LDAP users with access to your GitLab server (only showing the first 100 results) Exception: LDAP search timed out after 10 seconds

Checking LDAP … Finished

Checking GitLab App …

Database config exists? … yes

All migrations up? … no

Try fixing it:
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

Please fix the error above and rerun the checks.

Database contains orphaned GroupMembers? … no

GitLab config exists? … yes

GitLab config up to date? … yes

Cable config exists? … yes

Resque config exists? … yes

Log directory writable? … yes

Tmp directory writable? … yes

Uploads directory exists? … yes

Uploads directory has correct permissions? … yes

Uploads directory tmp has correct permissions? … yes

Systemd unit files or init script exist? … skipped (omnibus-gitlab has neither init script nor systemd units)

Systemd unit files or init script up-to-date? … skipped (omnibus-gitlab has neither init script nor systemd units)

Projects have namespace: …

All … yes

Redis version >= 6.0.0? … yes

Ruby version >= 2.7.2 ? … yes (3.0.6)

Git user has default SSH configuration? … yes

Active users: … 39

Is authorized keys file accessible? … yes

GitLab configured to store new projects in hashed storage? … yes

All projects are in hashed storage? … yes

Elasticsearch version 7.x-8.x or OpenSearch version 1.x … skipped (Advanced Search is disabled)

All migrations must be finished before doing a major upgrade … skipped (Advanced Search is disabled)

Checking GitLab App … Finished

Checking GitLab subtasks … Finished

I resolved this issue by uninstalling gitlab and reinstalling previous version.

1 Like