Hello all. If this is the wrong forum i apologize. I am new to all things gitlab.
I have recently been appointed the new gitlab admin for our local installation at our university. The previous admin unfortunately chose to move on to greener pastures.
Our installation is as follows:
CentOS Linux release 7.9.2009 (Core)
Unfortunately I have inherited a broken gitlab and i cannot seem to figure out how to resolve
our gitlab webpages only returns a 502 Whoops, GitLab is taking too much time to respond. error
and various gitlab commands in bash:
ruby=ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
There was an error running gitlab-ctl reconfigure:
bash[migrate gitlab-rails database] (gitlab::database_migrations line 70) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with , but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20210430-22009-1e5cdt6” ----
STDOUT: rake aborted!
Feature::InvalidFeatureFlagError: Feature flag ‘usage_data_api’ is already defined in ‘/opt/gitlab/embedded/service/gitlab-rails/config/feature_flags/development/usage_data_api.yml’
block in load_all_from_path!' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:161:in each’
load_all_from_path!' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:146:in block in load_all!’
each' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:145:in each_with_object’
load_all!' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:102:in reload!’
register_definitions' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/0_inject_feature_flags.rb:7:in <top (required)>’
<top (required)>' /opt/gitlab/embedded/bin/bundle:23:in load’
Tasks: TOP => gitlab:db:configure => environment
(See full trace by running task with --trace)
---- End output of “bash” “/tmp/chef-script20210430-22009-1e5cdt6” ----
Ran “bash” “/tmp/chef-script20210430-22009-1e5cdt6” returned 1
Ive looked around on the net, but i am unable to find anyone else with this problem.
Ive also tried to remove the offending usage_data_api.yml file, but then the commands fails with a new error message(unable to load --json file)
There are articles on the net describing how to enable disable features using the browser,
but since our webpages are all returning 502 i cannot use that option.
That being said, i dont even know if the error message as describe above is the root cause for our webpages not working, or if that is something else.
Any and all help appriciated.