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

Admin URL not working after migration to M2.3.3 #727

Closed
jvkranenburg opened this issue Oct 10, 2019 · 5 comments
Closed

Admin URL not working after migration to M2.3.3 #727

jvkranenburg opened this issue Oct 10, 2019 · 5 comments

Comments

@jvkranenburg
Copy link

jvkranenburg commented Oct 10, 2019

Preconditions

  1. Magento 1: 1.9.2.4
  2. Magento 2: 2.3.3
  3. PHP: 7.2.23
  4. MySQL: Ver 15.1 Distrib 10.1.41-MariaDB, for Linux (x86_64) using readline 5.1

Steps to reproduce

  1. Install M2.3.3 (everything works fine, frontend and backend)
    ("composer create-project --repository=https://repo.magento.com/ magento/project-community-edition:2.3.3 domain.com")
  2. Install migration tool 2.3.3
    ("composer require magento/data-migration-tool:2.3.3")
  3. Create "vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml" with correct database parameters bulk_size=100 and direct_document_copy=1
  4. "bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml"
  5. "bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml"
  6. When the admin session is still open after migration everything is working fine until "bin/magento c:c"
  7. Frontend is working fine, all products and menu's are in.
  8. Backend returns to 'no-route' cms_page.

Expected result

  1. An admin login screen

Actual result

  1. Navigate to backend URL returns to 'no-route' cms_page with correct menu and all products working.

Go-to-backend-url

Additional notes

Cron's are off! This is requered for migration. But also tried with cron's on after migration.

Already checked a lot of internet suggestions eg:
#501
https://meetanshi.com/blog/magento-2-backend-not-working-solution/
https://bobcares.com/blog/magento-admin-url-404/

@jvkranenburg
Copy link
Author

jvkranenburg commented Oct 10, 2019

Working .... Had to use the old backend URL! (The M1 one!)

BUT: "bin/magento info:adminuri" returns the generated URI during install M2.3.3.
How to fix this?

@victor-v-rad
Copy link
Collaborator

Hi @jvkranenburg

You can change the values of your admin/url/custom and admin/url/custom_path paths in migrated core_config_data table. The tool does not migrate these values from Magento 1 store

@victor-v-rad
Copy link
Collaborator

victor-v-rad commented Oct 10, 2019

Probably the tool should not migrate admin/url/use_custom_path and admin/url/use_custom as well. Please remove or change values to 0 in these paths and reply if it helped

@jvkranenburg
Copy link
Author

Image 10
That's it! Old admin URL was active. Changed to generated one during installation and everything was ok!

Tnx for quick support.

@victor-v-rad
Copy link
Collaborator

Internal ticket MC-21839 to exclude admin/url/use_custom_path and admin/url/use_custom from migration

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

2 participants