lando / pantheon

The Official Lando Pantheon plugin.
https://docs.lando.dev/pantheon
GNU General Public License v3.0
11 stars 18 forks source link

Error 500 Spinning Up New Local Site via Pantheon Recipe #178

Open digisavvy opened 1 year ago

digisavvy commented 1 year ago

Lando Version: v3.18.0

Like the title says, I have a WP website I spun up connected to Pantheon. At the part when Lando actives the site I get an error message

  ⚠ APPSERVER NGINX URLS
    ✖ https://localhost:51375 [500] - REQUEST FAILED WITH STATUS CODE 500
    ✖ http://localhost:51376 [500] - REQUEST FAILED WITH STATUS CODE 500
  ⚠ EDGE SSL URLS
    ✖ https://localhost:51387 [500] - REQUEST FAILED WITH STATUS CODE 500
  ⚠ EDGE URLS
    ✖ http://localhost:51380 [500] - REQUEST FAILED WITH STATUS CODE 500
    ✖ http://ignitiondeck-fse-theme.lndo.site/ [500] - REQUEST FAILED WITH STATUS CODE 500
    ✖ https://ignitiondeck-fse-theme.lndo.site/ [500] - REQUEST FAILED WITH STATUS CODE 500

Visiting the local url results in a 'Error establishing a database connection`.

From the lando log file for the site in question:

{"level":"debug","message":"scan of 'http://idfse.lndo.site//' failed with 500 'Internal Server Error'","label":"idfse","timestamp":"2023-05-29T18:23:29.269Z"}
{"level":"debug","message":"scan of 'https://idfse.lndo.site//' failed with 500 'Internal Server Error'","label":"idfse","timestamp":"2023-05-29T18:23:29.270Z"}
{"level":"debug","message":"scan of 'http://localhost:50236/' failed with 500 'Internal Server Error'","label":"idfse","timestamp":"2023-05-29T18:23:29.271Z"}
{"level":"debug","message":"scan of 'https://localhost:50235/' failed with 500 'Internal Server Error'","label":"idfse","timestamp":"2023-05-29T18:23:29.273Z"}

I've tried changing the db config of the local config file and no joy. I've tried rebuilding the site and everything seems to work until it attempts to activate the site but I run into the same issue.

xaqrox commented 1 year ago

I have also noticed 500 errors on an otherwise seemingly healthy build. What's worked for me is turning off the edge service in .lando.yml:

config:
  edge: false

This seems to be specific to Wordpress, haven't had to do this with any Drupal sites, but have had to do this a couple times, as far back as Nov '22, as recently as today on 3.18.0

parental-unit-2 commented 1 year ago

I am seeing something like this problem on an M1 Mac running macOS 13.4.1 (22F82) and using the Lando Drupal plugin. Lando versions tried include 3.18.0, 3.19.5, and 3.17.1. I initially ran into this problem on an existing 3.17.1 install. I rebuilt completely from scratch twice, first with 3.18.0 and then with 3.19.5. No luck. My guess is that the OS got upgraded overnight and broke lando or something it depends on, but I can't be certain.

AnaLaura-cellardoormedia commented 9 months ago

I have also noticed 500 errors on an otherwise seemingly healthy build. What's worked for me is turning off the edge service in .lando.yml:

config:
  edge: false

This seems to be specific to Wordpress, haven't had to do this with any Drupal sites, but have had to do this a couple times, as far back as Nov '22, as recently as today on 3.18.0

I tried this solution for Drupal with Pantheon Recipe and Lando 3.20. I did not work but it changed the error.

I was updating a new to php8.2 and keep getting a 500 error on lando start. After turning off 'edge' I got a 404

charlesLoder commented 8 months ago

I have also noticed 500 errors on an otherwise seemingly healthy build. What's worked for me is turning off the edge service in .lando.yml:

config:
  edge: false

This seems to be specific to Wordpress, haven't had to do this with any Drupal sites, but have had to do this a couple times, as far back as Nov '22, as recently as today on 3.18.0

I tried this solution for Drupal with Pantheon Recipe and Lando 3.20. I did not work but it changed the error.

I was updating a new to php8.2 and keep getting a 500 error on lando start. After turning off 'edge' I got a 404

Having the exact same issue, but with Wordpress, not Drupal. Any updates? Workarounds?

possiBri commented 8 months ago

Also suddenly began experiencing this issue this morning after things were working fine. I did a lando rebuild to clear some things and make sure changes were showing up. Upon rebuild attempt I've repeatedly received the "failed with 500 '500 Service unavailable (with message)'" error for all URLS.

Win 11, Build 22H2 WSL 2.0.14.0 Lando 3.20.8 Pantheon Drupal 10

My .lando.yml file had Drupal8 as the recipe so I tried changing to Drupal9 and that didn't seem to do anything. I've now tried changing it back and forth with rebuilds in between. I have also destroyed the site, deleted the lando proxy container and rebuilt everything from scratch (aside from re-cloning the repo). I also checked for WSL updates (I was already current) and did a WSL shutdown while Docker was close and rebooted everything (my computer included) after a full destroy, but still no joy.

Edit: I also just tried disabling the edge cache, but that did not do anything unfortunately, still a 500 error.

Edit 2: I've now also completely re-cloned the repo, still not working. The only thing left to try is uninstalling and reinstalling Lando.

Edit 3 FIXED: After tons of rebuilds and tweaking settings, I finally noticed an error in the logs with Redis. I then tried disabling Redis and rebuilding, still no luck, so then I re-enabled the service and now everything is working. So I'm guessing this effectively acted like a reboot of the service and now all is well!