10up / MU-Migration

This WP-CLI plugin makes the process of moving sites from single WordPress sites to a Multisite instance (or vice-versa) much easier. It exports everything into a zip package which can be used to automatically import it within the desired Multisite installation.
MIT License
329 stars 47 forks source link

n00b issue: Unable to create archive #80

Closed Sortova closed 4 years ago

Sortova commented 4 years ago

Running into an issue trying to create my first archive.

On Ubuntu 18.04.4 LTS with php 7.2, when I run:

wp mu-migration export all single-site.zip --themes --plugins --uploads --verbose

I get

Exporting site meta data... Exporting users... Success: 2 users have been exported Exporting tables Success: The export is now complete Zipping files.... Warning: Unable to create archive

Could be something on my end, so I was hoping there would be a way to get better debug information. I would expect it to create the archive next.

Sorry if this question has been answered previously, but I've only found one similar reference and that user was on Windows.

Sortova commented 4 years ago

Hrm - must be something with that site. I ran it against another site on the same system:

Exporting site meta data... Exporting users... Success: 33 users have been exported Exporting tables Success: The export is now complete Zipping files.... Success: A zip file named single-site.zip has been created

Note that the zip took a long time. On the other site it fails almost immediately.

Sortova commented 4 years ago

Final update for the evening: I have three websites I'd like to move. The migration worked for one of them. The others die pretty quickly with "unable to create archive". Looking for any kind of log message now to figure this out.

nicholasio commented 4 years ago

Are all of the sites on the same server? That error is most likely indicating the zip extension is missing.

Sortova commented 4 years ago

Yeah - all three are on the same server. Really beating my head against the wall on this, as the big, complicated site moved without much of an issue but these two smaller sites are being a pain. Seems weird it would work for one and not the others. I made sure all three sites were completely up to date with inactive plugins removed.

I assume that MU-migration doesn't really log anything? Outside of --verbose I'm not sure how to get more information as to why it is dying.

Sortova commented 4 years ago

One more data point: I took the smaller of the two sites and moved it to the new server as a single site. MU-migration fails with the same error, although that site is running Ubuntu 20.04 with PHP 7.4.

Sortova commented 4 years ago

No worries. I'll do it manually. Thanks for making one of the site moves easier.