zoukankan      html  css  js  c++  java
  • gitlab push时报错

    1、报错信息:

      

    Counting objects: 3, done.
    Writing objects: 100% (3/3), 205 bytes | 0 bytes/s, done.
    Total 3 (delta 0), reused 0 (delta 0)
    remote: /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/net/http.rb:763:in `initialize': getaddrinfo: No address associated with hostname (SocketError)
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/net/http.rb:763:in `open'
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/net/http.rb:763:in `connect'
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
    remote:     from /opt/gitlab-6.9.0-0/ruby/lib/ruby/1.9.1/net/http.rb:745:in `start'
    remote:     from /opt/gitlab-6.9.0-0/apps/gitlab/gitlab-shell/lib/gitlab_net.rb:76:in `get'
    remote:     from /opt/gitlab-6.9.0-0/apps/gitlab/gitlab-shell/lib/gitlab_net.rb:31:in `allowed?'
    remote:     from /opt/gitlab-6.9.0-0/apps/gitlab/gitlab-shell/lib/gitlab_update.rb:39:in `exec'
    remote:     from hooks/update:13:in `<main>'
    remote: error: hook declined to update refs/heads/master
    To http://gitlab.ishopex.cn/gitlab/test3.git
     ! [remote rejected] master -> master (hook declined)
    error: failed to push some refs to 'http://gitlab.ishopex.cn/gitlab/test3.git'

    修改gitlab服务器的/etc/hosts

    127.0.0.1 gitlab.ishopex.cn  #修改成自己的域名
    127.0.1.1 gitlab.ishopex.cn  #修改成自己的域名
  • 相关阅读:
    hive基本操作与应用
    用mapreduce 处理气象数据集
    熟悉常用的HBase操作,编写MapReduce作业
    爬虫大作业
    第三章 熟悉常用的HDFS操作
    数据结构化与保存
    获取全部校园新闻
    爬取校园新闻首页的新闻的详情,使用正则表达式,函数抽离
    网络爬虫基础练习
    Hadoop综合大作业
  • 原文地址:https://www.cnblogs.com/jrsun/p/3757745.html
Copyright © 2011-2022 走看看