Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Error: Impossible to create the file to export multisite #100

@JOY

Description

@JOY

Describe the bug

I got these error when trying to export my multisites:

anh_legiang@grow:/home/grow.vn/public_html$ wp mu-migration export all site.zip --plugins --themes --uploads
PHP Warning:  Version warning: Imagick was compiled against ImageMagick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
PHP Notice:  Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 115
PHP Warning:  Use of undefined constant ‘WP_MEMORY_LIMIT’ - assumed '‘WP_MEMORY_LIMIT’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
PHP Warning:  Use of undefined constant ‘256M’ - assumed '‘256M’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
Exporting site meta data...
PHP Warning:  file_put_contents(mu-migration-1611848399grow.json): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 452
Warning: file_put_contents(mu-migration-1611848399grow.json): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 452
Exporting users...
PHP Warning:  fopen(mu-migration-1611848399grow.csv): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 187
Warning: fopen(mu-migration-1611848399grow.csv): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 187
Error: Impossible to create the file

If I tried to use root:

anh_legiang@grow:/home/grow.vn/public_html$ sudo wp mu-migration export all site.zip --plugins --themes --uploads --allow-root
sudo: unable to resolve host grow: Name or service not known
PHP Warning:  Version warning: Imagick was compiled against ImageMagick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
PHP Notice:  Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 115
PHP Warning:  Use of undefined constant ‘WP_MEMORY_LIMIT’ - assumed '‘WP_MEMORY_LIMIT’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
PHP Warning:  Use of undefined constant ‘256M’ - assumed '‘256M’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
Error: 'mu-migration' is not a registered wp command. See 'wp help' for available commands.

Steps to Reproduce

  1. Install MU-Migration
  2. CD to public_html directory
  3. Run the command: wp mu-migration export all site.zip --plugins --themes --uploads

Screenshots, screen recording, code snippet

No response

Environment information

Ubuntu 22.01

WordPress information

6.1

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions