lando/lagoon

lando pull without lando init first doesnt work, lagoon

Opened this issue · 7 comments

pirog commented

Wasn't able to replicate this but creating a placeholder in case someone else can. Original issue reported by @Schnitzel. Steps to replicate:

  1. git clone Lagoon project that has already been lando inititialized for use with lando
  2. lando pull and choose to add new key. Go through new key add workflow and continue.
  3. lando pull fails.

Is this the output? I had a local repo and ran lando init to setup the recipe. Then I ran a pull. I had added the key during the recipe init.

? Pull database from? contribkanban-master
? Pull files from? none
Refreshing aliases...


  Command la was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log messages.

@mglaman I had that error and it was because la is a lagoon specific drush command that does not exist unless you have required the amazeeio/drupal_integrations composer package. Have you added that to your composer.json?

Nope! I didn't know it existed. I'll add that now and try again! Thanks, @owenbush

That fixed the la error, now I get a 400 from the API. I'll debug more later

Refreshing aliases...

In RequestException.php line 113:

  Client error: `POST https://api.lagoon.amazeeio.cloud/graphql` resulted in a `400 Bad request` response:
  <html><body><h1>400 Bad request</h1>
  Your browser sent an invalid request.
  </body></html>


lagoon:aliases [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--notify [NOTIFY]] [--xh-link XH-LINK] [--] <command>

@mglaman I was receiving a 400 error from the API yesterday too, and didn't have time to figure out why. I wonder if the lagoon API was having a bad day.

@owenbush The API was working. For me it seems the key in ~/.lando/keys was bad. I'm going to try and recreate that (in the middle of a rebuild now.)

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.