Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
digisavvy opened this issue May 29, 2023 · 5 comments
Open

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

digisavvy opened this issue May 29, 2023 · 5 comments

Comments

@digisavvy
Copy link

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.

@pirog pirog transferred this issue from lando/lando May 29, 2023
@xaqrox
Copy link
Sponsor Contributor

xaqrox commented Jun 9, 2023

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
Copy link

parental-unit-2 commented Jun 30, 2023

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

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
Copy link

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
Copy link

possiBri commented Jan 31, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants