cancel
Showing results for 
Search instead for 
Did you mean: 

Export config is locking admin config

Highlighted

Export config is locking admin config

I am testing an export and import of the settings of the magento 2.4.1 admin config.

When executing the commands I get my admin config locked, I tried to unlock in several ways but I couldn't. How can I unlock the settings?

 

https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-config-mgmt-export.h...

 

For export I'm using:
$ bin / magento app: config: dump

 

For import I'm using:
$ bin / magento app: config: import

1 REPLY 1
Highlighted

Re: Export config is locking admin config

"dawhoo" was on to something, but it had nothing to do with the DB info. That config file (app/etc/env.php) contains config settings of a sensitive nature and is the place where sensitive config values are dumped if you do an export. After I inadvertently dumped all settings and locked them all, I recovered by removing the exported values from the app/etc/config.php file. However, the sensitive ones were exported to app/etc/env.php, which I was not aware of. We use git for deployments and it's advised NOT to have app/etc/env.php in git, so I didn't even notice the change to the file.