Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There was an unknown issue with manage_gitlab_project.py #6

Closed
Microbenefits opened this issue May 15, 2018 · 8 comments
Closed

There was an unknown issue with manage_gitlab_project.py #6

Microbenefits opened this issue May 15, 2018 · 8 comments

Comments

@Microbenefits
Copy link

when I add mirror ,meet this error, please help, thanks.

docker-compose run --rm gitlab-mirrors add --git --project-name Test --mirror git@git.domain.com:/Test/test.git
Resolving gitlab remote.
Creating new project Test
Traceback (most recent call last):
File "lib/manage_gitlab_project.py", line 105, in
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://git.domain.cn/api/v3/projects, Data: {'wall_enabled': 'false', 'namespace_id': '4', 'snippets_enabled': 'false', 'merge_requests_enabled': 'false', 'name': 'Test', 'issues_enabled': 'false', 'wiki_enabled': 'false', 'public': 'false', 'description': 'Mirror of git@git.domain.com:/Test/test.git'}
There was an unknown issue with manage_gitlab_project.py

I'm trying mirror project from remote gitlab to local gitlab
remote gitlab verson:8.8.5
local gitlab verson:8.8.5

@Klowner
Copy link
Owner

Klowner commented May 15, 2018

I'll try to take a look at this today.

You should really also update your Gitlab, 8.8.5 is over two years old.

@Klowner
Copy link
Owner

Klowner commented May 15, 2018

Please try image quay.io/klowner/gitlab-mirrors:0.5.4pre

@Microbenefits
Copy link
Author

Microbenefits commented May 16, 2018 via email

@fhaefemeier
Copy link

The issue is since Gitlab V11 api V3 is no longer available (https://docs.gitlab.com/ce/api/v3_to_v4.html). Are there any plans to move to api V4?

@fhaefemeier
Copy link

Sorry, I didn't saw the development branch which use V4. I test it (docker 0.5.4.pre) and it works. I can now create new mirrors. But I used env.-var. GITLAB_MIRROR_NEW_PUBLIC="true" to make the project public. But this is not working. The new created project in GItlab is 'internal'.

@Klowner
Copy link
Owner

Klowner commented Aug 11, 2018

Ah, I bet I missed that parameter if it's a new one, probably just an issue of adding it to the others. I'll check it out, otherwise PR's are welcome!

@Microbenefits
Copy link
Author

I have solved the issue through Gitlab v11.0.2,thanks.

@Klowner
Copy link
Owner

Klowner commented Aug 14, 2018

I've opened a new ticket #7 with your issue, @fhaefemeier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants