Skip to content
Search

Git:InternalAPIUnreachable

lastmod 2025-02-14created 2017-06-213 edits

You may run into the following.

$ git push
Counting objects: 65, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (65/65), done.
Writing objects: 100% (65/65), 10.30 KiB | 0 bytes/s, done.
Total 65 (delta 53), reused 0 (delta 0)
remote: GitLab: Failed to authorize your Git request: internal API unreachable
To https://admin.server-project.com:8243/your/tbag.git
 ! [remote rejected]   master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://admin.server-project.com:8243/your/tbag.git'

The related log can be checked as follows. root@git:/var/log/gitlab# vi gitlab-rails/production.log

Started GET "/admin/builds" for 182.252.8.176 at 2017-06-19 10:00:08 +0000
Processing by Admin::BuildsController#index as HTML
Completed 500 Internal Server Error in 190ms (ActiveRecord: 56.9ms)

ActionView::Template::Error (MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.):
    1: = broadcast_message
  app/models/broadcast_message.rb:18:in `current'
  app/helpers/broadcast_messages_helper.rb:2:in `broadcast_message'
  app/views/layouts/_broadcast.html.haml:1:in `_app_views_layouts__broadcast_html_haml__907967915586537687_70185193610900'
  app/views/layouts/_page.html.haml:10:in `_app_views_layouts__page_html_haml__2949710984743872676_70185198427540'
  app/views/layouts/application.html.haml:6:in `_app_views_layouts_application_html_haml___1157289586225556255_70185251421980'
  app/views/layouts/admin.html.haml:5:in `_app_views_layouts_admin_html_haml___388733188121042949_70185243723060'
  app/controllers/application_controller.rb:281:in `set_locale'
  lib/gitlab/middleware/multipart.rb:93:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'
  lib/gitlab/etag_caching/middleware.rb:10:in `call'
  lib/gitlab/request_context.rb:18:in `call'

This is presumably a problem with the Redis server's RDB and disk space (or memory).

See also

Favorite site

author Zer0 sitemap