• Welcome to Sitemap Generator Forum.
 

No e-mail report of completed creation after cronjob

Started by peo, March 08, 2011, 09:14:50 AM

Previous topic - Next topic

peo

I've scanned the forum after a solution to why I don't recieve an e-mail notification when the sitemap has been created.
The server does allow scripts to send e-mails (I'm using this feature on my main site for customer contact and orders.)

Dear Oleg, do you have any idea of what is causing this issue?

Regards,
Peo


peo

Hi Oleg,

Changing the e-mail adress didn't solve the issue.
Any other ideas?

Regards,
Peo

peo

Very strange...
I just ran the generator manually and NOW the e-mail was sent.
It seems like there is an issue with runnig the generator via a cronjob.
Also noticed that running via cronjob doesn't create a new site map, even if it the timestamp says it is new. No new links/pics etc in the sitemap even though I have uploaded several pics and written news...
Very very odd and strange...

Any ideas Oleg???

regards,
Peo

XML-Sitemaps Support

Perhaps in command line php is running with different settings that have mail() function disabled or misconfigured.

Do you mean that the "last modification" date on sitemap.xml changed, but not the contents? Do you have 0666 permissions set for that file? Also, please set 0666 permissions for sitemap.xml copy in generator/data/ folder.

peo

Hi Oleg,

Are there differences when starting the generator manually or via a cronjob?

When running manually the sitemaps changes sizewise and finding new links, but not when running via cronjob.
Running via cronjob changes the las modification, but not the content, wilst starting the generator manually does.

The permissions are set as requested and need no change.

Regards,
Peo

XML-Sitemaps Support

It is possible that cron task process is running with another user access rights, and it's unable to modify the files in generator folder.

peo

Hi Oleg,

Looking in the changelog tonight run of the generator did change the content of the sitemaps, but no e-mail was sent to me.
Very strange, I'll have a chat with my webhost and ask the level of authority the cronjob has.

However, it seems odd that running the generator manually does trig the sending of e-mail report, but running the generator via a cronjob doesn't. I thought that the cronjob only started the generator and nothing else...Meaning that once the generator is started, either manually or via cronjob, the process then was exactly the same.

Regards,
Peo

peo

This is the last 6  entries in the changelog

22    2011-03-17 12:35    8,687    1,411.50s    331.75    1000    566    0    3802
23    2011-03-18 00:41    8,661    1,434.70s    328.50    1000    1000    0    3824
24    2011-03-19 00:18    8,661    1,434.70s    328.50    0    0    0    3824
25    2011-03-20 00:18    8,661    1,434.70s    328.50    0    0    0    3824
26    2011-03-21 00:18    8,661    1,434.70s    328.50    0    0    0    3824
27    2011-03-22 00:18    8,661    1,434.70s    328.50    0    0    0    3824

Item 22 & 23 are manually started and 24-27 are started via cronjob.
In every log there has been changes to the homepage. From my point of view something is very very wrong.
Could you please have a llok at this Oleg?

XML-Sitemaps Support

Hello,

if you are using "temporary files" setting in generator configuration, I'd recommend to disable it as it might cause sitemap generator using pages from the cache.

peo

Hi Oleg,

The "temporary files" setting is disabled and has been troughout this issue and problem solving.

Regards,
Peo


Troglobyte

Have you found a solution for this? I have exactly the same problem, mail is sent when I run generator manually but is not sent when running via cronjob. This seems to be a 5.0 issue cause I have older versions installed in other sites (similar ones and hosted in the same server) and they run fine. Any advice? May be install an older version? Thanks in advance.


Troglobyte

Hi,

I have added the code and asked hosting support to execute cron and it worked! I got my mail this time! Anyway to be sure I will wait for Sunday, when cron job is set to run auto. I will confirm here if all works as expected.

One more question. It is normal that I have a copy of all sitemaps inside the data folder?