Gitlab Shell check failed "401 Unauthorized" to call API
Created by: MiguelAngelLV
I installed 7.1, restore backup and update to 7.4
All works fine unless the push that return "access denied".
I check the instalation:
miguel@Server:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
Git configured for git user? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 2.1.0 ? ... FAIL. Please update gitlab-shell to 2.1.0 from 2.0.1
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
hooks directories in repos are links: ...
Wimu_src / Quidgets ... ok
Miguel Ángel / Quidgets JS ... ok
victor / wimu ... ok
Seego / SeegoSign ... ok
Miguel Ángel / Seego Cloud ... ok
Miguel Ángel / Rutas Alpujarra ... ok
Experimedia / PortalWeb ... ok
Salva / viyou ... ok
Wimu_src / web_wimu ... ok
Wimu_src / Dwimu ... ok
Wimu_src / Sensor_GPS ... ok
Experimedia / DAPS ... ok
Wimu_src / Sensor_DCM ... ok
Wimu_src / Sensor_AcelT ... ok
Wimu_src / Sensor_Acel ... ok
Wimu_src / Sensor_Weese_ANT ... ok
Wimu_src / Sensor_Weese_UDP ... ok
Wimu_src / Wimu_logger_ST ... ok
Wimu_src / Sensor_SDM_ANT ... ok
Wimu_src / Sensor_MOXY ... ok
Wimu_src / Sensor_HRM ... ok
Wimu_src / Sensor_Bike_sp-cad ... ok
Wimu_src / Sensor_Bike_power ... ok
Wimu_src / Sensor_barometer ... ok
Wimu_src / Sensor_fuerza ... ok
Wimu_src / Sensor_Magneto ... ok
Viyou / Viyou - Dart ... ok
Viyou / Viyou - Modulo Moodle ... ok
Viyou / Viyou - Theme ... ok
Wimu_src / Sensor_Salto ... ok
Wimu_src / Sensor_Pulsador_down ... ok
Wimu_src / Sensor_Pulsador_up ... ok
Viyou / Viyou - VTT ... repository is empty
Wimu_src / Sensor_RR_clasif ... ok
Miguel Ángel / Service Discover ... ok
Wimu_src / Config_GPS_ubx ... ok
Wimu_src / IMU_Flash ... ok
Wimu_src / Sensor_Status ... ok
Experimedia / DOC ... repository is empty
Seego / Seego Software ... ok
Seego / Seego Android ... ok
Wimu_src / Sensor_Pulsador_ANT ... ok
Wimu_src / Sensor_Env_ANT ... ok
Wimu_src / Sensor_Wisee ... ok
Experimedia / SportWis ... ok
Wimu_src / Sensor_Rango_Canal ... ok
Wimu_src / Sensor_Gyro ... ok
Wimu_src / Wimu_client_TCP ... ok
Wimu_src / Sensor_GPS_SP-dist ... ok
Wimu_src / Sensor_Contador_Reset ... ok
Wimu_src / Test-ANT-Mode ... ok
Seego / SeegoCloud ... ok
Wimu_src / Sensor_Peso_ANT ... ok
Wimu_src / Sensor_Acel_ST ... ok
Wimu_src / Sensor_Acel_MPU9150 ... ok
Wimu_src / Sensor_Acel_LIS331H ... ok
Wimu_src / Sensor_Magneto_Float ... ok
FiWare / DOC ... repository is empty
Jose / quiko ... repository is empty
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: FAILED. code: 401
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.
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
[.... All fine]
Redis version >= 2.0.0? ... yes
Ruby version >= 2.0.0 ? ... yes (2.1.2)
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.9.1)
Checking GitLab ... Finished
Seen the problem is Gitlab Shell, that API return error 401
The log show:
E, [2014-11-06T10:16:12.547241 #14840] ERROR -- : API call <GET http://192.168.2.123/gitlab/api/v3/internal/check> failed: 401 => <{"message":"401 Unauthorized"}>.
Is a Ubuntu 14.04 with manual instalation