Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-pull-production fails because of memory_limit even if memory_limit would be set higher in php.ini #183

Open
marttihyvonen opened this issue May 28, 2021 · 0 comments
Labels

Comments

@marttihyvonen
Copy link

marttihyvonen commented May 28, 2021

Looks like wp-pull-production-db gets only 1024MB memory, even if memory limit would bet set higher from php.ini

DEVELOPMENT [@alvarpet:~] $ wp-pull-production-db
Saving backup of current development database in /data/db/pre-production-pull-backup.sql...
Success: Exported to '/data/db/pre-production-pull-backup-20210528-151315.sql'.
Define new and old siteurl for later search-replacing...
[email protected]'s password: 
==> This is a normal WordPress single install.
==> Production site URL: https://alvarpet.com
==> Development site URL: https://alvarpet.local
Is the information above correct? (y/n): y
Pulling database from production with 'wp db export'...
[email protected]'s password: 
PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 534773792 bytes) in phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/utils.php on line 546
Success: Imported from 'STDIN'.
Search-replacing https://alvarpet.com with https://alvarpet.local...
Success: Made 0 replacements.
Flushing cache to ensure new database contents is used on site
Success: The cache was flushed.
DEVELOPMENT [@alvarpet:~] $ php -i | grep "memory_limit"
memory_limit => 2048M => 2048M
@ypcs ypcs added the bug label Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants