- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Log in to Magento Marketplace: Go to Magento Marketplace and log in with your Magento account.
- Access Your Profile: Click on your profile icon at the top right corner and select "My Profile".
- Go to Access Keys: In the "My Products" section, click "Access Keys".
- 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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: after installing magento 2
it means Magento is trying to access packages from repo.magento.com and needs valid credentials. To get these keys, you’ll need to create a Magento Marketplace account. Once logged in, go to your profile, then under the "Marketplace" tab, find "Access Keys." Create a new key pair you’ll get a public key and a private key. Use the public key as your username and the private key as the password when prompted. If you're having trouble logging into the Marketplace (like getting an "An error occurred" message), try clearing your browser cache, using incognito mode, or switching browsers. You can also reset your password or contact Magento support if the actor issue continues. Once you have the keys, you can re-run the php bin/magento sampledata:deploy command and use your keys to complete the process.