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

Well done! #15

Closed
caco3 opened this issue Oct 6, 2023 · 2 comments · Fixed by #24
Closed

Well done! #15

caco3 opened this issue Oct 6, 2023 · 2 comments · Fixed by #24

Comments

@caco3
Copy link

caco3 commented Oct 6, 2023

Thanks for this great script!

I used it to migrate my Gitlab 15.11.9 instance to Gitea 1.20.5.

FYI:
Since I have a reverse proxy which adds SSl, I got the following warning which in the end leads to failure:

migrate.py:54: UserWarning: The base URL in the server response differs from the user-provided base URL (https://git.home.***.ch -> http://gitlab-15.11).
This is usually caused by a misconfigured base URL on your side or a misconfigured external_url on the server side, and can lead to broken pagination and unexpected behavior. If this is intentional, use `keep_base_url=True` when initializing the Gitlab instance to keep the user-provided base URL. (python-gitlab: ***/gitlab/client.py:603)
  gl.auth()

Adding keep_base_url=True to gl = gitlab.Gitlab() solved the issue and the migration was successful.

@caco3
Copy link
Author

caco3 commented Oct 6, 2023

You might want to update the readme to show that it also works with newer versions!

@h44z
Copy link
Owner

h44z commented Feb 1, 2024

I don't use this script any longer but I am still happy to apply new pull requests if some changes are required.

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

Successfully merging a pull request may close this issue.

2 participants