Open zanami opened 6 years ago
How did you setup the Redis server? I am getting Redis is not connected when I install the Redis module(Drupal8).
I did not. It's installed and used by default by BOA as a part of other common modules (
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
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');
}
}
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.
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
.
Just a heads up, I spent some time struggling with this.
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)