cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2: Extensions on private bitbucket and Extension Manager not working together

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento2: Extensions on private bitbucket and Extension Manager not working together

i have private repositories on bitbucket with my modules which are used in Magento2. All was installed using composer.

 

In ~/.ssh/config i have:

Host bitbucket.org
IdentityFile ~/.ssh/bitbucket_id_rsa
IdentitiesOnly yes

and in bitbucket_id_rsa is stored key.

 

My composer.json file under Magento installation looks like this:

"require": {
        "magento/product-community-edition": "2.3.4.0",
        "composer/composer": "@alpha",
        "MYREPO/MYPROJECT": "@dev",
        ...
}         
...

"minimum-stability": "dev",
...

"repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/"
        },
        {
                "type": "vcs",
                "url": "git@bitbucket.org:MYREPO/MYPROJECT.git"
        },
        ...
]

 

Everything is working ok with this configuration, i update module in bitbucket and with composer update i will then update it in Magento.

But now if i want to use also some modules from Magento Marketplace. So in Extension Manager i enter my private and public key from my Magento Marketplace account and i get error in Magento:

Command "show" failed: In Git.php line 381: Failed to execute git clone --mirror 'git@bitbucket.org:MYREPO/MYPROJECT.git' '/var/www/vhosts/MYSITE/htdocs/var/composer_ho me/cache/vcs/git-bitbucket.org-MYREPO_MYPROJECT.git/' Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. show [--all] [-i|--installed] [-p|--platform] [-a|--available] [-s|--self] [-N|--name-only] [-P|--path] [-t|--tree] [-l|--latest] [-o|--outdated] [--ignore IGNORE] [-m|--minor-only] [-D|--direct] [--strict] [-f|--format FORMAT] [--] [ []]

So it looks like its trying to use those entered private and public keys from Magento Marketplace and access my bitbucket private repos with them ?

Or is there some another issue ?

Did anybody have similar problem?

Thanks

2 REPLIES 2

Re: Magento2: Extensions on private bitbucket and Extension Manager not working together

Hello @michal_bnet 

 

Please refer https://devdocs.magento.com/guides/v2.3/install-gde/prereq/dev_install.html#edit-authjson-file

 

Hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Magento2: Extensions on private bitbucket and Extension Manager not working together

hi sanjay

i checked your link to documentation

I tried to create Personal Access Token on Github, but it didnt help

why i need to create Github Personal Access Token ?

My modules are on Bitbucket.

So i guess i need to create Personal Access Token on Bitbucket ?