peo

*
  • *
  • 9
No e-mail report of completed creation after cronjob
« on: March 08, 2011, 09:14:50 AM »
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
Re: No e-mail report of completed creation after cronjob
« Reply #1 on: March 09, 2011, 10:56:52 AM »
Hello,

please try to change the email address configured to receive notifications, may be that will help.

peo

*
  • *
  • 9
Re: No e-mail report of completed creation after cronjob
« Reply #2 on: March 17, 2011, 11:01:07 AM »
Hi Oleg,

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

Regards,
Peo

peo

*
  • *
  • 9
Re: No e-mail report of completed creation after cronjob
« Reply #3 on: March 17, 2011, 11:57:11 AM »
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
Re: No e-mail report of completed creation after cronjob
« Reply #4 on: March 17, 2011, 12:04:49 PM »
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

*
  • *
  • 9
Re: No e-mail report of completed creation after cronjob
« Reply #5 on: March 17, 2011, 12:35:32 PM »
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
Re: No e-mail report of completed creation after cronjob
« Reply #6 on: March 18, 2011, 02:36:14 PM »
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

*
  • *
  • 9
Re: No e-mail report of completed creation after cronjob
« Reply #7 on: March 18, 2011, 02:50:28 PM »
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

*
  • *
  • 9
Re: No e-mail report of completed creation after cronjob
« Reply #8 on: March 22, 2011, 10:51:47 AM »
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?
Re: No e-mail report of completed creation after cronjob
« Reply #9 on: March 22, 2011, 12:22:27 PM »
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

*
  • *
  • 9
Re: No e-mail report of completed creation after cronjob
« Reply #10 on: March 22, 2011, 09:05:05 PM »
Hi Oleg,

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

Regards,
Peo
Re: No e-mail report of completed creation after cronjob
« Reply #12 on: May 27, 2011, 10:17:01 AM »
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.
Re: No e-mail report of completed creation after cronjob
« Reply #13 on: May 28, 2011, 08:57:49 AM »
Hello,

try to add this setting in generator/data/generator.conf file:
<option name="xs_email_f">1</option>
Re: No e-mail report of completed creation after cronjob
« Reply #14 on: May 28, 2011, 10:37:15 AM »
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?