lando / pantheon

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

Apple M1, lando 3.6.2, docker 4.6.1 - unable to get redis to work - giving WSOD #117

Closed alphex closed 4 months ago

alphex commented 2 years ago

After a fresh lando destroy and lando start I'm getting errors connecting to redis.

After a successful lando db-import I run lando drush cr and get this. (I see this with any lando drush command)

In PhpRedis.php line 32:
  Connection refused

... in the browser I see this. (WSOD)

The website encountered an unexpected error. Please try again later.
RedisException: Connection refused in Redis->connect() (line 32 of modules/contrib/redis/src/Client/PhpRedis.php).
Redis->connect('cache', '6379') (Line: 32)
Drupal\redis\Client\PhpRedis->getClient('cache', '6379', NULL, '', Array, ) (Line: 179)
Drupal\redis\ClientFactory::getClient() (Line: 49)
Drupal\redis\Cache\RedisCacheTagsChecksum->__construct(Object) (Line: 262)
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache_tags.invalidator.checksum') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('cache_tags.invalidator.checksum', 1) (Line: 437)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 240)
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache.backend.redis') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('cache.backend.redis') (Line: 83)
Drupal\Core\Cache\ChainedFastBackendFactory->get('bootstrap') (Line: 83)
Drupal\Core\Cache\CacheFactory->get('bootstrap')
call_user_func_array(Array, Array) (Line: 258)
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache.bootstrap') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('cache.bootstrap', 1) (Line: 437)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 240)
Drupal\Component\DependencyInjection\Container->createService(Array, 'module_handler') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('module_handler') (Line: 586)
Drupal\Core\DrupalKernel->preHandle(Object) (Line: 46)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Is this an issue with my docker version? I installed this version for M1 native support. (I'm gonna downgrade the docker version after submitting this)

Do I need to install the redis plugin for lando?

Thank you


files below


.lando.yml

name: sitename
recipe: pantheon
config:
  php: '8.0'
  database: mariadb:10.4
  framework: drupal9
  site: sitename
  id: xxx
tooling:
  drush:
    service: appserver
    cmd: drush --root=/app/web
    env:
      DRUSH_OPTIONS_URI: "https://sitename.lndo.site"
  composer:
    service: appserver
    description: Run composer commands
    cmd:
      - php -dmemory_limit=-1 /usr/local/bin/composer

settings.local.php

<?php

// @codingStandardsIgnoreFile

assert_options(ASSERT_ACTIVE, TRUE);
\Drupal\Component\Assertion\Handle::register();
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
$config['system.logging']['error_level'] = 'verbose';
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['page'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
$settings['rebuild_access'] = TRUE;
$settings['skip_permissions_hardening'] = TRUE;
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$settings['config_sync_directory'] = $_SERVER['HOME'] . '/config/default';
$base_url = "https://sitename.lndo.site";

settings.php

<?php

/**
 * Load services definition file.
 */

$settings['hash_salt'] = 'xxx';
$settings['container_yamls'][] = __DIR__ . '/services.yml';

// Check if the current path matches an external redirect.
$external_redirects = __DIR__ . "/external_redirects.php";
if (file_exists($external_redirects)) {
  include $external_redirects;
}

/**
 * Redirect incoming requests that are not https or not the primary domain.
 * Adapted from: https://pantheon.io/docs/redirects/
 */
if (isset($_ENV['PANTHEON_ENVIRONMENT']) && php_sapi_name() != 'cli') {
  // If we are on the live server and not serving pages through the placeholder url.
  if ($_ENV['PANTHEON_ENVIRONMENT'] === 'live' && $_SERVER['HTTP_HOST'] != 'xxx.pantheonsite.io') {
    $primary_domain = 'xxx.xxx.xxx';
  }
  else {
    // Redirect to HTTPS on every Pantheon environment.
    $primary_domain = $_SERVER['HTTP_HOST'];
  }
  // We will be redirecting if the domain is not the primary or if https is not being used.
  if ($_SERVER['HTTP_HOST'] != $primary_domain || !isset($_SERVER['HTTP_USER_AGENT_HTTPS']) || $_SERVER['HTTP_USER_AGENT_HTTPS'] != 'ON' ) {
    // Name transaction "redirect" in New Relic for improved reporting (optional)
    if (extension_loaded('newrelic')) {
      newrelic_name_transaction("redirect");
    }
    $request_uri = $_SERVER['REQUEST_URI'];
    // When redirecting some domains, we need to set a destination path.
    $domain_redirect_paths = array(

... an array of redirects goes here that don't matter for this ...

    );
    if (isset($domain_redirect_paths[$_SERVER['HTTP_HOST']])) {
      $request_uri = $domain_redirect_paths[$_SERVER['HTTP_HOST']];
    }
    // Perform the redirect.
    header('HTTP/1.0 301 Moved Permanently');
    header('Location: https://'. $primary_domain . $request_uri);
    exit();
  }
  // Drupal 8 Trusted Host Settings
  if (is_array($settings)) {
    $settings['trusted_host_patterns'] = array('^'. preg_quote($primary_domain) .'$');
  }
}

/**
 * Include the Pantheon-specific settings file.
 *
 * n.b. The settings.pantheon.php file makes some changes
 *      that affect all envrionments that this site
 *      exists in.  Always include this file, even in
 *      a local development environment, to insure that
 *      the site settings remain consistent.
 */
include __DIR__ . "/settings.pantheon.php";

/**
 * Configure redis for the pantheon environments.
 */

if (defined('PANTHEON_ENVIRONMENT')) {
  // Include the Redis services.yml file. Adjust the path if you installed to a contrib or other subdirectory.
  $settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';

  //phpredis is built into the Pantheon application container.
  $settings['redis.connection']['interface'] = 'PhpRedis';
  // These are dynamic variables handled by Pantheon.
  $settings['redis.connection']['host']      = $_ENV['CACHE_HOST'];
  $settings['redis.connection']['port']      = $_ENV['CACHE_PORT'];
  $settings['redis.connection']['password']  = $_ENV['CACHE_PASSWORD'];

  $settings['cache']['default'] = 'cache.backend.redis'; // Use Redis as the default cache.
  $settings['cache_prefix']['default'] = 'pantheon-redis';

  // Set Redis to not get the cache_form (no performance difference).
  $settings['cache']['bins']['form']      = 'cache.backend.database';
}

/**
 * Use config sync directory in the code root.
 */
if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
  $settings['config_sync_directory'] = $_SERVER['HOME'] . '/code/config/default';
}

/**
 * If there is a local settings file, then include it
 * this is configured for LANDO
 */

if($_ENV['HTTP_HOST'] == "sitename.lndo.site") {
  $local_settings = __DIR__ . "/settings.local.php";
    if (file_exists($local_settings)) {
      include $local_settings;
  }
}
alphex commented 2 years ago

Ok, downgrading to docker 3.6.0 did NOT solve the problem.

alphex commented 2 years ago

Here's a dump from lando drush cr -vvv

✗ lando drush -vvv
lando 20:59:34 DEBUG ==> No update available.
lando 20:59:34 VERBOSE ==> starting bootstrap at level engine...
lando 20:59:34 VERBOSE ==> config bootstrap beginning...
lando 20:59:34 DEBUG ==> emitting event pre-bootstrap-config
lando 20:59:34 DEBUG ==> plugin lando-core loaded from /snapshot/cli/plugins/lando-core/index.js
lando 20:59:34 DEBUG ==> plugin lando-events loaded from /snapshot/cli/plugins/lando-events/index.js
lando 20:59:34 DEBUG ==> plugin lando-networking loaded from /snapshot/cli/plugins/lando-networking/index.js
lando 20:59:34 DEBUG ==> plugin lando-proxy loaded from /snapshot/cli/plugins/lando-proxy/index.js
lando 20:59:34 DEBUG ==> plugin lando-recipes loaded from /snapshot/cli/plugins/lando-recipes/index.js
lando 20:59:34 DEBUG ==> plugin lando-services loaded from /snapshot/cli/plugins/lando-services/index.js
lando 20:59:34 DEBUG ==> plugin lando-sharing loaded from /snapshot/cli/plugins/lando-sharing/index.js
lando 20:59:34 DEBUG ==> plugin lando-test loaded from /snapshot/cli/plugins/lando-test/index.js
lando 20:59:34 DEBUG ==> plugin lando-tooling loaded from /snapshot/cli/plugins/lando-tooling/index.js
lando 20:59:34 DEBUG ==> plugin @lando/acquia loaded from /snapshot/cli/node_modules/@lando/acquia/index.js
lando 20:59:34 DEBUG ==> plugin @lando/apache loaded from /snapshot/cli/node_modules/@lando/apache/index.js
lando 20:59:34 DEBUG ==> plugin @lando/backdrop loaded from /snapshot/cli/node_modules/@lando/backdrop/index.js
lando 20:59:34 DEBUG ==> plugin @lando/compose loaded from /snapshot/cli/node_modules/@lando/compose/index.js
lando 20:59:34 DEBUG ==> plugin @lando/dotnet loaded from /snapshot/cli/node_modules/@lando/dotnet/index.js
lando 20:59:34 DEBUG ==> plugin @lando/drupal loaded from /snapshot/cli/node_modules/@lando/drupal/index.js
lando 20:59:34 DEBUG ==> plugin @lando/elasticsearch loaded from /snapshot/cli/node_modules/@lando/elasticsearch/index.js
lando 20:59:34 DEBUG ==> plugin @lando/go loaded from /snapshot/cli/node_modules/@lando/go/index.js
lando 20:59:34 DEBUG ==> plugin @lando/joomla loaded from /snapshot/cli/node_modules/@lando/joomla/index.js
lando 20:59:34 DEBUG ==> plugin @lando/lagoon loaded from /snapshot/cli/node_modules/@lando/lagoon/index.js
lando 20:59:34 DEBUG ==> plugin @lando/lamp loaded from /snapshot/cli/node_modules/@lando/lamp/index.js
lando 20:59:34 DEBUG ==> plugin @lando/laravel loaded from /snapshot/cli/node_modules/@lando/laravel/index.js
lando 20:59:34 DEBUG ==> plugin @lando/lemp loaded from /snapshot/cli/node_modules/@lando/lemp/index.js
lando 20:59:34 DEBUG ==> plugin @lando/mailhog loaded from /snapshot/cli/node_modules/@lando/mailhog/index.js
lando 20:59:34 DEBUG ==> plugin @lando/mariadb loaded from /snapshot/cli/node_modules/@lando/mariadb/index.js
lando 20:59:34 DEBUG ==> plugin @lando/mean loaded from /snapshot/cli/node_modules/@lando/mean/index.js
lando 20:59:34 DEBUG ==> plugin @lando/memcached loaded from /snapshot/cli/node_modules/@lando/memcached/index.js
lando 20:59:34 DEBUG ==> plugin @lando/mongo loaded from /snapshot/cli/node_modules/@lando/mongo/index.js
lando 20:59:34 DEBUG ==> plugin @lando/mssql loaded from /snapshot/cli/node_modules/@lando/mssql/index.js
lando 20:59:34 DEBUG ==> plugin @lando/mysql loaded from /snapshot/cli/node_modules/@lando/mysql/index.js
lando 20:59:34 DEBUG ==> plugin @lando/nginx loaded from /snapshot/cli/node_modules/@lando/nginx/index.js
lando 20:59:34 DEBUG ==> plugin @lando/node loaded from /snapshot/cli/node_modules/@lando/node/index.js
lando 20:59:34 DEBUG ==> plugin @lando/pantheon loaded from /snapshot/cli/node_modules/@lando/pantheon/index.js
lando 20:59:34 DEBUG ==> plugin @lando/php loaded from /snapshot/cli/node_modules/@lando/php/index.js
lando 20:59:34 DEBUG ==> plugin @lando/phpmyadmin loaded from /snapshot/cli/node_modules/@lando/phpmyadmin/index.js
lando 20:59:34 DEBUG ==> plugin @lando/platformsh loaded from /snapshot/cli/node_modules/@lando/platformsh/index.js
lando 20:59:34 DEBUG ==> plugin @lando/postgres loaded from /snapshot/cli/node_modules/@lando/postgres/index.js
lando 20:59:34 DEBUG ==> plugin @lando/python loaded from /snapshot/cli/node_modules/@lando/python/index.js
lando 20:59:34 DEBUG ==> plugin @lando/redis loaded from /snapshot/cli/node_modules/@lando/redis/index.js
lando 20:59:34 DEBUG ==> plugin @lando/ruby loaded from /snapshot/cli/node_modules/@lando/ruby/index.js
lando 20:59:34 DEBUG ==> plugin @lando/solr loaded from /snapshot/cli/node_modules/@lando/solr/index.js
lando 20:59:34 DEBUG ==> plugin @lando/symfony loaded from /snapshot/cli/node_modules/@lando/symfony/index.js
lando 20:59:34 DEBUG ==> plugin @lando/tomcat loaded from /snapshot/cli/node_modules/@lando/tomcat/index.js
lando 20:59:34 DEBUG ==> plugin @lando/varnish loaded from /snapshot/cli/node_modules/@lando/varnish/index.js
lando 20:59:34 DEBUG ==> plugin @lando/wordpress loaded from /snapshot/cli/node_modules/@lando/wordpress/index.js
lando 20:59:34 DEBUG ==> emitting event post-bootstrap-config
lando 20:59:34 VERBOSE ==> building proxy config...
lando 20:59:34 VERBOSE ==> config bootstrap completed.
lando 20:59:34 VERBOSE ==> tasks bootstrap beginning...
lando 20:59:34 DEBUG ==> emitting event pre-bootstrap-tasks
lando 20:59:34 DEBUG ==> autoloaded task config
lando 20:59:34 DEBUG ==> autoloaded task destroy
lando 20:59:34 DEBUG ==> autoloaded task info
lando 20:59:34 DEBUG ==> autoloaded task list
lando 20:59:34 DEBUG ==> autoloaded task logs
lando 20:59:34 DEBUG ==> autoloaded task poweroff
lando 20:59:34 DEBUG ==> autoloaded task rebuild
lando 20:59:34 DEBUG ==> autoloaded task restart
lando 20:59:34 DEBUG ==> autoloaded task share
lando 20:59:34 DEBUG ==> autoloaded task start
lando 20:59:34 DEBUG ==> autoloaded task stop
lando 20:59:34 DEBUG ==> autoloaded task version
lando 20:59:34 DEBUG ==> autoloaded task init
lando 20:59:34 DEBUG ==> autoloaded task ssh
lando 20:59:34 DEBUG ==> emitting event post-bootstrap-tasks
lando 20:59:34 VERBOSE ==> tasks bootstrap completed.
lando 20:59:34 VERBOSE ==> engine bootstrap beginning...
lando 20:59:34 DEBUG ==> emitting event pre-bootstrap-engine
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/plugins/lando-core/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/plugins/lando-proxy/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/plugins/lando-recipes/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/plugins/lando-services/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/plugins/lando-sharing/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/node_modules/@lando/acquia/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/node_modules/@lando/lagoon/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/node_modules/@lando/pantheon/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> automoved scripts from /snapshot/cli/node_modules/@lando/platformsh/scripts to /Users/duran/.lando/scripts and set to mode 755
lando 20:59:34 DEBUG ==> emitting event post-bootstrap-engine
lando 20:59:34 VERBOSE ==> engine bootstrap completed.
lando 20:59:34 VERBOSE ==> bootstrap completed.
lando 20:59:34 DEBUG ==> emitting event post-bootstrap
lando 20:59:34 VERBOSE ==> docker-engine exists: true
lando 20:59:34 VERBOSE ==> docker-compose exists: true
lando 20:59:34 DEBUG ==> emitting event cli-answers
lando 20:59:34 DEBUG ==> emitting event cli-drush-answers
lando 20:59:34 DEBUG ==> emitting event cli-run
lando 20:59:34 DEBUG ==> emitting event cli-drush-run
lando 20:59:34 DEBUG ==> emitting event pre-command-runner
lando 20:59:34 DEBUG ==> emitting event pre-drush
lando 20:59:34 DEBUG ==> process pid5 running /Applications/Docker.app/Contents/Resources/bin/docker exec sitename_appserver_1 drush cstdio=[inherit, pipe, pipe], silent=false, mode=attach, detached=false
lando 20:59:34 VERBOSE ==> checking docker version compatibility...
lando 20:59:34 DEBUG ==> compatibility results name=desktop, link=https://docs.docker.com/docker-for-mac/release-notes/, wants=2.1.0.0 - 3.6.99, version=3.6.0, semversion=3.6.0, semmin=2.1.0, semmax=3.6.99, dockerVersion=true, satisfied=true
lando 20:59:34 DEBUG ==> engine is up.
                                       lando 20:59:34 DEBUG ==> docker is running.
                                                                                    [preflight] Config paths: /app/vendor/drush/drush/drush.yml
 [preflight] Alias paths: /app/web/drush/sites,/app/drush/sites
 [preflight] Commandfile search paths: /app/vendor/drush/drush/src
 [debug] Starting bootstrap to max [0.44 sec, 9.1 MB]
 [debug] Trying to bootstrap as far as we can [0.44 sec, 9.1 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalRoot() [0.44 sec, 9.1 MB]
 [debug] Change working directory to /app/docroot [0.44 sec, 9.1 MB]
 [debug] Initialized Drupal 9.3.7 root directory at /app/docroot [0.45 sec, 9.1 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalSite() [0.45 sec, 9.11 MB]
 [debug] Initialized Drupal site sitename.lndo.site at sites/default [0.46 sec, 9.28 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.46 sec, 9.28 MB]
 [debug] Add service modifier [0.53 sec, 9.81 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalDatabase() [0.56 sec, 10.33 MB]
 [debug] Successfully connected to the Drupal database. [0.56 sec, 10.33 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalFull() [0.56 sec, 10.33 MB]
 [debug] Start bootstrap of the Drupal Kernel. [0.56 sec, 10.33 MB]
 [debug] colorbox commands loaded even though its constraint (^9) is incompatible with Drush 10.3.6. Broaden the constraint in modules/contrib/colorbox/composer.json (see 'extra\drush\services' section) to remove this message. [8.09 sec, 13.74 MB]
 [debug] Found drush.services.yml for devel Drush commands [8.12 sec, 13.74 MB]
 [debug] Found drush.services.yml for devel_entity_updates Drush commands [8.12 sec, 13.74 MB]
 [info] entity_reference_revisions should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file. [8.15 sec, 13.74 MB]
 [debug] Found drush.services.yml for features Drush commands [8.15 sec, 13.74 MB]
 [info] feeds should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file. [8.15 sec, 13.74 MB]
 [debug] Found drush.services.yml for lightning_core Drush commands [8.21 sec, 13.74 MB]
 [debug] menu_item_extras commands loaded even though its constraint (^9) is incompatible with Drush 10.3.6. Broaden the constraint in modules/contrib/menu_item_extras/composer.json (see 'extra\drush\services' section) to remove this message. [8.25 sec, 13.75 MB]
 [info] path_redirect_import should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file. [8.28 sec, 13.74 MB]
 [debug] Found drush.services.yml for scheduled_updates Drush commands [8.3 sec, 13.74 MB]
 [debug] Found drush.services.yml for search_api Drush commands [8.3 sec, 13.74 MB]
 [debug] Found drush.services.yml for simple_sitemap Drush commands [8.31 sec, 13.74 MB]
 [debug] Found drush.services.yml for token Drush commands [8.32 sec, 13.74 MB]
 [debug] Found drush.services.yml for ultimate_cron Drush commands [8.4 sec, 13.74 MB]
 [debug] Found drush.services.yml for views_bulk_operations Drush commands [8.42 sec, 13.74 MB]
 [debug] Found drush.services.yml for webform Drush commands [8.43 sec, 13.74 MB]
 [debug] Found drush.services.yml for pathauto Drush commands [8.44 sec, 13.75 MB]
 [debug] Get container builder [8.45 sec, 13.75 MB]
 [debug] Service modifier alter. [8.46 sec, 13.91 MB]
 [debug] process drush.console.services console.command [9.39 sec, 19.66 MB]
 [debug] process drush.command.services drush.command [9.39 sec, 19.66 MB]
 [debug] Found tagged service config.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service config.export.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service config.import.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service batch.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service cli.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service drupal.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service deploy_hook.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service entity.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service image.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service jsonapi.commands [9.39 sec, 19.67 MB]
 [debug] Found tagged service language.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service locale.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service messenger.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service queue.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service role.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service state.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service twig.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service user.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service views.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service watchdog.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service pm.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service theme.commands [9.39 sec, 19.68 MB]
 [debug] Found tagged service sanitize.commands [9.39 sec, 19.69 MB]
 [debug] Found tagged service sanitize.comments.commands [9.39 sec, 19.69 MB]
 [debug] Found tagged service sanitize.sessions.commands [9.39 sec, 19.69 MB]
 [debug] Found tagged service sanitize.userfields.commands [9.39 sec, 19.69 MB]
 [debug] Found tagged service sanitize.usertable.commands [9.4 sec, 19.69 MB]
 [debug] Found tagged service colorbox.commands [9.4 sec, 19.69 MB]
 [debug] Found tagged service devel.commands [9.4 sec, 19.69 MB]
 [debug] Found tagged service devel_entity_updates.command [9.4 sec, 19.69 MB]
 [debug] Found tagged service entity_reference_revisions.commands [9.4 sec, 19.69 MB]
 [debug] Found tagged service features.commands [9.4 sec, 19.69 MB]
 [debug] Found tagged service feeds_drush_commands.commands [9.4 sec, 19.69 MB]
 [debug] Found tagged service lightning_core.hooks [9.4 sec, 19.7 MB]
 [debug] Found tagged service lightning_core.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service menu_item_extras.drush_commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service path_redirect_import.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service scheduled_updates.command [9.4 sec, 19.7 MB]
 [debug] Found tagged service search_api.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service simple_sitemap.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service token.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service ultimate_cron.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service views_bulk_operations.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service webform.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service webform.sanitize.submissions.commands [9.4 sec, 19.7 MB]
 [debug] Found tagged service pathauto.commands [9.4 sec, 19.7 MB]
 [debug] process drush.command_info_alterer.services drush.command_info_alterer [9.4 sec, 19.7 MB]
 [debug] process drush.generator.services drush.generator [9.4 sec, 19.7 MB]

In PhpRedis.php line 32:

  [RedisException]
  Connection refused

Exception trace:
  at /app/web/modules/contrib/redis/src/Client/PhpRedis.php:32
 Redis->connect() at /app/web/modules/contrib/redis/src/Client/PhpRedis.php:32
 Drupal\redis\Client\PhpRedis->getClient() at /app/web/modules/contrib/redis/src/ClientFactory.php:179
 Drupal\redis\ClientFactory::getClient() at /app/web/modules/contrib/redis/src/Cache/RedisCacheTagsChecksum.php:49
 Drupal\redis\Cache\RedisCacheTagsChecksum->__construct() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:262
 Drupal\Component\DependencyInjection\Container->createService() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:176
 Drupal\Component\DependencyInjection\Container->get() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:437
 Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:240
 Drupal\Component\DependencyInjection\Container->createService() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:176
 Drupal\Component\DependencyInjection\Container->get() at /app/web/core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php:83
 Drupal\Core\Cache\ChainedFastBackendFactory->get() at /app/web/core/lib/Drupal/Core/Cache/CacheFactory.php:83
 Drupal\Core\Cache\CacheFactory->get() at n/a:n/a
 call_user_func_array() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:258
 Drupal\Component\DependencyInjection\Container->createService() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:176
 Drupal\Component\DependencyInjection\Container->get() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:437
 Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:240
 Drupal\Component\DependencyInjection\Container->createService() at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:176
 Drupal\Component\DependencyInjection\Container->get() at /app/web/core/lib/Drupal/Core/DrupalKernel.php:586
 Drupal\Core\DrupalKernel->preHandle() at /app/vendor/drush/drush/src/Boot/DrupalBoot8.php:241
 Drush\Boot\DrupalBoot8->bootstrapDrupalFull() at /app/vendor/drush/drush/src/Boot/BootstrapManager.php:293
 Drush\Boot\BootstrapManager->doBootstrap() at /app/vendor/drush/drush/src/Boot/BootstrapManager.php:493
 Drush\Boot\BootstrapManager->bootstrapMax() at /app/vendor/drush/drush/src/Boot/BootstrapManager.php:427
 Drush\Boot\BootstrapManager->bootstrapToPhaseIndex() at /app/vendor/drush/drush/src/Boot/BootstrapManager.php:396
 Drush\Boot\BootstrapManager->bootstrapToPhase() at /app/vendor/drush/drush/src/Boot/BootstrapHook.php:28
 Drush\Boot\BootstrapHook->initialize() at /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:44
 Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook() at /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:36
 Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook() at /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:29
 Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize() at /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:145
 Consolidation\AnnotatedCommand\CommandProcessor->initializeHook() at /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:335
 Consolidation\AnnotatedCommand\AnnotatedCommand->initialize() at /app/vendor/symfony/console/Command/Command.php:221
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1027
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /app/vendor/drush/drush/src/Runtime/Runtime.php:118
 Drush\Runtime\Runtime->doRun() at /app/vendor/drush/drush/src/Runtime/Runtime.php:49
 Drush\Runtime\Runtime->run() at /app/vendor/drush/drush/drush.php:72
 require() at /app/vendor/drush/drush/drush:4

list [--format [FORMAT]] [--raw] [--filter FILTER] [-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>]

lando 20:59:46 DEBUG ==> process pid5 finished with exit code 1
lando 20:59:46 DEBUG ==> engine is up.
lando 20:59:46 VERBOSE ==> reporting error action to report=true, url=https://metrics.lando.dev, report=true, url=https://metrics.lando.dev
lando 20:59:46 DEBUG ==> reported data command=lando drush, context=local, devMode=false, instance=3164a0ff9725b44e6417da16c482dd65ebd921ee, nodeVersion=v14.17.2, mode=cli, type=Darwin, platform=darwin, release=21.4.0, arch=arm64, product=lando, version=3.6.2, message=, stack=Error
    at /snapshot/cli/lib/shell.js
From previous event:
    at Shell.sh (shell.js)
    at Object.dockerExec (utils.js)
    at /snapshot/cli/plugins/lando-tooling/lib/build.js
From previous event:
    at Object.run (build.js)
From previous event:
    at /snapshot/cli/lib/bootstrap.js
    at /snapshot/cli/lib/cli.js
From previous event:
    at /snapshot/cli/lib/cli.js
From previous event:
    at Object.handler (cli.js)
    at Object.runCommand (command.js:238:44)
    at Object.parseArgs [as _parseArgs] (yargs.js:1063:30)
    at Function.get [as argv] (yargs.js:1004:21)
    at Cli.init (cli.js)
    at Cli.run (cli.js)
    at Object.<anonymous> (lando.js)
    at Module._compile (bootstrap.js:1751:22)
    at Function.runMain (bootstrap.js:1804:12)
    at internal/main/run_main_module.js:17:47, action=error, created=2022-04-10T00:59:46.210Z
sgelliott commented 2 years ago

@alphex What happens if in your lando file you change php to 7.4? It may not work for your application, but does it resolve the redis connection issue? The reason I ask is that we identified a similar sounding issue that involves redis using the platform recipe and they may be related.

alphex commented 2 years ago

@sgelliott Changed my .lando.yml to use php: '7.4'... did a lando rebuild and still getting the ...

In PhpRedis.php line 32:
Connection refused

Error.

$ lando php -v
PHP 7.4.28 (cli) (built: Mar 17 2022 17:03:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
sgelliott commented 2 years ago

@alphex Bummer. I'd hoped it was related since there's a solve for the other issue. I don't have any pantheon projects active at the moment, or I'd be able to help diagnose further. When that changes, I'll jump back in.

labboy0276 commented 2 years ago

Please try the 3.6.3 release of Lando. This issue should be resolved. If you have any issues, we always recommend backing up your database and purging you containers via https://docs.lando.dev/help/purging-containers.html before posting any further issues,