Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
<message>Image file missing. Creating image file.</message>
<message>Original file is missing!!</message>
When you run two crons jobs simultaneously, you will get a large number of these messages when transferring pictures in the cron report. Obviously one cron job is grabbing the images and transferring them to S3 before the other cron job. However, I see no adverse reaction on the front-end.
Technically speaking, what is the code actually doing when this message appears?
******
Second question...
Additionally, is this command here limiting the length of the cron job at line 22 on the cron.php?
public function run() {
jimport('joomla.filesystem.file');
set_time_limit(120);
If you can have a developer drop by and provide an explanation, it will be appreciated.
#1 some of files maybe dont have the original file, maybe deleted by 3rd party or accidently deleted, this is very rare case, and on cron job we re-creating the image file, to avoid error during the transfer processes, this issue was happened long time ago and make the transfer to S3 stuck.
#2 may I know what limit do you mean? limit transfer image pre cron ? by default it will be transfered 5 photos on each cron, to change it you can add new paramter inside this function $this->_processPhotoStorage(); change it to $this->_processPhotoStorage(10); so it will transfer 10 photos on each cron
1. Yes, the original file is missing because there are two instances of the cron running simultaneously in this test. The other cron job has already processed those images. My real question is, if I want to have two cron jobs running simultaneously, in a load balanced environment with two web servers, do you foresee it causing any harm? (This is for a high-traffic site)
2. I appreciate the information. I already have those settings increased significantly. More specifically, my question is does the command I referenced place a time limit on how long the cron job can run? IE: At 120 seconds will it stop the cron if it is not finished?
1. we never tried it before and I dont have any experience with this. But anyway you run cron simultaneously for 1 same website? if yes I dont recommened run on the same time, you can set on different time to avoid any conflict.
2. This is depend your php and mysql configuration setting, please you make sure set the maximum limit for these configurations