cancel
Showing results for 
Search instead for 
Did you mean: 

Install error: Invalid credentials for 'https://repo.magento.com

Install error: Invalid credentials for 'https://repo.magento.com

Hello,

 

 

 

I'm following instructions to install Magento 2 from this guide I found online:

https://www.vultr.com/docs/installing-magento-2-on-ubuntu

 

Everything has gone okay up until the bit towards the bottom; installing Magento.

 

I have logged in to the Magento website, generated my keys and put them in the auth.json file within the /home/{user}/.composer folder.

 

My key looks like the following with the public & private keys in place of the 0's:

 

 

{
"http-basic": {
"repo.magento.com": {
"username": "<000000000000000000000000000000>",
"password": "<000000000000000000000000000000>",
}
}
}

 

When I type the command sudo composer install, I get the following error:

 

/var/www/public$ sudo composer installLoading composer repositories with package informationInstalling dependencies (including require-dev) from lock file - Installing magento/composer (1.0.2) Downloading: Connecting...

 

[Composer\Downloader\TransportException] Invalid credentials for 'https://repo.magento.com/archives/magento/composer/magento-composer-1.0.2.0.zip', aborting.

 

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

 

As far as I can tell I have followed everything to the letter.  I have tried a few alternative solutions such as generating a new key pair and trying those, to no avail.  I also even tried placing the auth.json file in the main root directory of my server.

 

I'm at a loss as to why my credentials are failing.  Can anyone help?

 

18 REPLIES 18

Re: Install error: Invalid credentials for 'https://repo.magento.com

Maybe the Composer does not see your auth.json file or does not have permissions to access it?

To test these guesses try to place your auth.json file to the Magento 2 root.

It is for testing only, because it could be unsecure.

Re: Install error: Invalid credentials for 'https://repo.magento.com

Thanks Dimitri, 

 

Yes this is just for testing for now.  I tried to put the auth.json in the Magento folder but got the same result. Smiley Sad

 

If you have any other ideas, I'm happy to try them.

Re: Install error: Invalid credentials for 'https://repo.magento.com

Therefore, your credentials is really wrong.

Here is an instruction how to get the credentials: https://mage2.pro/t/742

Re: Install error: Invalid credentials for 'https://repo.magento.com

This is the thing that is puzzling me.  I've definitely got the right credentials from here:

 

https://www.magentocommerce.com/magento-connect/customerdata/secureKeys/list/

 

I have tried pasting in several times (in case I made a mistake any time) and also generated new keys, but get the same result every time.

 

Re: Install error: Invalid credentials for 'https://repo.magento.com

Re: Install error: Invalid credentials for 'https://repo.magento.com

 Thank you Demitry.

 

The package I have is 2.0.3 so this is a very plausible answer.

 

I guess I'll have to wait until tomorrow to see if the next release fixes my problem, if it does, I'll definitely pass on some Kudos.  Smiley Happy

Re: Install error: Invalid credentials for 'https://repo.magento.com

I've pulled the latest version from:https://github.com/magento/magento2.git public and followed up by pulling the latest version using - sudo git checkout tags/2.0.4 -b 2.0.4

 

I am still experiencing the same issue when running : sudo composer install

 

I get

 

- Installing magento/composer (1.0.2)
Downloading: Connecting...
[Composer\Downloader\TransportException] Invalid credentials for 'https://repo.magento.com/archives/magento/composer/magento-composer-1.0.2.0.zip',aborting.

 

Can anyone help?  I DEFINITELY have the right keys in my .json file.

 

 

Re: Install error: Invalid credentials for 'https://repo.magento.com

Having exactly the same problem.
I am 100% positive my public and private keys in .json are the ones I got from the site.

Re: Install error: Invalid credentials for 'https://repo.magento.com

I'm pretty sure the auth service must be playing up.

 

A fellow developer has tried and now I've tried and we're both getting the same error with different accounts and different pairs of keys.