Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3483

Closed
Open
Created 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

Error 302 on check

Closed

Error 302 on check

Created by: djgreg13

Hello

When i do a sudo -u git -H /home/git/gitlab-shell/bin/check

i get this

Check GitLab API access: FAILED. code: 302

Check directories and files: /home/git/repositories: OK /home/git/.ssh/authorized_keys: OK

i have missed someone when i migrated to 5.0 from 4.2 ?

Linked issues
...

    Related merge requests

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: boldt

      I had the same problem today. Just recheck your gitlab-shell/config.yml. Can you open the given gitlab_url: in your browser? If not, the check-script will fail as well.

      By Administrator on 2013-04-02T16:28:59 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: djgreg13

      i have restored a backup i'm reinstalling the upgrade and fixes et i will tell you

      By Administrator on 2013-04-02T15:33:19 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: djgreg13

      I can but gitlab is in under NAT and the domain don't respond same in network

      in internal network it can be accessed by http://gitlab.interne.domain.com in external the acceess is http://git.domail.com

      By Administrator on 2013-04-02T15:43:25 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: djgreg13

      Resolved, for other users

      if you're into a NAT network, add your public domain into hosts file and point this at your localhosy same this 127.0.0.1 git.domain.com

      and put the public adress in gitlab-shell config.yml

      thanks allc ;)

      By Administrator on 2013-04-02T15:49:07 (imported from GitLab project)

    • Administrator
      Administrator @root · 11 years ago
      Owner

      Created by: flakrat

      I ran into this on a new install. The issue, I have the rewrite rule to force SSL (port 443) and am using a self signed cert.

      I needed to modify gitlab-shel/config.yml as follows, change http to https and self_signed_cert from false to true:

      gitlab_url: "https://gitlab.mydomain.org/" http_settings: self_signed_cert: true

      By Administrator on 2013-08-29T17:18:58 (imported from GitLab project)

    • Administrator
      Administrator @root · 11 years ago
      Owner

      Created by: qfox

      Actually there was a double slash in url. It can be a reason to force 302 error code if the web server configured to remove double slashes. Probably not, but. Anyway, it could be better if url will be clean.

      host method in gitlab-shell/lib/gitlab_net.rb is defined as "#{config.gitlab_url}/api/v3/internal", and at the same time config.gitlab_url defined in ./gitlab-shell/config.yml "Should end with a slash" (c) So checker just trying to request url like http://host//api/v3/internal/check - with double slash at the left side of "api".

      By Administrator on 2013-10-13T04:25:50 (imported from GitLab project)

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    0 Assignees
    Assign to
    Milestone
    No milestone
    None
    None
    Time tracking
    Due date
    None
    None
    0
    Labels
    None
    Assign labels
    • No matching results
    • Manage project labels
    Confidentiality
    Not confidential

    You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

    Lock issue
    Unlocked
    participants
    Reference: