美文网首页
gitlab安装启动时报502错误

gitlab安装启动时报502错误

作者: 尛尛大尹 | 来源:发表于2020-03-20 19:20 被阅读0次
    1. 查看内存,发现内存没有耗完

    $ free -m

    vi /home/git/gitlab/log/unicorn.stderr.log
    ERROR -- : adding listener failed addr=127.0.0.1:8080 (in use)
    ERROR -- : retrying in 0.5 seconds (4 tries left)
    ERROR -- : adding listener failed addr=127.0.0.1:8080 (in use)
    ERROR -- : retrying in 0.5 seconds (3 tries left)
    ERROR -- : adding listener failed addr=127.0.0.1:8080 (in use)
    ERROR -- : retrying in 0.5 seconds (2 tries left)
    ERROR -- : adding listener failed addr=127.0.0.1:8080 (in use)
    ERROR -- : retrying in 0.5 seconds (1 tries left)

    alertmanager down with "create memberlist: Failed to get final advertise address: Failed to parse advertise address "<nil>""

    配置文件最后改成了:
    external_url 'http://192.168.0.1:8090'
    gitlab_rails['manage_back'] = true
    gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
    gitlab_rails['backup_archive_permissions'] = 0644
    gitlab_rails['backup_keep_time'] = 604800
    unicorn['listen'] = 'localhost'
    unicorn['port'] = 8081
    altermanager['flags'] = {
    'cluser.advertise-address' => "127.0.0.1:9093"
    'web.listen-address' => "#{node[''gitlab]['alertmanager']['listen-address']}",
    'storage.path' => "#{node['gitlab']['alertmanager']['listen-address']}",
    'config.file' => "#{node['gitlab']['alertmanager']['home']}/alertmanager.yml"
    }

    相关文章

      网友评论

          本文标题:gitlab安装启动时报502错误

          本文链接:https://www.haomeiwen.com/subject/gbntyhtx.html