Possible solutions of your questions

  hosting
<< Previous       PHP Fatal error: Maximum execution time of 360 seconds

Question: Hello.Not for the first time you get the error \"PHP Fatal error: Maximum execution time of 360 seconds\" when working the crown. I was not exactly sure at what point this happens. Spoke to the server admins, which are copied pictures. Now I appeal to You. If you look at the code, the error occurred at the time of entry to the server (Aragast).Here is the error message:[15-Jun-2016 17:06:10 Europe/Kiev] PHP Fatal error: Maximum execution time of 360 seconds exceeded in /home/leonenko/fulltorg.com/admin/cron/cron_sima_photo_700px.php on line 100Если to look in the folder, you will see that the file generated (name is open for writing), but data not recorded. Here is the file: ftp://[email protected]/fulltorg.com/imgdb/fulltorg_2/160493-0.jpg = size 0 bytes.Please check its part in connection with which there is such delay. PS: before that, everything worked perfectly , it downloaded a little more than 15 thousand files, and should be much more.
Answer:

Hello

limits scripts - 90s

the disk you have not filled

run the script again

Question: Yes it works God knows how long and breaks are unpredictable. I need the stability. At the limits of work - I know. Asked to find the cause to fix.Stop writing at some point on the server.
Question: and here is the question: what is happening?
Question: The script is 100% working.
Answer:

 the error cause is specified - exceeds limit of execution time

Question: the fact of the matter is that the error occurs at the time of writing to the disk server! This is the problem. Why suddenly there is this pause?
Answer:

at what point in the recording? how did you determine that this is the time of the recording? and Gede the file previously?

Question: I`ll start first:1. starts crowns, which copies the files to server2. this crowns a great job on the 15 and a half thousand files, and then fell off at ошибке3. the line number of the error that has fallen off at the moment of entry on server this connection came to You to check out in connection with what happened in the reading interval. According to the logs available to me, not seen this information. Crowns have just started to work.
Answer:

Kron is a simple alarm clock, it does not run, he runs. Kron himself is doing absolutely nothing in addition to performing along given You the command

Kron doesn`t work fulfills the script, the problem should be sought in the script . what does it mean \"spent 15 thousand files\"  ? what exactly does this mean?

and where was the file?

TK.to no changes done, the problem is rather vsgo has nothing to do with the server and is connected with the source of Your pictures, maybe You blocked access to him.

Question: Damn, well do You think that I don`t know what is Kron?Let`s write again. 1. There is a script. Which runs on a schedule (never to finish). This script copies pictures OFFICIALLY from the website of the Sims to us. It works for a long time, so just \"start again\" is not the solution.2. The error occurs constantly and the first thing I went right to the file provider. Once they are fixed. Now they have everything exactly. But error will not go away.3. The error that is recorded in the error_log, pays attention to line 100. This line (look in code) is it physical already writing data to a file.4. as for \"worked on 15 thousand\"... This script is downloaded to the server 15 thousand photos. In total about 300 thousand Output:1. script рабочий2. the problem occurs, or when the \"kickback\" of the file or when it was recorded. 3. About the impact made contact and talked with the company.4. now asked You to check why \"stuck\" on the record. You have logs, which I have no access. Them something You can test and tell?
Answer:

the limit for the script is 90 seconds. the script may not work indefinitely.

where were the photos BEFORE the write? they`re not in the air hung?

reduce the number of files downloaded at a time and proveriat the script

Question: Gee, well, it`s an evasion of clean water.As already mentioned:1. picture is taken from another server and written to the server arahet. What do You mean by \"where was I...?\"2. Single pass is for 1 photo.3. The script is 100% working, it downloaded to the server 15 thousand files. Worked more than 3 hours.
Answer:

you say that is not written, You have an error in the recording process.

if a single pass takes one photo then what have 15000 files and time records.

on the server aabsolute nothing changed if the script worked then it should work, except he doesn`t have rabatte more than 3 hours, the limit of run-90 seconds

Question: Are you kidding me? Again.1. There is a script. Which runs on a schedule. This script OFFICIALLY copy pictures from website Sims to us. It works for a long time, so just \"start again\" is not the solution. 2. In the course of their work (more than 3 hours, the start of the script using task scheduler, CRON) it downloaded to the server 15 000 files. 3. For download taken SINGLE file on someone else`s server and stored on the server arahet. The operation is repeated until then, until you have downloaded all photos, or \"off\" (as in our case).4. If an error occurs, your server generated file. It says: [15-Jun-2016 17:06:10 Europe/Kiev] PHP Fatal error: Maximum execution time of 360 seconds exceeded in /home/leonenko/fulltorg.com/admin/cron/cron_sima_photo_700px.php on line 100V code shows that this spot is the entry of the received data to a file. But for some reason it is sooooo long and it`s timeout for this particular operation.PS: read pliz \"for themselves\" about the 90 sec limit of the script when it is run through the crowns and through the browser.
Question: Yes, another thing: the script the scheduler runs once and it runs more than three hours without a break.
Answer:

from your description it is not clear which file is being recorded. recording stops at a particular file, on any specific quantity or at certain times?

the script should not rabotti more than 90 seconds. 3 hours of the script in any way fails to be guaranteed.

Question: You will argue with me regarding the script with a run through the crowns? Go to the folder ftp://[email protected]/fulltorg.com/imgdb/fulltorg_1 in the folder ftp://[email protected]/fulltorg.com/imgdb/fulltorg_2Они formed a working script that runs via CRON once First file is written 13-50 (folder fulltorg_1), the latest in 17-06 (folder fulltorg_2). As I said: read.... 90 sec is the limit run through the browser. Not through crowns. If we follow Your logic, then no one krupnomasshtabnye the script would just fail to work completely. Them little 90 seconds.
Question: In short, I realized that in this matter You can`t help.The ticket is closed. The conclusions are made.
Answer:

all right, the limit operation of the script through cron even though using the browser - 90 sec. not 3 hours , and 90 sec. is Mr. logic and php settings are never changed. repeat , on the hosting server configuration has NOT changed! scripts zapresheno rabatte such a long time.

 


<< Previous