skip to Main Content

https://github.com/elastic/elasticsearch-php | https://packagist.org/packages/elasticsearch/elasticsearch gone missing.
What happened there?

[RuntimeException]                                                                                                                                                                                     
  Failed to clone https://github.com/elastic/elasticsearch-php.git via https, ssh protocols, aborting.                                                                                                   
                                                                                                                                                                                                         
  - https://github.com/elastic/elasticsearch-php.git                                                                                                                                                     
    Cloning into bare repository '/composer/cache/vcs/https---github.com-elastic-elasticsearch-php.git'...                                                                                               
    remote: Support for password authentication was removed on August 13, 2021.                                                                                                                          
    remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.  
    fatal: Authentication failed for 'https://github.com/elastic/elasticsearch-php.git/'                                                                                                                 
                                                                                                                                                                                                         
  - [email protected]:elastic/elasticsearch-php.git                                                                                                                                                         
    Cloning into bare repository '/composer/cache/vcs/https---github.com-elastic-elasticsearch-php.git'...                                                                                               
    error: cannot run ssh: No such file or directory                                                                                                                                                     
    fatal: unable to fork                                                                 ```

4

Answers


  1. As part of an internal change task, some of our public git repositories hosted under Elastic’s GitHub organisation were marked as private. As a result, when attempting to access these repositories an error may be seen. Our teams are working to restore these with urgency.

    See https://status.elastic.co/incidents/9mmlp98klxm1

    Login or Signup to reply.
  2. If you urgently need to deploy the project and cannot wait, use the instruction below as a temporary solution:

    1. Copy the Elasticsearch package source code into your project.
    2. Add a version line to Elasticsearch’s composer.json that satisfies your project dependencies. For example:
    {
      "name": "elasticsearch/elasticsearch",
      "description": "PHP Client for Elasticsearch",
      "version": "v8.15.0", # add version here
      ...
    }
    
    1. Add the following to your project’s composer.json:
    "repositories": [  
        {
            "type": "path",
            "url": "path-to-local-elasticsearch",
            "options": {
                "symlink": true.
            }
        }
    ],
    

    Replace "path-to-local-elasticsearch" with the actual path to the Elasticsearch package in your project.

    1. Run the following command to update your composer.lock file:
    composer update elasticsearch/elasticsearch
    

    By following these steps, Composer will install the package from the specified local path instead of from GitHub. This method allows you to maintain the functionality of packages that depend on elasticsearch/elasticsearch, such as Monolog.

    Login or Signup to reply.
  3. It seems to be there again 🙌

    https://github.com/elastic/elasticsearch-php

    Thank you for the fast fixing elastic team!

    Login or Signup to reply.
  4. https://status.elastic.co/incidents/9mmlp98klxm1

    All repositories except for Kibana have been changed back to public. GitHub is in the process of restoring forks for those repositories. We are awaiting further input from GitHub Support for the Kibana repository.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search