Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17012

Random authentication fails

    XMLWordPrintable

Details

    Description

      Randoms authentication fails on using composer from private repository using OAuth2.

      #!shell
      
      Checking out <xxxcommit>
          Update failed (Failed to execute git remote set-url composer &#x27;https://x-token-auth:***@bitbucket.org/neoacevedo/repo.git&#x27; && git rev-parse --quiet --verify &#x27;<hash>^{commit}&#x27; || (git fetch composer && git fetch --tags composer)
      
      remote: Invalid username or password. If your organization manages your account or you&#x27;ve enabled two-step verification, create an app password to log in: https://confluence.atlassian.com/x/9DJmMQ
      fatal:***@bitbucket.org/neoacevedo/repo.git/&#x27;
      )
          Would you like to try reinstalling the package instead [yes]? 
        - Removing neoacevedo/repo (dev-branch)
        - Installing neoacevedo/repo (dev-branch <xxxcommit>): Cloning <xxxcommit> from cache
          <hash> is gone (history was rewritten?)
          Failed to download neoacevedo/repo from source: Failed to execute git checkout &#x27;<hash>&#x27; -- && git reset --hard &#x27;<hash>&#x27; --
      
      fatal: reference is not a tree: <hash>
      
          Now trying to download from dist
        - Installing neoacevedo/repo (dev-branch <
      xxxcommit>): Downloading (connecting...)
                                                      
        [Composer\Downloader\TransportException]      
        Could not authenticate against bitbucket.org  
                                                      
      
      update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]... 
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            357e9ec07150 Néstor Acevedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: