cancel
Showing results for 
Search instead for 
Did you mean: 

after installing magento 2

after installing magento 2

Hello, i have just installed magento 2 on my localserver.
Im installed the sample data true cms with this: php bin/magento sampledata:deploy
And true the installation this come up:
<warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
Authentication required (repo.magento.com):
Username:

But i can access marketplace magento, i only get An error occurred, please try again later.
When i press log in.

How can i get the Magento authentication keys, im stuck.
Please help.

1 REPLY 1

Re: after installing magento 2

Hello @swedishpower 

 

 

To install Magento sample data or any extension from repo.magento.com, you need to provide your Magento authentication keys. These keys are not the same as your Magento Marketplace login credentials. Here's how to generate and configure them:

1. Generate Magento Authentication Keys

  1. Log in to Magento Marketplace: Go to Magento Marketplace and log in with your Magento account.
  2. Access Your Profile: Click on your profile icon at the top right corner and select "My Profile".
  3. Go to Access Keys: In the "My Products" section, click "Access Keys".
  4. Create a New Key Pair:
    • Under "Magento 2", click "Create A New Access Key".
    • Name your key (e.g., "Local Server") and click "Generate".
    • You will get a Public Key and a Private Key.

2. Configure Composer with Authentication Keys

When prompted during the sample data deployment, use:

  • Username: Your Public Key
  • Password: Your Private Key

Alternatively, you can configure Composer directly:

 

composer config --global http-basic.repo.magento.com <public_key> <private_key>

Replace <public_key> and <private_key> with your actual keys.

3. Retry the Sample Data Installation

Now run the sample data command again:

 

php bin/magento sampledata:deploy

4. Troubleshooting the Magento Marketplace Login

If you're unable to log in to the Marketplace:

  • Clear Cache: Clear your browser cache and try again.
  • Try Incognito Mode: This might bypass any cache or cookie issues.
  • Reset Password: If needed, reset your password.
  • Different Browser: Sometimes, switching browsers helps.

If the issue persists, it might be a temporary problem on Magento's side. You can check Magento Status Page for any ongoing issues.

 

Let me know if this resolves your issue or if you need more help!