MAGETWO-84608: Cannot perform setup:install if Redis needs a password…#17078
Merged
magento-engcom-team merged 1 commit intomagento:2.2-developfrom Aug 8, 2018
guillaumegiordana:MAGETWO-84608
Merged
MAGETWO-84608: Cannot perform setup:install if Redis needs a password…#17078magento-engcom-team merged 1 commit intomagento:2.2-developfrom guillaumegiordana:MAGETWO-84608
magento-engcom-team merged 1 commit intomagento:2.2-developfrom
guillaumegiordana:MAGETWO-84608
Conversation
Contributor
Contributor
|
Hi @guillaumegiordana. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
… and Redis page cache is enabled in env.php
Contributor
|
@guillaumegiordana thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Contributor
|
Hi @guillaumegiordana. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
2 tasks
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Needed to perform setup on a fresh magento install using an authenticated redis instance for the cache configuration part.
Redis session password configuration works whereas the cache configuration does not take the provided configuration.
Changed setup/src/Magento/Setup/Model/ConfigOptionsList/Cache.php and setup/src/Magento/Setup/Model/ConfigOptionsList/PageCache.php to enable a configuration password during initial setup.
Fixed Issues (if relevant)
Manual testing scenarios
bin/magento setup:installwith cache options in env.php as so :'cache' => [ 'frontend' => [ 'default' => [ 'backend' => 'Cm_Cache_Backend_Redis', 'backend_options' => [ 'server' => redis_host, 'database' => '0', 'port' => 6379, 'password' => redis_password ] ], 'page_cache' => [ 'backend' => 'Cm_Cache_Backend_Redis', 'backend_options' => [ 'server' => redis_host, 'port' => 6379, 'database' => '1', 'compress_data' => '0', 'password' => redis_password ] ] ] ],The setup will fail saying that the redis configuration is wrong.
Contribution checklist