BitBucket Composer Authentication not Recognised

zaidaldabbaghPRO

10 months ago

I'm trying to deploy my app which installs private repositories hosted on BitBucket. I have already added the following variable COMPOSER_AUTH to my instance Variables, and also added the auth details inside of a ~/.composer/auth.json file:

{
  "bitbucket-oauth": {
    "bitbucket.org": {
      "consumer-key": "ABC",
      "consumer-secret": "XXXXX"
    }
  }
}

However it's still failing to authenticate, as shown in the logs:

#12 1.216     No bitbucket authentication configured. Falling back to ssh.
#12 3.286     Failed to download xx from dist: The "https://bitbucket.org/xx/base-theme/get/xx.zip"; file could not be downloaded (HTTP/2 404 )
#12 3.566     No bitbucket authentication configured. Falling back to ssh.
#12 3.580 Unhandled promise rejection with RuntimeException: Failed to execute git clone --mirror -- 'git@bitbucket.org:xx/base-theme.git' '/root/.cache/composer/vcs/https---bitbucket.org-xx-base-theme.git/'
#12 3.580 Cloning into bare repository '/root/.cache/composer/vcs/https---bitbucket.org-xx-base-theme.git'...
#12 3.581     Failed to download xx/xx-articles from dist: The "https://bitbucket.org/xx/xx-articles/get/xx.zip"; file could not be downloaded (HTTP/2 404 )
#12 3.864     No bitbucket authentication configured. Falling back to ssh.
...
Solved

2 Replies

10 months ago

You appear to have unapplied changes in your project, one of which adds the COMPOSER_AUTH variable. Is this intentional? If not, you should press "Deploy" for the changes to be saved.


Status changed to Awaiting User Response railway[bot] 10 months ago


zaidaldabbaghPRO

10 months ago

Apologies, missed that! I've now redeployed and that issue appears to be resolved now.


Status changed to Awaiting Railway Response railway[bot] 10 months ago


Status changed to Solved brody 10 months ago