user-pic

Holy Sweet Mother of Cron Job Errors

Vote 0 Votes

So I'm trying to get my cron job running on DreamHost. I know I'm running run-periodic-tasks every ten minutes, but the cron job output looks like something from a horror movie:
---
Can't locate MT/Bootstrap.pm in @INC (@INC contains: lib ../lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/myusername/mydomain.com/myblogdirectory/tools/run-periodic-tasks line 44.
---

Can anybody help?

Thanks!

Reported on Movable Type 4.2

3 Replies

| Add a Reply
  • Assuming you've given the run-periodic tasks 755 permissions, here's what mine looks like.

    */30 * * * * cd /home/username/mydomain.com/cgi-bin/mt; ./tools/run-periodic-tasks>/dev/null 2>&1

    There's a space between the semi-colon and the period.

    I too use DreamHost, but had problems with the cron jobs in the web panel. I prefer to have a text file in the root folder and use the command line to set and reset the cron jobs.

    There's a very good article on crontab in the DreamHost wiki. http://wiki.dreamhost.com/Crontab

  • I had similar path errors, also on Dreamhost, but have it working now. According to my install notes, all I've done is run the cron job thus:

    cd /home/[user]/[path-to-mt]; perl ./tools/run-periodic-tasks > /dev/null
    

    I get occasional emails from cron when something messes up, but it's been surprisingly stable for a few weeks now, running Action Streams fetches and publish queue stuff (I don't fully understand the benefits and limitations of the publish queue, so I just set the 'high-priority background publishing' profile).

    Now if only I could get FastCGI stable on Dreamhost... :-)

  • Oh joy. Not only did I post a dupe, but Markdown formatting isn't working either. Heck, not even line breaks are working.

Add a Reply

Forum Groups

151 405

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

36 144

Last Topic: Installation can't finish by Drazend on Nov 10, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

34 98

Last Topic: Ajax Rating Plugin by kiran on Oct 17, 2008