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
  • #10021

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

  • Report abuse

  • New issue

  • Report abuse

config external_url not working

Closed

config external_url not working

Created by: kitingChris

Although external_url is set in gitlab.rb it does not show up in gitlab. Also pushing is not possible!

    ## Latest options listed at https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template

    external_url 'https://gitlab.mydomain.net'

    # Disable the built-in nginx
    nginx['enable'] = false

    # Disable the built-in unicorn
    unicorn['enable'] = false

    # Set the internal API URL
    gitlab_rails['internal_api_url'] = 'https://gitlab.mydomain.net'

    gitlab_rails['gitlab_ssh_host'] = 'mydomain.net'

    gitlab_rails['gitlab_email_enabled'] = true
    gitlab_rails['gitlab_email_from'] = 'gitlab@mydomain.net'
    gitlab_rails['gitlab_email_reply_to'] = 'gitlab@mydomain.net'

    gitlab_rails['smtp_enable'] = true
    gitlab_rails['smtp_address'] = "smtp.googlemail.com"
    gitlab_rails['smtp_port'] = 587
    gitlab_rails['smtp_user_name'] = "root@mydomain.net"
    gitlab_rails['smtp_password'] = "*********"
    gitlab_rails['smtp_domain'] = "mydomain.net"
    gitlab_rails['smtp_authentication'] = "login"
    gitlab_rails['smtp_enable_starttls_auto'] = true
    gitlab_rails['smtp_tls'] = false
    gitlab_rails['smtp_openssl_verify_mode'] = 'peer'

    git_data_dir "/srv/git"
    ruby git_data_dir "/srv/git"

Although I executed

   sudo gitlab-ctl reconfigure
   sudo gitlab-ctl restart

nothing happened...

Looks still like this: screenshot

Trying to push (with ssh) results in this error:

   $ git push -u origin master
   GitLab: API is not accessible
   fatal: Could not read from remote repository.

   Please make sure you have the correct access rights
   and the repository exists.

Permissions on the custom git-data:

   # ls -laH /srv/git
   total 16
   drwx------ 4 git   git   4096 Feb  7 01:00 .
   drwxr-xr-x 8 root  root  4096 Jan 19 21:07 ..
   drwxrws--- 4 git   git   4096 Feb  7 02:01 repositories

Anyone an idea what I can do to fix this issue?

Linked issues
...

    Related merge requests

    • 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: