default userpic

Errors with run-periodic-tasks cron job

Vote 0 Votes


I'm running the run-periodic-tasks like so:

0,10,20,30,40,50 * * * * cd /users/home/username/cgi-bin/mt/; perl ./tools/run-periodic-tasks

And I'm receiving this error:

Use of uninitialized value in string eq at lib/MT/ArchiveType/Author.pm line 123.
Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/vendor_perl/5.8.0/i386-solaris-thread-multi/XML/Parser/Expat.pm line 474. updating flickr events for username

This is MT "motion" running on Solaris. I've noticed some other problems with *nix libraries that don't quite work "as is," usually because of some file locking issues or something. This looks a bit different...

Any pointers? Should I be posting this back to the MT development team?

Many thanks in advance,

Phillip.

Reported on Movable Type 4.2

11 Replies

| Add a Reply
  • That's not an error, that's a warning.

  • Hi Mike,

    While that is true, it does appear like the script is not executing properly, i.e., my understanding is that run-periodic-tasks will re-publish the main index and similar pages that I've set to be published via the publish queue.

    However, those pages are not being republished.

    Perhaps I'm missing something?

    Phillip.


  • I'm using the "Action Streams," and I assumed those were equivalent to setting the "please republish me" flag, or what-have-you, that the run-periodic-tasks would check for. However, that could be a totally off-base assumption.

    Maybe the better question is: How do I republish the main indexes regularly, regardless of whether they technically *need* to be republished?

    Many thanks in advance,

    Phillip.

  • I have seen many warnings that has to do with a few Action Streams, but never Flickr. These warnings seem to be attributed to the action stream in question, not Perl running on your setup.

    If you are setting your Author Archives to be published with the publish queue I would suggest two things: maybe a less aggressive schedule, like every 15 min, and turning off Action Streams or just Flickr and seeing if the issue still persists.

    But even if an action stream or two are not working properly, it should not stop the republishing of that archive.

    Ken

  • Hi Ken,

    Many thanks for the response. I guess I'm missing something. Basically, here's what I'm seeing:

    * I post something to (let's say) Twitter
    * I would expect that at some point the main index would need to get updated to display that Action (using the default Motion template set, where actions are shown "in context" or in the "timeline" of posts)

    So, my question is: What can / should trigger the re-build of the main index?

    Obviously, if I post a new MT entry, the main index gets republished. However, I'm far more often creating Actions than I am posting MT entries.

    So, my sense was that I should frequently republish the main index using run-periodic tasks, as a way to show those Actions.

    If I run run-periodic-tasks on the CLI, I don't get any errors, but the main index isn't updated either.

    Thoughts?

    Phillip.

  • And, actually, now that I look at bit closer, I see that I can run ./run-periodic-tasks --verbose

    Which prints out:

    TheSchwartz::work_once found no jobs

    Which tells me that Actions don't create jobs. :-(

    I'll go poke around in the Actions category of this forum, but -- heading back to my earlier question -- is there a way to force a frequent republish of the main index?

    Phillip.


  • And I now see that Actions probably update on a schedule too... hrmmmm... more reading to do, clearly. :-(

  • Hi,

    In your blog go to Tools > Plugins and go to the AS settings. Make sure it is set to enable rebuilding.

    Here is an example of mine that is working. It is not in Motion, but it is using the latest build of AS 2.0. (currently MT 4.23)

    http://bgviewsnetwork.com/dev/actions/

    AS does run on its own schedule, I have never looked into what that is because it just has always worked for me.

    Go to your profile > Action Streams. Many times you will see Actions in here that have not been published yet (but have been fetched). Do you see any there that are not published?

    Go to Other Profiles, select them all, and click Update Now. That will take some time, depending on your server.

    Go back to Action Streams and see if anything new showed up (if there was in fact anything new).

    Hope that helps. Beyond that I really can't help you. I have not really dug into 4.25 yet, I have enough work getting our community site in 4.23 up and running. I have installed the beta 2 of Motion (http://bgviewsnetwork.com/motion/) and have messed with it, but I have yet to actually turn on run-periodic-tasks for it and test it out.

    Ken

  • Hi Ken,

    Many thanks for this. I had missed the "enable rebuilding" setting for the Action Streams module.

    I'll wait to see what happens now. :-)

    Phillip.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012