Skip to content

Error 500 After update (from 15.1 to 15.9)

Hello. I used Gitlab (Omnibus) in on-premise environment

i update my own gitlab from 15.1 to 15.9 (latest) yesterday.

after that, i faced 500 error. in gitlab webpage.

so i cound error log

{"correlation_id":"01GT1C30WCSVSYJE0KX6S1GCWS","duration_ms":24,"error":"401 Unauthorized","level":"error","method":"GET","msg":"Internal API error","status":401,"time":"2023-02-24T09:29:25Z","url":"http://unix/api/v4/internal/check"}

after sudo gitlab-rake gitlab:check --trace

its print

Internal API available: FAILED - 401 Unauthorized
gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /opt/gitlab/embedded/service/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

but, i can't find error in my config.yml

it is my config.yml

# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.

# GitLab user. git by default
user: git

# Url to gitlab instance. Used for api calls. May but need not end with a slash.
gitlab_url: "http+unix://%2Fvar%2Fopt%2Fgitlab%2Fgitlab-workhorse%2Fsockets%2Fsocket"

gitlab_relative_url_root:

# File that contains the secret key for verifying access to GitLab.
# Default is .gitlab_shell_secret in the gitlab-shell directory.
secret_file: "/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret"

http_settings:

#  user: someone
#  password: somepass
#  ca_file: /etc/ssl/cert.pem
#  ca_path: /etc/pki/tls/certs

# File used as authorized_keys for gitlab user
auth_file: "/var/opt/gitlab/.ssh/authorized_keys"

# SSL certificate dir where custom certificates can be placed
# https://golang.org/pkg/crypto/x509/
ssl_cert_dir: "/opt/gitlab/embedded/ssl/certs/"

# Log file.
# Default is gitlab-shell.log in the root directory.
log_file: "/var/log/gitlab/gitlab-shell/gitlab-shell.log"

# Log level. INFO by default
log_level:

log_format: json

# Audit usernames.
# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
# incurs an extra API call on every gitlab-shell command.
audit_usernames:

migration:
  {"enabled":true,"features":[]}

could you help ? please thank you.

Edited by Kyungyeol