Heroku composer install: Host key verification failed

mmmmm

I am trying to deploy my PHP project on Herkoku trough the git push command. This is going fine until composer fails to install my private packages stored in private repositories at Bitbucket. The message returned is:

remote: Compressing source files... done.
remote: Building source:
remote: -----> PHP app detected
remote: -----> Bootstrapping...
remote: -----> Installing platform packages...
remote:        - php (7.0.6)
remote:        - ext-exif (bundled with php)
remote:        - ext-gd (bundled with php)
remote:        - ext-mbstring (bundled with php)
remote:        - apache (2.4.20)
remote:        - nginx (1.8.1)
remote: -----> Installing dependencies...
remote:        Composer version 1.1.1 2016-05-17 12:25:44
remote:        Loading composer repositories with package information
remote:        Installing dependencies from lock file
remote:          - Installing doctrine/lexer (dev-master 83893c5)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/annotations (dev-master f25c8aa)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/cache (dev-master e0ef9e9)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/collections (dev-master 866e100)
remote:            Downloading: 100%
remote:
remote:          - Installing private-repo/private-repo (dev-master cff3e2d)
remote:            Cloning cff3e2d83977df680e724b8857f18ebea85af420
remote:
remote:          [RuntimeException]
remote:          Failed to execute git clone --no-checkout '[email protected]:private-repo/private-repo.git' '/tmp/build_83b3c2f9665a4335124a98bf13b0d85b/vendor/private-repo/private-repo' && cd '/tmp/build_83b3c2f9665a4335124a98bf13b0d85b/vendor/private-repo/private-repo' && git remote add composer '[email protected]:private-repo/private-repo.git' && git fetch composer
remote:          Cloning into '/tmp/build_83b3c2f9665a4335124a98bf13b0d85b/vendor/private-repo/private-repo'...

remote:          Host key verification failed.
remote:          fatal: Could not read from remote repository.
remote:          Please make sure you have the correct access rights
remote:          and the repository exists.

remote:
remote:        install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--op
timize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
remote:
remote:
remote:  !     Push rejected, failed to compile PHP app
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to xxx.

I already uploaded my rsa-key i normally use authenticating with Bitbucket onto my Heroku account.

Does somebody know how to let Heroku authenticate with my Bitbucket repositories?

mmmmm

Finally got it working. Now using http basic authentication to connect Heroku with Bitbucket. Followed these steps:

Converted the repository urls my package.json (containing my private packages) from: [email protected]:private-repo/private-repo.git to:

https://[email protected]/private-repo/private-repo.git

Then added the following config to my composer.json:

"config": {
    "bitbucket-oauth": {
        "bitbucket.org": {
            "consumer-key": "Bitbucket username",
            "consumer-secret": "Bitbucket password"
        }
    }
}

Its not recommended to store your password in a plain-text file but unfortunately Bitbucket does not give us a choice

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

"Host key verification failed"?

From Dev

Can't install @types packages: Host key verification failed

From Dev

Host key verification failed with SSH

From Dev

Not able to "git pull" - Host key verification failed

From Dev

Team City Git "Host key verification failed"

From Dev

Host key verification failed using gitlab and jenkins

From Dev

SSH 'Host key verification failed' error

From Dev

Host key verification failed.#015

From Dev

rsync + rsync failed because Host key verification failed

From Java

Git error: "Host Key Verification Failed" when connecting to remote repository

From Dev

SSH connection problem with "Host key verification failed..." error

From Dev

Deja-dup failing with "Host key verification failed"

From Dev

Deja-dup failing with "Host key verification failed"

From Dev

SSH connection problem with "Host key verification failed..." error

From Dev

Host key verification failed (exit code 255) while using pdcp

From Dev

host key verification failed when I use scp

From Dev

Host key verification failed using mpi4py

From Dev

"Host key verification failed" during docker alpine 9 build

From Dev

Ansible with host_key_checking set to false fails with "Host key verification failed."

From Dev

Git push fails because of ssh key: Host key verification failed. from inside a docker

From Dev

Laravel composer install failed

From Dev

Jenkins pipeline: scp tries to copy to other remote, Host key verification failed

From Dev

Connection to EC2 instance from Jenkins fails : Host key verification failed

From Dev

Composer require failed to install packages

From Dev

Ignore SSH host key verification for a subnet

From Dev

Why does Akismet return failed on key verification?

From Dev

failed to install composer packages in docker container

From Dev

How to solve failed install composer laravel?

From Dev

composer install yii2-gii failed

Related Related

  1. 1

    "Host key verification failed"?

  2. 2

    Can't install @types packages: Host key verification failed

  3. 3

    Host key verification failed with SSH

  4. 4

    Not able to "git pull" - Host key verification failed

  5. 5

    Team City Git "Host key verification failed"

  6. 6

    Host key verification failed using gitlab and jenkins

  7. 7

    SSH 'Host key verification failed' error

  8. 8

    Host key verification failed.#015

  9. 9

    rsync + rsync failed because Host key verification failed

  10. 10

    Git error: "Host Key Verification Failed" when connecting to remote repository

  11. 11

    SSH connection problem with "Host key verification failed..." error

  12. 12

    Deja-dup failing with "Host key verification failed"

  13. 13

    Deja-dup failing with "Host key verification failed"

  14. 14

    SSH connection problem with "Host key verification failed..." error

  15. 15

    Host key verification failed (exit code 255) while using pdcp

  16. 16

    host key verification failed when I use scp

  17. 17

    Host key verification failed using mpi4py

  18. 18

    "Host key verification failed" during docker alpine 9 build

  19. 19

    Ansible with host_key_checking set to false fails with "Host key verification failed."

  20. 20

    Git push fails because of ssh key: Host key verification failed. from inside a docker

  21. 21

    Laravel composer install failed

  22. 22

    Jenkins pipeline: scp tries to copy to other remote, Host key verification failed

  23. 23

    Connection to EC2 instance from Jenkins fails : Host key verification failed

  24. 24

    Composer require failed to install packages

  25. 25

    Ignore SSH host key verification for a subnet

  26. 26

    Why does Akismet return failed on key verification?

  27. 27

    failed to install composer packages in docker container

  28. 28

    How to solve failed install composer laravel?

  29. 29

    composer install yii2-gii failed

HotTag

Archive