Issue:
Using the below command as per the documentation to import or migrate a repository to bitbucket: [Data Center and Server 7.12 version]
https://confluence.atlassian.com/bitbucketserver/importing-957497836.html
curl -s -n -u "XXXX:XXXXX" -X POST -H 'Content-type: application/json' -d '{"archivePath":"2021-04-25_15-20-656_mydevopsproject1_nodejs_export.tar"}' http://localhost:7990/rest/api/1.0/migration/import
Checks:
Steps Followed:
http://localhost:7990/rest/api/1.0/migration/import
http://localhost:7990/rest/api/1.0/migration/imports
Hi,
What error did you get when using /imports (with an s)?
Cheers,
Christian
Premier Support Engineer
Atlassian
Hi @Christian Glockner ,
The URL is not accessible and seems like a non-existing path. I believe this is because the docker container does not have a "imports" folder. But can confirm that latest docker image was pulled during the execution. PFB the response when accessed via client browser for both scenarios.
Please let me know if any further details needed.
Cheers,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The correct URL is /imports - the error you're getting in the browser (and HTTP 405 error) means that the URL does not support the GET method (which a browser uses to retrieve the URL). This does not mean that the URL doesn't work or is invalid.
Cheers,
Christian
Premier Support Engineer
Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Got it, checked the API definition, and have updated it accordingly. However, getting the below error even if the archive is present in the shared/data/migration/import.
Could you please let me know if there are any issues in the followed steps:
Thanks,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please review the above case where the correct URL and params were used and still getting an error?
Thanks,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.