Koozali.org: home of the SME Server

Awstats cron error

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Awstats cron error
« Reply #15 on: April 13, 2011, 11:26:40 PM »
I believe that I have done what that message is indicating. I say I believe because I think I understand what he is saying to do. What I did was edit /etc/cron.hourly/00awstats as indicated.


Hum...to me that´s on other file:
Code: [Select]
[root@marreco ~]# grep awstats /etc/crontab
45 */1 * * * root /var/www/awstats/awstats.pl -update -config=mail >/dev/null
[root@marreco ~]#
...

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: Awstats cron error
« Reply #16 on: April 14, 2011, 05:07:08 PM »
Bug 6594 opened (hopefully in the correct place as I have a history of making mistakes in there  :? )

http://bugs.contribs.org/show_bug.cgi?id=6594
Elliott

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: Awstats cron error
« Reply #17 on: April 14, 2011, 07:22:10 PM »
Hum...to me that´s on other file:
Code: [Select]
[root@marreco ~]# grep awstats /etc/crontab
45 */1 * * * root /var/www/awstats/awstats.pl -update -config=mail >/dev/null
[root@marreco ~]#

I thought in this build that crontab was built from templates somewhere. Are you saying that I need to edit crontab directly?
Elliott

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Awstats cron error
« Reply #18 on: April 14, 2011, 07:25:20 PM »
YES!
I´m saying you should TEST it by direct edit crontab file.
If it works for you, edit template files to reflect that.

Test directly on file allow you to have a QUICK return and to get back (just generate file again by expand-templates!)

« Last Edit: April 14, 2011, 07:34:53 PM by jader »
...

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: Awstats cron error
« Reply #19 on: April 14, 2011, 07:30:37 PM »
So at this point, on my testing machine I have edited the awstats template to reflect the desired path change.

I have typed:
Code: [Select]
expand-template /etc/crontab
and then I type:
Code: [Select]
service crond restart
In 15 minutes (45 after the hour) I shall see if we have a winner!

Thanks!

-E
« Last Edit: April 14, 2011, 07:51:36 PM by Elliott »
Elliott

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: Awstats cron error
« Reply #20 on: April 14, 2011, 07:45:54 PM »
Bingo! I only received the error from the production server this hour.

Thanks!

-E
Elliott

Offline Bozely

  • *
  • 75
  • +0/-0
Re: Awstats cron error
« Reply #21 on: May 11, 2011, 03:01:55 PM »
What is the template file location that is required to be amended to sort out this problem?

Sorry if I have missed it but i've check every file mentioned in this post and made the necessary amendments and expanded templates but no change.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Awstats cron error
« Reply #22 on: May 11, 2011, 04:29:41 PM »
What is the template file location that is required to be amended to sort out this problem?

Sorry if I have missed it but i've check every file mentioned in this post and made the necessary amendments and expanded templates but no change.

Please read the thread... just change the REAL files BEFORE... test it. There are instructions written by myself above.

Once the problem is solved, you´ll edit the template files. To understand template scheme read the docs.

Jáder

...

Offline Bozely

  • *
  • 75
  • +0/-0
Re: Awstats cron error
« Reply #23 on: May 12, 2011, 01:11:27 PM »
"Read the docs"! Teach a man how to fish eh? Well I caught some fish and i'm willing to share mine.

If your happy it works edit the template file found in the following location.

Code: [Select]
pico /etc/e-smith/templates-custom/etc/crontab/awstats
Expand your templates and restart the service as mentioned above.

As a side note, sometimes it's nice to just read a post that covers a problem from top to bottom with straight answers not just regarding the problem itself but the to niggly questions too. I get this whole principle of helping people help themselves and agree to some extent but the net effect in most cases of not providing answers to small questions/details in posts is potentially a bunch of confused newbies forever asking silly questions (like me) creating LOTS of irritating posts for all the clever people to waste time offering variations of "self help" advice on, where as if I had found the above info in the thread I would never have posted and surely in the grand scheme of things everybody would save time? hmmmm  :?
« Last Edit: May 12, 2011, 01:16:14 PM by Bozely »