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

Install Redis, and adjust 'settings.php' respectively #317

Closed
jeff1evesque opened this issue Jan 22, 2016 · 6 comments
Closed

Install Redis, and adjust 'settings.php' respectively #317

jeff1evesque opened this issue Jan 22, 2016 · 6 comments
Milestone

Comments

@jeff1evesque
Copy link
Owner

We will install redis, then make the necessary configurations within the settings.php.

@jeff1evesque jeff1evesque changed the title Install Varnish, and adjust 'settings.php' respectively Install Redis, and adjust 'settings.php' respectively Jan 22, 2016
@jeff1evesque jeff1evesque modified the milestone: 1.0 Feb 21, 2016
jeff1evesque added a commit that referenced this issue Apr 25, 2016
jeff1evesque added a commit that referenced this issue Apr 25, 2016
jeff1evesque added a commit that referenced this issue May 9, 2016
jeff1evesque added a commit that referenced this issue May 13, 2016
@jeff1evesque
Copy link
Owner Author

We need to discuss in the README.md, how to configure an appropriate set of attributes within local.settings.php, to allow a drupal instance to be installed, with a functional redis caching system.

@jeff1evesque
Copy link
Owner Author

Currently, we are getting PHP Fatal error: Class 'Redis' not found during a vagrant up:

...
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment development...
==> default: Notice: Compiled catalog for drupal-demonstration.com in environmen
t development in 0.29 seconds
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
Cannot load Zend OPcache - extension already loaded
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
Cannot load Zend OPcache - extension already loaded
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
You are about to create a /vagrant/webroot/sites/default/settings.php file and D
ROP all tables in your 'db_drupal' database. Do you want to continue? (y/n): y
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
Starting Drupal installation. This takes a while. Consider using the        [ok]

==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
--notify global option.
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
PHP Fatal error:  Class 'Redis' not found in /vagrant/webroot/sites/all/modules/
redis/lib/Redis/Client/PhpRedis.php on line 9
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
Drush command terminated abnormally due to an unrecoverable error.       [error]

==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
Error: Class 'Redis' not found in
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
/vagrant/webroot/sites/all/modules/redis/lib/Redis/Client/PhpRedis.php,
==> default: Notice: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns:
line 9
==> default: Error: drush site-install sample --db-url=mysql://root:password@loc
alhost:6686/db_drupal --account-name=admin --account-pass=password --site-name=s
ample --site-mail=sample.email@domain.com --locale=us install_configure_form.sit
e_default_country=US -y returned 255 instead of one of [0]
==> default: Error: /Stage[main]/Drupal::Install/Exec[install-drupal]/returns: c
hange from notrun to 0 failed: drush site-install sample --db-url=mysql://root:p
assword@localhost:6686/db_drupal --account-name=admin --account-pass=password --
site-name=sample --site-mail=sample.email@domain.com --locale=us install_configu
re_form.site_default_country=US -y returned 255 instead of one of [0]
==> default: Notice: Applied catalog in 7.01 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

@jeff1evesque
Copy link
Owner Author

jeff1evesque commented May 27, 2016

We may consider investigating the following:

  • consider enabling the redis module within the corresponding drupal install profile
  • determine if $conf['redis_client_host'] needs corresponding default redis port
  • determine if LUA scripting is enabled per redis module's README.txt:

This module requires Redis version to be 2.6.0 or later with LUA scrpting
enabled due to the EVAL command usage.

Note: the redis module's README.txt was a little unclear, so a drupal ticket has been opened.

@jeff1evesque
Copy link
Owner Author

jeff1evesque commented May 27, 2016

On a different tangent, last week we attempted to download the redis-server via arioch/puppet-redis (and several other) puppet module(s). However, due to various errors, this approach was abandoned, and a more manual successful method is being implemented. Specifically, the redis-server is manually downloaded (via wget), then built with equivalent make statements. Nevertheless, a corresponding issue has been created within arioch/puppet-redis repository.

jeff1evesque added a commit that referenced this issue May 27, 2016
@jeff1evesque
Copy link
Owner Author

jeff1evesque commented May 27, 2016

The browser is generating the following uncaught exception:

Additional uncaught exception thrown while handling exception.

Original

Predis\Connection\ConnectionException: Permission denied [tcp://localhost:6379] in Predis\Connection\AbstractConnection->onConnectionError() (line 168 of /vagrant/webroot/sites/all/libraries/predis/src/Connection/AbstractConnection.php).

Additional

Predis\Connection\ConnectionException: Permission denied [tcp://localhost:6379] in Predis\Connection\AbstractConnection->onConnectionError() (line 168 of /vagrant/webroot/sites/all/libraries/predis/src/Connection/AbstractConnection.php).

uncaught-exception

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

1 participant