Problem/Motivation

New version, old error. :-)

Steps to reproduce

Brand new site (Drupal 9.0.7), nothing really inside, backed up to download, it stays in maintance mode.

CommentFileSizeAuthor
#6 3180214-6.patch629 byteslarisse

Comments

djg_tram created an issue. See original summary.

djg_tram’s picture

Issue summary: View changes
damienmckenna’s picture

Category: Bug report » Support request

When you say it "stays in maintenance mode", did you manually put it into maintenance mode before yous tarted the backup, or did it turn on maintenance mode when the backup started? What sort of backup did you - just the database, the full site or the files system? What version of PHP is on the server?

djg_tram’s picture

No, not manually. I asked BM to do it for me, as per normal. PHP is 7.4.12. Quick backup, Default Drupal Database, to Download, my regular profile that uses Gzip, has the Take site offline on and nothing else was changed from the default. There are no entries in the log, the backup is perfect, just that it stays in maintenance mode.

damienmckenna’s picture

Title: Site stays in maintenance mode » Site does not switch out of maintenance mode after backup finished
Version: 5.0.0-rc2 » 5.0.x-dev
Category: Support request » Bug report

Clarifying the title.

larisse’s picture

Status: Active » Needs review
StatusFileSize
new629 bytes

Hi!

Debugging the code, I had notice that when I save my backup file, the saveFile function is called and the section is destroyed in exit() function (DrupalBrowserDownloadDestination.php file). This way, all of module needs to do after save file, is not done, like for example, let the user know that backup is made with success and switch out of maintenance mode. So seems logical to me remove the exit() function, for the code keeps making the steps after save the backup file.

  • DamienMcKenna committed 790cdc4 on 5.0.x authored by larisse
    Issue #3180214 by larisse, djg_tram, DamienMcKenna: Site does not switch...
damienmckenna’s picture

Status: Needs review » Fixed
Parent issue: » #3143649: Plan for Backup and Migrate 5.0.0

I tested this and it worked. Thank you. Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.