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:
gitlab-ee-13.10.3-ee.0.el7.x86_64
running on
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 issues.
our gitlab webpages only returns a 502 Whoops, GitLab is taking too much time to respond. error
and various gitlab commands in bash:
gitlab-rails console
gitlab-ctl reconfigure
return the same error message:
System Info:
------------
chef_version=15.14.0
platform=centos
platform_version=7.9.2009
ruby=ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client
Running handlers:
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 [0], 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’
/opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:165:in block in load_all_from_path!' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:161:in
each’
/opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:161:in load_all_from_path!' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:146:in
block in load_all!’
/opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:145:in each' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:145:in
each_with_object’
/opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:145:in load_all!' /opt/gitlab/embedded/service/gitlab-rails/lib/feature/definition.rb:102:in
reload!’
/opt/gitlab/embedded/service/gitlab-rails/lib/feature.rb:137:in register_definitions' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/0_inject_feature_flags.rb:7:in
<top (required)>’
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in
load’
/opt/gitlab/embedded/bin/bundle:23:in `’
Tasks: TOP => gitlab:db:configure => environment
(See full trace by running task with --trace)
STDERR:
---- 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.
regards
noob-gitlab-admin-who-really-dont-know-what-he-is-doing