I'm getting an error on running update/cron.php
I setup the cronjob according to the documentation. But it gives the following error:
PHP Warning: require_once(update/vendor/autoload.php): failed to open stream: No such file or directory in update/app/bootstrap.php on line 13
PHP Fatal error: require_once(): Failed opening required 'update/vendor/autoload.php' (include_path='.:') in update/app/bootstrap.php on line 13
I found that the path update/vendor/autoload.php is wrong. The autoload.php should be at /vendor instead. Is it a bug?
2 Answers 2
I finally figure out the issue. I have to run composer install at <magento_dir>/update/. 
- 
 3That is correct. But surely this should be done automatically when doing a composer install for magento2? Is this a bug? Still happens in 2.1.3tecjam– tecjam2017年01月25日 16:25:19 +00:00Commented Jan 25, 2017 at 16:25
- 
 what kind of precautions we need to take care?Nagaraju Kasa– Nagaraju Kasa2019年01月27日 12:48:51 +00:00Commented Jan 27, 2019 at 12:48
- 
 magento.stackexchange.com/questions/259389/… please adviseNagaraju Kasa– Nagaraju Kasa2019年01月27日 12:50:12 +00:00Commented Jan 27, 2019 at 12:50
- 
 @Paul can u guide me how to fix this? ASAPNagaraju Kasa– Nagaraju Kasa2019年01月28日 06:16:12 +00:00Commented Jan 28, 2019 at 6:16
According to an internal Magento issue, that error indicates cron is running out of memory. Try increasing your PHP memory_limit to at least 1G; in fact, I believe we're going to start recommending 2G but that's not confirmed.
After you do that, restart your web server.
And by the way, sometimes you have two php.ini files: one for the PHP CLI and one for the web server plug-in. Change them both. See this to determine if you have one or two.
- 
 1It is not a memory issue. The error saidupdate/vendor/autoload.phpdoes not existfotfs– fotfs2016年07月29日 04:04:00 +00:00Commented Jul 29, 2016 at 4:04
- 
 This is the error I see in the internal issue. The cause is attributed to running out of memory:Warning: require_once(/magento2/update/vendor/autoload.php): failed to open stream: No such file or directory in /magento2/update/app/bootstrap.php on line 13Steve Johnson– Steve Johnson2016年07月31日 14:20:13 +00:00Commented Jul 31, 2016 at 14:20
- 
 I have setmemory_limit = 2Gbut still failedfotfs– fotfs2016年08月03日 11:15:41 +00:00Commented Aug 3, 2016 at 11:15
- 
 If you have twophp.inifiles, you must setmemory_limitin both. If you rule that out, and you knowautoload.phpexists, then I don't know, sorry.Steve Johnson– Steve Johnson2016年08月08日 15:51:39 +00:00Commented Aug 8, 2016 at 15:51
- 
 I have double checked and the memory limit is set correctly. But the error still happens.fotfs– fotfs2016年08月09日 09:16:40 +00:00Commented Aug 9, 2016 at 9:16