• gitlab同步插件gitlab-mirrors报错<已解决,未找到原因>


    今天下午在使用gitlab-mirrors同步插件时,发现一直在报错

    # ~/gitlab-mirrors/add_mirror.sh --git --project-name manifests --mirror git@10.240.205.131:thinkcloud_ci/manifests.git
    Resolving gitlab remote.
    Creating new project manifests
    Traceback (most recent call last):
      File "lib/manage_gitlab_project.py", line 105, in <module>
        found_project=createproject(project_name)
      File "lib/manage_gitlab_project.py", line 78, in createproject
        git.add_project(pname,description=description,**project_options)
      File "build/bdist.linux-x86_64/egg/gitlab3/__init__.py", line 184, in fn
      File "build/bdist.linux-x86_64/egg/gitlab3/__init__.py", line 418, in _post
      File "build/bdist.linux-x86_64/egg/gitlab3/__init__.py", line 435, in _request
      File "build/bdist.linux-x86_64/egg/gitlab3/__init__.py", line 411, in _check_status_code
    gitlab3.exceptions.MissingRequiredAttribute: URL: http://10.100.218.203/api/v3/projects, Data: {'wall_enabled': 'false', 'namespace_id': '5', 'snippets_enabled': 'false', 'merge_requests_enabled': 'false', 'name': 'manifests', 'issues_enabled': 'false', 'wiki_enabled': 'false', 'public': 'false', 'description': 'Mirror of git@10.240.205.131:thinkcloud_ci/manifests.git'}
    There was an unknown issue with manage_gitlab_project.py

    最后发现,project name不应该是manifests,将其改为其他名字即可正常工作.

    很奇怪的东西

  • 相关阅读:
    在家工作,10招助你效率、生活两不误
    SQL Server智能感知如何更新
    博客园文章《我记录,故我在》读后感
    Python 协程
    Python 用多线程上传和下载文件
    Python 变量交换
    Python 将文件重新命名
    Python ftplib模块
    Python ftplib模块
    Python 函数作为返回值
  • 原文地址:https://www.cnblogs.com/redheat/p/7346455.html
Copyright © 2020-2023  润新知