omega8cc / boa

Barracuda Octopus Aegir 5.5.0-PRO
https://omega8.cc/compare
395 stars 75 forks source link

Some errors after D8 upgrade (Redis) #1290

Open zanami opened 6 years ago

zanami commented 6 years ago

Just a heads up, I spent some time struggling with this.

  1. Thunder 2.13 D8.4 platform, one site
  2. Added another platform — Thunder 2.18 (D8.5)
  3. Migrated the site via panel, all went fine, task complete, no errors or warnings.
  4. Site doesn't work (error 500).
  5. drush cr — ok, drush updb — nothing to update

Solved with service redis-server restart (some time later)

I'm sure it's not the best way so maybe it's worth documenting.

BTW I ran into the same problem trying to clone the same site (using the same platform).

Some of the errors

Uncaught PHP Exception InvalidArgumentException: "Field is unknown." at /data/disk/o1/static/thunder-8.x-2.18/core/lib/Drupal/Core/Entity/ContentEntityBase.php line 580 ... TypeError: Argument 3 passed to Drupal\views\EntityViewsData::mapFieldDefinition() must implement interface Drupal\Cor e\Field\FieldDefinitionInterface, null given, called in /data/disk/o1/static/thunder-8.x-2.13/core/modules/views/src/EntityViewsData.php on line 273 in /data/ disk/o1/static/thunder-8.x-2.13/core/modules/views/src/EntityViewsData.php on line 370 #0 /data/disk/o1/static/thunder-8.x-2.13/core/modules/views/src/EntityV iewsData.php(273): Drupal\views\EntityViewsData->mapFieldDefinition('block_content_r...', 'revision_defaul...', NULL, Object(Drupal\Core\Entity\Sql\DefaultTab leMapping), Array)

lexsoft00 commented 6 years ago

How did you setup the Redis server? I am getting Redis is not connected when I install the Redis module(Drupal8).

zanami commented 6 years ago

I did not. It's installed and used by default by BOA as a part of other common modules (/modules/~o_contrib_eight for D8).

https://github.com/omega8cc/boa/blob/master/docs/MODULES.txt ([NA] means that this module is used without the need to enable it)

Looks like your redis server isn't running or something (like PHP) is misconfigured.

I don't think it's related so you'll have to open a separate issue or look here https://github.com/omega8cc/boa/search?q=redis&type=Issues

lexsoft00 commented 6 years ago

Hi @zanami

Thank you for your great response. I've actually solved by not installing the Redis Module on Drupal 8 as BOA has this functionality in place.

To check if it's working you should see X-Allow-Redis: YES when visiting and domain alias that contains .dev. in its name

 if ($redis_up && $use_redis) {
  if ($is_dev && !$is_backend) {
    header('X-Allow-Redis: YES');
  }
}
omega8cc commented 6 years ago

It could be a Redis integration module bug, or even Zend OPcache configuration related, which we have fixed recently in BOA head: https://github.com/omega8cc/boa/commit/8f7b4948ed17159b2bfa29fd6b9706638296715c

The fact that restarting Redis server helped could be a coincidence. But if not, then it does suggests a bug in the integration module, or in our default settings for the module.

gandhiano commented 6 years ago

I confirm that after an upgrade of a drupal 8 site (Open Social) using composer, the 500 issue arose and was solved with a service redis-server restart.