1

I created a dump of my live database and imported it into staging by using n98-magerun.

./n98-magerun.phar db:import live.sql

But now my website is in maintenance mode, even though there is no maintenance.flag file.

I also tried to deactivate maintenance mode by using n98-magerun:

n98-magerun sys:maintenance

Response: Maintenance mode off

But it still fails and the maintenance site shows.

  • Where it shows maintenance in live or staging? Can you post a screenshot? – Sukumar Gorai Sep 10 '18 at 10:25
  • Did you get any issue in your log files ? – Kozame Sep 10 '18 at 10:27
  • @SukumarGorai, it shows the maintenance page on staging now. – Black Sep 10 '18 at 10:27
  • Can you post a screenshot? – Sukumar Gorai Sep 10 '18 at 10:28
  • 1
    @Black Magento is trying to re-create that table even though it already exists. You can try deleting the table and running n98-magerun.phar sys:setup:run to run the setup scripts manually to see if there are anymore errors. – Matt Antley Sep 10 '18 at 10:39
1

Once you've imported a SQL file into a Magento database it's best to run n98-magerun.phar sys:setup:run to try manually running the setup scripts (Instead of letting the frontend manage this) so you can easily view any errors that occur during setup.

In this case, Magento is trying to re-create table magerecaptcha even though it already exists. You can try deleting the table and running n98-magerun.phar sys:setup:run again to see if there are any further errors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.