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,将其改为其他名字即可正常工作.

很奇怪的东西

原文地址:https://www.cnblogs.com/redheat/p/7346455.html