-
Notifications
You must be signed in to change notification settings - Fork 89
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
bbs2gh migrate-repo
should only require the Bitbucket username and password when it needs to talk to the Bitbucket API
#1064
Comments
@timrogers we're hitting this bug as we try to migrate a couple of repositories from our internet-disconnected Bitbucket server instance using the
Is there an ETA for fixing this (i.e. make the |
Hi! I'm hitting the same issue. I tried providing dummy values for the username/password, but got the same
even though @kutsal have you figured out any workaround for this? EDIT: this was a problem with the CLI arguments, setting dummy
Which seems completely irrelevant because I already have the archive locally and don't need to upload it anywhere. Is the blob-storage step absolutely unavoidable in the migration process? (I just found #1198, but there's no reply there) |
@laughedelic That sounds strange. Are you able to share a full example command that triggers the error, but doesn't trigger it with the environment variables, with any sensitive details redacted?
I'm afraid it is - the way that your data gets transferred to GitHub.com is via blob storage - even if you already have the archive locally on your machine. |
Hi @timrogers! Sure, here's the command I was trying to run initially: gh bbs2gh migrate-repo \
--github-pat "$(gh auth token)" \
--archive-path '...' \
--bbs-server-url '...' \
--bbs-project '...' \
--bbs-repo '...' \
--bbs-username 'laughedelic' \
--bbs-password 'pswd' \
--github-org '...' \
--github-repo '...' \
--keep-archive \
--target-repo-visibility private Which results in "--bbs-username and --bbs-password can only be provided with --bbs-server-url". Then I changed it to export BBS_USERNAME='laughedelic'
export BBS_PASSWORD='pswd'
gh bbs2gh migrate-repo \
--github-pat "$(gh auth token)" \
--archive-path '...' \
--bbs-server-url '...' \
--bbs-project '...' \
--bbs-repo '...' \
--github-org '...' \
--github-repo '...' \
--keep-archive \
--target-repo-visibility private and ran into the blob-storage requirement. Thanks for the explanation, it wasn't clear to me from the docs alone. I will try to proceed with an S3 bucket. |
Any updates |
I have notified our engineering team and they're looking into it. |
As of #1057, we require
--bbs-server-url
to be provided for all variants ofbbs2gh migrate-repo
- even ones where we don't need to talk to the Bitbucket Server's API (i.e. the upload-and-import flow and the import-only flow).We have started requiring the URL because we need it to communicate to the GitHub API which repo to pick from the archive when running the migration (see #1057 for more context).
This has the unwanted side effect that we now also require the Bitbucket Server username and password to be configured for all of the variants - even those ones that don't need to talk to the Bitbucket Server's API, and so won't use the username and password.
gh-gei/src/bbs2gh/Commands/MigrateRepo/MigrateRepoCommand.cs
Lines 224 to 231 in d5bcc2b
We should improve this logic so that the Bitbucket username and password is only required for command variants which will talk to the Bitbucket API.
The text was updated successfully, but these errors were encountered: