cancel
Showing results for 
Search instead for 
Did you mean: 

Cant Not Allocate Memory

Cant Not Allocate Memory

Hello trying to install a extension after kicking the crons a few times i am now getting the error can not allocate memory. I have changed all my settings and allocated 2G to PHP but still seem to get the error here is the error screenshot.

 

Hope someone can help.

Screen Shot 2018-10-16 at 14.06.04.png

4 REPLIES 4

Re: Cant Not Allocate Memory

@daniel_keay1Can you try to run the command as below

 

 

php -dmemory_limit=1G update/cron.php

If that works then possibly you may have multiple version of PHP and you may be updating the memory limit in the PHP which you are not using.

 

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

 

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Cant Not Allocate Memory

Hello ran that command and got another error to check the update.log 

 

i have done this and this is what im getting

 

[2018-10-17 20:03:14] update-cron.WARNING: Update is already in progress. [] []

Re: Cant Not Allocate Memory

@daniel_keay1

There is a hidden file in {magento}/var called ".update_in_progress.flag", deleting this allows to restart the upgrade process. If it does not work follow the instructions below.

 

Please go through the below link it will help you resolve the issue. There are couple of files under var directory may need permissions to resolve the issue you have.

 

https://github.com/magento/magento2/issues/3166

 

You can also run all the 3 commands you were running initially with the additional parameter I added in the command I provided to make sure things are working for you!

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Cant Not Allocate Memory

Thank you for your reply getting this error now

 

toldvapecoco is not in the sudoers file.  This incident will be reported.