Cronjob problems

6 views
Skip to first unread message

Konzertheld

unread,
Apr 25, 2011, 11:28:37 PM4/25/11
to habari-users
Hello,
another problem with my Habari 0.8-alpha installation that first
occured before the 0.7 release. I had a talk in IRC about this one
already, but it did not lead to a solution.

The problem description is simple: My scheduled posts are never
published.

According to the IRC talk, I installed the CronTab plugin, it showed
that the job for publishing scheduled posts did never run. It also
does not run when I trigger it manually. The other jobs seem to be
okay.

I am not sure whether this is a misconfiguration in my Habari or on my
server. It is obviously not a Habari bug, 0.7 runs fine on another
server. As there are two Habari installations with this problem on the
same server, it is propably a server problem, but I need more
information to contact my webhoster. Example: What is meant by
"cronjob"? Those aren't actual cronjobs, right? I don't have server
access so I don't believe there are actual cronjobs installed.

Again, any idea is appreciated. I don't even know where to start this
time, as I have no idea what is going wrong.

Regards,
Konzertheld

Colin

unread,
Apr 26, 2011, 1:53:37 AM4/26/11
to habari...@googlegroups.com
Hi Konzertheld

You are right, Habari's "cron" is not the same as the OS cron.  It is effectively just a time based hook that causes an action to be run when your Habari site is accessed on or after the date you've set in your cronjob.  The "job" is stored in the database and when the site it viewed, CronTab::run_cron() checks which entries need to be "run" and runs them.

So provided you have valid entries, and the system time and timezone is correct, your "cronjobs" should run when someone views your site, admin included.

HTH
Colin



--
To post to this group, send email to habari...@googlegroups.com
To unsubscribe from this group, send email to habari-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/habari-users



--
Colin Seymour
Blog: http://colinseymour.co.uk
Tech Stuff: http://lildude.co.uk
Barefoot Running: http://barefootrunner.co.uk
IRC: lildude #habari

Konzertheld

unread,
Apr 26, 2011, 11:07:57 PM4/26/11
to habari-users
Hey...
um... wonder healing... the problem just... disappeared. Very strange.
It was there for weeks, I reproduced it again and again and now it is
gone. Weird. Thanks for your reply anyway.

Konzertheld

On 26 Apr., 07:53, Colin <lild...@gmail.com> wrote:
> Hi Konzertheld
>
> You are right, Habari's "cron" is not the same as the OS cron.  It is
> effectively just a time based hook that causes an action to be run when your
> Habari site is accessed on or after the date you've set in your cronjob.
> The "job" is stored in the database and when the site it viewed,
> CronTab::run_cron() checks which entries need to be "run" and runs them.
>
> So provided you have valid entries, and the system time and timezone is
> correct, your "cronjobs" should run when someone views your site, admin
> included.
>
> HTH
> Colin
>
Reply all
Reply to author
Forward
0 new messages