XML Sitemaps Generator

Author Topic: No e-mail report of completed creation after cronjob  (Read 13847 times)

peo

  • Registered Customer
  • Approved member
  • *
  • Posts: 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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

peo

  • Registered Customer
  • Approved member
  • *
  • Posts: 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

  • Registered Customer
  • Approved member
  • *
  • Posts: 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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

peo

  • Registered Customer
  • Approved member
  • *
  • Posts: 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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

peo

  • Registered Customer
  • Approved member
  • *
  • Posts: 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

  • Registered Customer
  • Approved member
  • *
  • Posts: 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?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

peo

  • Registered Customer
  • Approved member
  • *
  • Posts: 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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
Re: No e-mail report of completed creation after cronjob
« Reply #11 on: March 22, 2011, 10:36:14 PM »
Can you provide an example URL that is not included in sitemap?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

Troglobyte

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: No e-mail report of completed creation after cronjob
« Reply #12 on: May 27, 2011, 09: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.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
Re: No e-mail report of completed creation after cronjob
« Reply #13 on: May 28, 2011, 07:57:49 AM »
Hello,

try to add this setting in generator/data/generator.conf file:
<option name="xs_email_f">1</option>
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

Troglobyte

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: No e-mail report of completed creation after cronjob
« Reply #14 on: May 28, 2011, 09: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?

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2