cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

SOLVED

Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

Hello!

 

As title says, i get this error when trying to update via composer. However, i know for sure that i use the correct credentials from like on this forum.  Any idea to what could cause this? Composer have token for github.

 

Edit: ive tried both "screenname" and my email as username.

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

When prompted, enter your authentication keys. Your public key is your username; your private key is your password.

View solution in original post

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

That is strange. Did you get it going? I know a lot of other people have it working, so I would suspect something like file permissions (e.g. cannot write the auth.json file).

 

To be clear, you followed the instructions at http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html to get a public and private key, then pasted the public key into the username and the private key in as the password?

 

If this does not work, I suggest having a read of the composer documentation to create an auth.json file and pasting the keys in directly. See https://getcomposer.org/doc/articles/http-basic-authentication.md for suggestions.

 

Beyond that I would try other areas of these forums for help - this area is really intended for strategic direction style questions, not low level support.

View solution in original post

40 REPLIES 40

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

You should use a public / private keys pair, not email or screenname.

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

Hi. I have been at Magento Live Australia so have not had time to try myself yet, However we initially used community forum credentials - but we changed the approach to use tokens. The repository credentials are stored by Composer on disk, so rather than storing the real password, you now allocate a "key" which you can cancel later. The instructions to get this key are documented at http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html - please try these instructions and let me know if you still have problems.

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

When prompted, enter your authentication keys. Your public key is your username; your private key is your password.

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

Why would it let me enter the username but not allow me to enter the password? I have the keys and I copied/pasted the public key to username. Then I can't even type anything for the password, I have to close. 

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

That is strange. Did you get it going? I know a lot of other people have it working, so I would suspect something like file permissions (e.g. cannot write the auth.json file).

 

To be clear, you followed the instructions at http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html to get a public and private key, then pasted the public key into the username and the private key in as the password?

 

If this does not work, I suggest having a read of the composer documentation to create an auth.json file and pasting the keys in directly. See https://getcomposer.org/doc/articles/http-basic-authentication.md for suggestions.

 

Beyond that I would try other areas of these forums for help - this area is really intended for strategic direction style questions, not low level support.

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

No feedback for a while, so closing off as no more action coming on my behalf.

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

Ahahaha that's the most unclear messages I ever seen. Way to go Magento...

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

Hi,

 

What the tutorial fails to state is that the auth.json file is inside the a hidden .composer folder in the ~/User/{Home Directory}/ directory. At least on OSX anyways. Just delete or overwrite the auth.json file that is there with your newly generated auth.json file and you should have no issues. after that..

 

ie

Users/{Home Diretory}/.composer

 

Re: Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

Hello,

 

I did all those steps and it was working, suddnly (when i was tring to upgrade 2.0.3) it just stopped.

In  ~/.composer/auth.json - i did add private and public also in: /setup/#/system-config

yet system is telling me they are wrong. Web and Composer - i make new ones credentials but they do not work either. What could goes wrong? There is no errors in log file