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

unable to provide the crypt key when using the existing database #327

Open
venkateshjiva opened this issue Jun 29, 2021 · 1 comment
Open

Comments

@venkateshjiva
Copy link

Hi Support,

I am creating the local instance with docker setup and used the database entry point to use the existing database for the application, when running the deploy command throwing the error like Missing Crypt key for upgrading magento, can you suggest how we can provide crypt key on docker configuration?

@qaniel
Copy link

qaniel commented Aug 6, 2021

Hello fellow Coder!
Sadly it's not specified during the local docker installations but you need to have an existing mageroot/app/etc/env.php during the installation process. There you should add a crypt key.

    echo "<?php return array('cache'=> array ('frontend' => array ('default' => array ('backend' => 'Cm_Cache_Backend_Redis','backend_options' => array ('server' => 'redis','port' => '6379','database' => 1,),),'page_cache' => array ('backend' => 'Cm_Cache_Backend_Redis','backend_options' => array ('server' => 'redis','port' => '6379','database' => 2,),),),),'MAGE_MODE' => 'production','cron' => array ('enabled' => 0,),'crypt' =>array ('key' => '0000athirtytwocharacterstring000',),);" >> app/etc/env.php

here is a command to generate the env.php with crypt key, don't forget to use a different crypt key on you public store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
Ready for Grooming
Development

No branches or pull requests

2 participants