• Welcome to Sitemap Generator Forum.
 

Cron fails

Started by innovatrix, September 22, 2010, 02:15:31 PM

Previous topic - Next topic

innovatrix

What is wrong ... cron job failing.

Resuming the last session (last updated: 1970-01-01 00:00:00)
1 | 6 | 43.0 | 0:00:08 | 0:00:48 | 1 | 704.9 Kb | 1 | 0 | 704
20 | 15 | 357.5 | 0:00:16 | 0:00:12 | 3 | 629.3 Kb | 19 | 0 | 629
40 | 24 | 538.1 | 0:00:22 | 0:00:13 | 4 | 668.9 Kb | 37 | 12 | 668
60 | 4 | 959.2 | 0:00:40 | 0:00:02 | 4 | 781.0 Kb | 49 | 14 | 781
66 | 0 | 1,126.9 | 0:00:47 | 0:00:00 | 6 | 620.8 Kb | 51 | 0 | 620
<h4>Completed</h4>Total pages indexed: 51
<br>Creating sitemaps...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div>
Warning: fopen(/home/lmpadmin/public_html/generator/data/sitemap.html): failed to open stream: Permission denied in /home/lmpadmin/public_html/generator/pages/class.html-creator.inc.php(2) : eval()'d code on line 189

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lmpadmin/public_html/generator/pages/class.html-creator.inc.php(2) : eval()'d code on line 190

Warning: fclose(): supplied argument is not a valid stream resource in /home/lmpadmin/public_html/generator/pages/class.html-creator.inc.php(2) : eval()'d code on line 191
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br />Done, redirecting to sitemap view page.
<script>
top.location = 'index.php?op=view';
</script>


innovatrix

Cannot change permissions for 3 files in Data folder to 0666.   They are set to 644.

generator.conf
sitemap.html
sitemap2.html


innovatrix

Getting better ... why does it display last updated: 1970.  I ran cron twice to it should display today's date?

Resuming the last session (last updated: 1970-01-01 00:00:00)
1 | 6 | 43.7 | 0:00:06 | 0:00:37 | 1 | 706.9 Kb | 1 | 0 | 706
20 | 15 | 359.7 | 0:00:14 | 0:00:10 | 3 | 629.6 Kb | 19 | 0 | 629
40 | 24 | 541.1 | 0:00:19 | 0:00:11 | 4 | 668.9 Kb | 37 | 12 | 668
60 | 4 | 967.2 | 0:00:37 | 0:00:02 | 4 | 782.9 Kb | 49 | 14 | 782
66 | 0 | 1,137.3 | 0:00:44 | 0:00:00 | 6 | 620.6 Kb | 51 | 0 | 620
<h4>Completed</h4>Total pages indexed: 51
<br>Creating sitemaps...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div> |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br />Done, redirecting to sitemap view page.
<script>
top.location = 'index.php?op=view';
</script>




innovatrix

The last updated field never changes.  Multiple cron jobs run today.  What is wrong?

Resuming the last session (last updated: 1970-01-01 00:00:00)
1 | 6 | 43.7 | 0:00:08 | 0:00:50 | 1 | 707.0 Kb | 1 | 0 | 707
20 | 15 | 357.3 | 0:00:16 | 0:00:12 | 3 | 621.4 Kb | 19 | 0 | 621
40 | 23 | 533.7 | 0:00:22 | 0:00:12 | 4 | 668.4 Kb | 37 | 12 | 668
60 | 3 | 1,003.5 | 0:00:42 | 0:00:02 | 4 | 782.5 Kb | 49 | 14 | 782
65 | 0 | 1,128.6 | 0:00:47 | 0:00:00 | 6 | 620.0 Kb | 51 | 0 | 620
<h4>Completed</h4>Total pages indexed: 51
<br>Creating sitemaps...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div> |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br />Done, redirecting to sitemap view page.
<script>
top.location = 'index.php?op=view';
</script>




innovatrix

Last updated always displays 1970...  this is wrong!

Resuming the last session (last updated: 1970-01-01 00:00:00)

XML-Sitemaps Support

That is displayed when no previous update is found, you can simply ignore that since it doesn't affect sitemap generation in any way.

innovatrix


STOP!!!!!!!!!!!!  There is a previous update!!!!!!!!!  And if there is not a previous update, then your sitemap program does not work!!!   This needs to be fixed, not ignored.

XML-Sitemaps Support

I'm not sure I understand correctly, please explain in details what exactly is the issue you get with sitemap.

innovatrix

My issue is with the status note sent to my email after a sitemap cron job completes. The below note is an example.  Look at the first line: Resuming the last session (last updated:1970-01-01 00:00:00).  The line is NOT correct.  the "last updated" date should reflect the date and time of the last update.  Displaying 1970 ... is wrong wrong wrong.  Note should reflect date and time of last update.  Understand?
 
Resuming the last session (last updated: 1970-01-01 00:00:00)
1 | 6 | 43.7 | 0:00:08 | 0:00:50 | 1 | 707.0 Kb | 1 | 0 | 707
20 | 15 | 357.3 | 0:00:16 | 0:00:12 | 3 | 621.4 Kb | 19 | 0 | 621
40 | 23 | 533.7 | 0:00:22 | 0:00:12 | 4 | 668.4 Kb | 37 | 12 | 668
60 | 3 | 1,003.5 | 0:00:42 | 0:00:02 | 4 | 782.5 Kb | 49 | 14 | 782
65 | 0 | 1,128.6 | 0:00:47 | 0:00:00 | 6 | 620.0 Kb | 51 | 0 | 620
<h4>Completed</h4>Total pages indexed: 51
<br>Creating sitemaps...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div> |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
|  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br />Done, redirecting to sitemap view page.
<script>
top.location = 'index.php?op=view';
</script>

XML-Sitemaps Support

Hello,

that doesn't affect resulting sitemap, but we will take a note of that and that will be fixed in next version of sitemap generator.