Gitlab 502 error. Could not find openssl

I have installed Gitlab CE instance. It was working fine until something happened. Now it returns 502 error when trying to access the webpages.
My gitlab-ctl status:

run: gitaly: (pid 470835) 62208s; run: log: (pid 1339) 159304s
run: gitlab-pages: (pid 470847) 62208s; run: log: (pid 1342) 159304s
run: gitlab-workhorse: (pid 470862) 62207s; run: log: (pid 1336) 159304s
run: logrotate: (pid 757446) 1006s; run: log: (pid 1331) 159304s
run: nginx: (pid 470886) 62206s; run: log: (pid 1337) 159304s
run: postgresql: (pid 470895) 62206s; run: log: (pid 1335) 159304s
run: puma: (pid 762110) 0s; run: log: (pid 1334) 159304s
run: redis: (pid 470907) 62206s; run: log: (pid 1333) 159304s
run: sidekiq: (pid 762088) 3s; run: log: (pid 1338) 159304s

But I’ve noticed that periodically puma is down:

run: gitaly: (pid 470835) 62928s; run: log: (pid 1339) 160024s
run: gitlab-pages: (pid 470847) 62928s; run: log: (pid 1342) 160024s
run: gitlab-workhorse: (pid 470862) 62927s; run: log: (pid 1336) 160024s
run: logrotate: (pid 757446) 1726s; run: log: (pid 1331) 160024s
run: nginx: (pid 470886) 62926s; run: log: (pid 1337) 160024s
run: postgresql: (pid 470895) 62926s; run: log: (pid 1335) 160024s
down: puma: 1s, normally up, want up; run: log: (pid 1334) 160024s
run: redis: (pid 470907) 62926s; run: log: (pid 1333) 160024s
run: sidekiq: (pid 765902) 5s; run: log: (pid 1338) 160024s

Puma log shows next error:

2022-10-07_05:46:11.69788 /opt/gitlab/embedded/lib/ruby/site_ruby/2.7.0/bundler/spec_set.rb:86:in `block in materialize': Could not find openssl-2.2.2 in any of the sources (Bundler::GemNotFound)

I’ve also tried next command ‘sudo gitlab-rake gitlab:check’ and I get:

Could not find openssl-2.2.2 in any of the sources
Run `bundle install` to install missing gems.

When I’m using ‘bundle install’ I’ve get message that all gems are already installed (including openssl 2.2.2)

...
Using openssl 2.2.2
...

In ‘/opt/gitlab/embedded/service/gitlab-rails/.bundle/config’ there is a line:

BUNDLE_PATH: "vendor/bundle"

And directory ‘openssl-2.2.2’ is present in ‘/opt/gitlab/embedded/service/gitlab-rails/vendor/bundle/ruby/2.7.0/gems’

Is anyone have an idea how to fix this?
Thanks.