Issues after updating

Hi everyone,

I ran into an issue with upgrading, in which one of the solutions involved running bundle install/update, which resulted in it not resolving the issue:

uninitialized constant Gitlab::CurrentSettings

another solution involved uninstalling all gems and reinstalling them, which inevitably resulted in this:

sudo gitlab-rake gitlab:backup:create
Could not find rails-6.1.7.6, responders-3.1.0, pg-1.5.4, rugged-1.6.3, faraday-1.10.3, bcrypt-3.1.19, rexml-3.2.6, omniauth-2.1.1, omniauth-auth0-3.1.1, omniauth-azure-activedirectory-v2-2.1.0, jwt-2.7.1, recaptcha-5.15.0, validates_hostname-1.0.13, acme-client-2.0.14, ohai-17.9.1, gpgme-2.0.23, grape-1.7.1, grape-entity-0.10.2, graphql-1.13.19, graphiql-rails-1.9.0, apollo_upload_server-2.1.5, hamlit-2.15.2, fog-aws-3.19.0, fog-google-1.22.0, seed-fu-2.3.9, elasticsearch-model-7.2.1, aws-sdk-cloudformation-1.82.0, commonmarker-0.23.10, asciidoctor-2.0.20, rouge-4.1.3, nokogiri-1.15.4, icalendar-2.9.0, rack-2.2.8, puma-6.3.1, acts-as-taggable-on-9.0.1, sidekiq-6.5.9, ruby-progressbar-1.13.0, js_regex-3.11.0, device_detector-1.1.1, redis-4.8.1, connection_pool-2.4.1, discordrb-webhooks-3.5.0, jira-ruby-2.1.5, hangouts-chat-0.0.6, sanitize-6.1.0, licensee-9.16.0, fast_blank-1.0.1, gitlab-chronic-0.10.6, rack-proxy-0.7.7, sassc-rails-2.1.2, addressable-2.8.5, tanuki_emoji-0.7.0, base32-0.3.4, pg_query-4.2.3, thrift-0.19.0, ruby_parser-3.20.3, rails-i18n-7.0.8, gettext_i18n_rails-1.8.1, gettext_i18n_rails_js-1.4.0, prometheus-client-mmap-0.28.0, simplecov-0.22.0, undercover-0.4.6, license_finder-7.1.0, email_reply_trimmer-0.1.13, html2text-0.2.1, vmstat-2.3.1, sys-filesystem-1.4.4, gitaly-16.1.5, google-protobuf-3.24.3, flipper-0.25.4, flipper-active_record-0.25.4, flipper-active_support_cache_store-0.25.4, unleash-3.2.5, lograge-0.13.0, lockbox-1.1.2, valid_email-0.1.4, json_schemer-0.2.25, devfile-0.0.22.pre.alpha1, CFPropertyList-3.0.6, app_store_connect-0.38.0, actioncable-6.1.7.6, actionmailbox-6.1.7.6, actionmailer-6.1.7.6, actionpack-6.1.7.6, actiontext-6.1.7.6, actionview-6.1.7.6, activejob-6.1.7.6, activemodel-6.1.7.6, activerecord-6.1.7.6, activestorage-6.1.7.6, activesupport-6.1.7.6, railties-6.1.7.6, msgpack-1.7.2, rack-protection-3.1.0, webfinger-2.0.0, rotp-6.3.0, rqrcode-2.2.0, chef-config-17.10.68, chef-utils-17.10.68, ffi-yajl-2.6.0, train-core-3.10.8, mini_portile2-2.8.4, graphql-client-0.18.0, temple-0.10.2, tilt-2.3.0, mime-types-3.5.1, fog-xml-0.1.4, excon-0.103.0, formatador-0.3.0, google-apis-dns_v1-0.30.0, google-apis-iamcredentials_v1-0.16.0, google-apis-monitoring_v3-0.41.0, google-apis-pubsub_v1-0.33.0, digest-crc-0.6.5, googleauth-1.8.0, mini_mime-1.1.5, aws-partitions-1.824.0, aws-sigv4-1.6.0, ethon-0.16.0, rubypants-0.7.1, rinku-2.0.6, racc-1.7.1, state_machines-activemodel-0.9.0, character_set-1.7.0, regexp_parser-2.8.1, regexp_property_values-1.4.0, redis-store-1.10.0, oauth-0.6.2, crack-0.4.5, jsonpath-1.1.3, dotenv-2.8.1, reverse_markdown-2.1.1, execjs-2.9.1, public_suffix-5.0.3, i18n-1.14.1, premailer-1.21.0, sexp_processor-4.17.0, gettext-3.4.7, po_to_json-2.0.0, google-cloud-profiler-v2-0.7.0, rb_sys-0.9.81, net-imap-0.3.7, optimist-3.1.0, snaky_hash-2.0.1, version_gem-1.1.3, googleapis-common-protos-types-1.8.0, sixarm_ruby_unaccent-1.2.2, simpleidn-0.2.1, ecma-re-validator-0.4.0, bindata-2.4.15, zeitwerk-2.6.11, timeout-0.4.0, uri-0.12.2, websocket-driver-0.7.6, rails-dom-testing-2.2.0, rack-test-2.1.0, rails-html-sanitizer-1.6.0, globalid-1.2.1, chunky_png-1.4.0, rqrcode_core-1.2.0, net-ssh-7.2.0, dry-core-1.0.1, mime-types-data-3.2023.0808, net-http-persistent-4.0.2, google-cloud-errors-1.3.1, signet-0.18.0, state_machines-0.6.0, css_parser-1.16.0, gapic-common-0.20.0, git-1.18.0, forwardable-1.3.3 in locally installed gems
Run `bundle install --gemfile /opt/gitlab/embedded/service/gitlab-rails/Gemfile` to install missing gems.

and running sudo bundle install --gemfile /opt/gitlab/embedded/service/gitlab-rails/Gemfile installs them, but when I try to create a backup again, then I still get the above error. When I run bundle install (without sudo), I get a permission issue

the gitlab-workhorse service is constantly giving this:

{"correlation_id":"","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2023-09-22T11:15:29+02:00","uri":""}

and I am getting a 502 error as well.

It is a baremetal install on ubuntu 22.04 lts (physical, not virtual, with 8GB memory and 4 cores). It used to work, until the update.

Has anybody ever experienced this and resolved it?

I resolved this, as my SMTP settings were using this, but now it is non-functional and had to be commented out to proceed in the gitlab-ctl reconfigure steps. But it fails with the missing gems from before, of which I need to get back unfortunately.

Can someone help me with this, please? I am not a ruby expert, unfortunately

I managed to create a script that makes a backup manually, as using gitlab-rake was broken.

Here is the link to the script, if you find yourself in a similar situation, where ruby becomes broken for whatever reason, like I followed someone’s instructions which worked for them, but not for me… or it was possibly a malicious action on their part, as ruby is not my specialty. Mine is primarily Go, so I will be migrating over to gitea/forgejo.

https://github.com/APoniatowski/gitlab-reinstaller