Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
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.

Image file missing. Creating image file

8 years 11 months ago
  • Steven's Avatar
    Topic Author
  • Steven
  • Offline
  • Fresh Boarder
  • Posts: 50
  • Thank you received: 3
Licenses:
JomSocial Active AdAgency Expired iSEO Expired Socialize Expired

Support,

<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.

Blessings,
Steven

8 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Steven,

#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

thank you

8 years 11 months ago
  • Steven's Avatar
    Topic Author
  • Steven
  • Offline
  • Fresh Boarder
  • Posts: 50
  • Thank you received: 3
Licenses:
JomSocial Active AdAgency Expired iSEO Expired Socialize Expired

Dimas,

Thank you for the quick reply.

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?

Thank you and Blessings,
Steven

8 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

HI Steven,

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

Attachments:
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW