[SOLVED] Gitlab-shell Failed to connect to internal API

Hello!
I have problem with gitlab-shell:

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production:

Check GitLab API access: FAILED: Failed to connect to internal API                                                       
gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /home/git/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

System information:

System:         Debian 8.0
    Current User:   git
    Using RVM:      no
    Ruby Version:   2.1.6p336
    Gem Version:    2.2.3
    Bundler Version:1.9.9
    Rake Version:   10.4.2
    Sidekiq Version:3.3.0
    
    GitLab information
    Version:        7.11.0.rc2
    Revision:       a7a5de7
    Directory:      /home/git/gitlab
    DB Adapter:     mysql2
    URL:            https://gitlab.home.com
    HTTP Clone URL: https://gitlab.home.com/some-project.git
    SSH Clone URL:  git@gitlab.home.com:some-project.git
    Using LDAP:      no
    Using Omniauth: no
    
    GitLab Shell
    Version:        2.6.3
    Repositories:   /home/git/repositories/
    Hooks:          /home/git/gitlab-shell/hooks/
    Git:            /usr/bin/git

Any ideas what could be problem? I will be grateful to any advice.

SOLVED. Found where my configuration was bad, in gitlab/config/unicorn.rb.

Hi Vitaliy, I am also getting this issue.Can you please tell what exactly you did to fix this issue.
Thanks.

me too. Can you please tell what exactly you did to fix this issue.
Thanks.

Hi guys, I have same issue 502 Failed to connect to internal API. Problem was in log /var/log/gitlab/puma/current:
2021-10-21_17:39:00.98610 bundler: failed to load command: puma (/opt/gitlab/embedded/bin/puma)
2021-10-21_17:39:00.98619 ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation “namespace_settings” does not exist
2021-10-21_17:39:00.98620 LINE 8: WHERE a.attrelid = ‘“namespace_settings”’::regclass

db problem, documentation here: Maintenance Rake tasks | GitLab

gitlab-rake db:migrate:status
it show me about thousand up and down migrations

gitlab-rake db:migrate:status
it execute all migrations and problem was SOLVED !!!