cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted

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

Thank you for sharing

Highlighted

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

Hi I had the same proble recently trying to upgrade in a project magento from 2.0.4 to 2.1.9.

Nothing seemed to work...but... I deleted the auth.json, I made on the repo a new token and a new set of keys, then I recreated globally the auth.json. When I pasted the 2 keys I noticed that a blank typo was before each key. I deleted the 2 typos and "voila" I was able to do the job.

Highlighted

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

Bit late, but you do realise that it won't output the password that you're typing to the screen? So you won't have any visual feedback that your password is being entered.

Highlighted

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

open composer.json file and add following code after this line

"repositories": {
        "0": {
            "type": "composer",
            "url": "https://repo.magento.com/"
        },
        "magento": {
            "type": "composer",
            "url": "https://repo.magento.com"
        }
        
    },

 

add the following code  here

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

 

runt the command

composer require magento/data-migration-tool:2.1.11 ( add your magento version)
 
It works fine
Highlighted

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

Double check in directories/files permissions and owner. I have the same issue and I fixed just doing this:

 

cd your-magento-directory/magento

chown -R youserverruser:yourserveruser .

 

In my case was 

cd /var/www/html/magento2

chown -R www-data:www-data .  

Highlighted

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

The solution is to use you acces key from https://marketplace.magento.com

USERNAME= PUBLIC KEY

PASSWORD= PRIVATE KEY

Highlighted

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

Nice 

User of Marketing Automation Software and I love it.

 

Hi. I'm Catriona who loves to sing , explore and fond of marketing . You may check out some of my articles and blogs at http://guidesformarketingautomation.com/ . God Bless!
Highlighted

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

In my case my own public private key wasn't working. I requested from team-mate and it worked with his authentication keys. strange though but that is what happened.

Highlighted

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

Get your public key and private key from magento marketplace and add them in auth.json file.

Highlighted

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

Thank you