Skip to content

Admin page 404 error after flush cache from admin #7158

@Dysp1

Description

@Dysp1

I have a fully working installation of Magento. Customer pages and admin pages both work perfectly. I can browse products and make orders as a customer. I can login to admin pages, see the orders, add new products, see dashboard etc. But as soon as I hit the "Flush Magento Cache" -button from admin I will jump to Magento 404 page and Admin is not accessible.

Preconditions

  1. Magento CLI version 2.1.1 with sample data
  2. Ubuntu 16.04.1
  3. PHP 7.0.11-1
  4. Apache 2.4.18
  5. MySQL 5.7.15
  6. VMWare 8.5

Steps to reproduce

  1. Open magento admin page and login
  2. Go to System / Cache management
  3. Click "Flush Magento Cache" -button

Expected result

  1. Caches Flushed and return to admin pages

Actual result

  1. 404 error and admin not accessible

After hitting the 404 problem in Admin I have:

  1. Checked rewrite module is still running.
  2. sudo php ./magento cache:clean
  3. sudo php ./magento cache:flush
  4. MAGENTO2_ROOT > var > cache > DELETE ALL
  5. MAGENTO2_ROOT > var > page_cache > DELETE ALL
  6. MAGENTO2_ROOT > var > session > DELETE ALL
  7. MAGENTO2_ROOT > var > view_preprocessed > DELETE ALL
  8. MAGENTO2_ROOT > pub > static > DELETE ALL EXCEPT .HTACCESS
  9. cp MAGENTO2_ROOT/pub/.htaccess ../.
  10. sudo php ./magento setup:static-content:deploy
  11. sudo php ./magento indexer:reindex
  12. Checked the core_config_data table, no changes before and after problem
  13. Double Checked the admin uri from configs. (Have not changed it at any point)
  14. Checked Magento2_root/var/log files but nothing printed there
  15. Check the /var/log/apache2 access and error logs and nothing broken there
  16. sudo service apache2 restart

None of the above works to restore the admin back on. It always gives 404. Only way to fix it seems to be to make a new fresh install. Or now that I have it in VMWare I can go back to previous image and admin will work again just fine. But as soon as I hit the "Flush Magento Cache" -button the admin will break to 404 and no way to fix it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions