Skip to content

app:config:import fails with "Please specify the admin custom URL." #15090

@BlitzInternet

Description

@BlitzInternet

When trying to import a dumped config on another server (demo), the import fails. Nothing in the config file has been changed but URL and password values.
The (redacted) dump: env.redacted.txt
Problem is caused in L106 - L111

I've tried adding the 'use_custom' => 1, 'use_custom_path' => 1, but it didn't help. Setting both of those to 0 does fix the issue, but as expected then the custom admin url/path isn't used.

In magento/module-config/Model/Config/Backend/Admin/Usecustom.php where the error is thrown, debugging reveals that no other config keys are set in $this->_data. As such, getData('groups/url/fields/custom/value') will always return null.

Preconditions

  1. mage 2.2.4
  2. ubuntu 16.04
  3. php 7.0.28

Steps to reproduce

  1. export config on dev machine containing custom admin url and path
  2. adjust urls for demo server without adding, modifying or deleting any keys
  3. import config on demo server

Expected result

  1. sucessful import

Actual result

php bin/magento app:config:import
Processing configurations data from configuration file...
Import failed: Please specify the admin custom URL.

Metadata

Metadata

Assignees

Labels

Component: ConfigFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions