How do I fix this trouble?

gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at 127.0.0.1
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:
It looks like GitLab has not been configured yet; skipping the upgrade script.
root@debian:~# gitlab-ctl reconfigure
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: [“gitlab”]
Synchronizing Cookbooks:

  • package (0.0.0)
  • gitlab (0.0.1)
  • runit (0.14.2)
    Installing Cookbook Gems:
    Compiling Cookbooks…
    Recipe: gitlab::default
  • directory[/etc/gitlab] action create (up to date)

================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb

RuntimeError

GitLab external URL must include a schema and FQDN, e.g. http://gitlab.example.com/

Cookbook Trace:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab_rails.rb:41:in `parse_external_url'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab_rails.rb:23:in `parse_variables'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab.rb:191:in `generate_config'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:37:in `from_file'

Relevant File Content:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab_rails.rb:

34:
35: def parse_external_url
36: return unless Gitlab[‘external_url’]
37:
38: uri = URI(Gitlab[‘external_url’].to_s)
39:
40: unless uri.host
41>> raise “GitLab external URL must include a schema and FQDN, e.g. http://gitlab.example.com/
42: end
43: Gitlab[‘user’][‘git_user_email’] ||= “gitlab@#{uri.host}”
44: Gitlab[‘gitlab_rails’][‘gitlab_host’] = uri.host
45: Gitlab[‘gitlab_rails’][‘gitlab_email_from’] ||= “gitlab@#{uri.host}”
46:
47: case uri.scheme
48: when “http”
49: Gitlab[‘gitlab_rails’][‘gitlab_https’] = false
50: Nginx.parse_proxy_headers(‘nginx’, false)

Platform:

x86_64-linux

Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 07 seconds

If you want help you might want to the contents of your /etc/gtlab/gitlab/rb file or at the very least the external_url line from that file.