docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Warning from repo.magento.com: You haven't provided your Magento authentication keys

Open dusandikovic opened this issue 3 years ago • 4 comments

Description On my MacBook M1 Pro I followed Manual setup guide to setup magento env. After running command

bin/download 2.4.3-p1

I get this error

Composer authentication required (repo.magento.com public and private keys):
    Username: XXXX
    Password: XXXX

Composer auth has been set up.
Creating a "magento/project-community-edition=2.4.3-p1" project at "./"
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                                                                 
  [Composer\Downloader\TransportException]                                   
  The 'https://repo.magento.com/packages.json' URL required authentication.  
  You must be using the interactive console to authenticate

Even if I use valid access keys. I get the same error when I follow Automated Setup

Interesting thing is that when I run

bin/bash

I am not able to execute any shell command from docker container.

m-docker

It looks that my terminal is not interactive.

Any idea what could be the problem here?

dusandikovic avatar Apr 02 '22 17:04 dusandikovic

This is really odd, and I'm unable to replicate this on a fresh macOS install. Is anyone else able to replicate?

markshust avatar Apr 12 '22 16:04 markshust

I reproduce it too, with a new fresh install and setting bad credential when terminal ask for it the first time. Btw i dont know how to change this config to set the good credentials after that. Capture d’écran 2022-04-12 à 19 56 43

lulul62 avatar Apr 12 '22 17:04 lulul62

Maybe go back to your auth.json file and update the credentials -

vi ~/.composer/auth.json
image

himanshu1618 avatar Jul 04 '22 05:07 himanshu1618

I don't understand this. Are we supposed to set up keys of some sort? Why is that not explained in the docs?

I'm confused. This happened first on my M1 Mac.

@markshust if you want to replicate, you should try with a GitHub codespace. It's happening there as well.

josealvarez97 avatar Sep 11 '23 22:09 josealvarez97