Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Migrate to 2.0 promote is hanging

Started by Rick Beebe 5 days ago · 2 replies · 94 views
5 days ago

I'm testing a 1.7.53.3 migration to version 2.1 (or whatever version the migration plugin uses). I ran into one problem, which I previously posted about, in that of the 5 directory trees in side user/pages, only one got copied to grav-2. I manually copied the whole tree and did my testing and everything looks okay. So I went to the 'promote' step.

It's in the 'creating a timestamped backup' step and it says it backed up 11,000 files and is currently on

backup — system/src/Twig/DeferredExtension/DeferredNodeVisitorCompat.php

And it's stopped there. This is the second attempt. The first time, after waiting for 30 minutes to see if it was going to go any farther, my laptop crashed (unrelated to the migration). I went back in and resumed the migration and it stopped at the same place again.

I'm using NGINX on this site. Any ideas?

last edited 09/15/26 by Rick Beebe
3 days ago

Hi Rick, I’ve checked the migration code, and this looks like it could be getting stuck while finishing the backup ZIP. The Twig filename is probably just the last progress update, rather than a problem with that particular file. The counter updates every 200 files added to the archive, but the compression/write step happens afterwards and currently doesn’t report progress. NGINX or PHP-FPM timing out during that quiet period could explain what you’re seeing.

There was a related fix in migrate-grav 1.0.15 that excludes caches, logs, temporary files and previous backups from this backup, which substantially reduces the work involved. One catch: the wizard is copied to migrate.php in your site’s root directory when you first start a migration. Updating the plugin afterwards doesn’t update that existing copy when you resume. Since your original attempt was back in July, you may still be running the older wizard.

Could you check your migrate-grav plugin version, and search the root-level migrate.php for MG_BACKUP_SKIP_TOP? If that text is missing, the wizard doesn’t have the backup fix.

If it is the older copy, update the plugin to 1.0.15 or newer, then, once the previous migration request has stopped running, copy:

TEXT
user/plugins/migrate-grav/wizard/migrate.php

to migrate.php in the original site’s root, replacing just that file. Keep .migrating and your grav-2/ directory intact, including the pages you copied manually, then reopen the existing wizard URL and retry Promote. Don’t use Reset Migration or Restart Wizard for this, as those remove the staged install.

If your root-level wizard already has the fix, please check the NGINX and PHP-FPM error logs at the time it stalls, and whether a file in grav-2/backup/ continues growing or disappears. NGINX’s fastcgi_read_timeout and PHP-FPM’s request_terminate_timeout would be the next things to check. That should help distinguish a connection timeout from the backup process itself failing.

2 days ago

Thank you. I believe you are probably correct. However, after I posted the issue and knowing that I had good backups, I skipped that backup and simply followed the steps in the manual migration document to promote the 2.0 site and all is working now.

Suggested topics

Topic Participants Replies Views Activity
Support · by blu3prince, 2 days ago
0 45 2 days ago
Support · by alex, 3 days ago
2 85 2 days ago
Support · by Marcel, 1 week ago
1 139 3 days ago
Support · by complanar, 5 days ago
4 124 3 days ago
Support · by JakobDB, 2 weeks ago
1 127 2 weeks ago