Page 1 of 2

Feeds not updating via Cron

Posted: 05 Apr 2013, 15:18
by Bobjespat
Since Update of 1.7.8, my feeds do not update automaticly via cron. Im using

Code: Select all

0,5,10,15,20,25,30,35,40,45,50,55 * * * * php /usr/share/ttrss/update.php --feeds --quiet

in crontab, to get new feeds every 5 minutes.

Re: Feeds not updating via Cron

Posted: 05 Apr 2013, 16:24
by markwaters
or you can simplify a little with :-

*/5 * * * * php /usr/share/ttrss/update.php --feeds --quiet

Re: Feeds not updating via Cron

Posted: 05 Apr 2013, 16:47
by Bobjespat
its generated via Webmin :-) but hx for your suggestion. But the point is, that it doesnt update my feeds. Do i start it manualy, it works without problems.

Re: Feeds not updating via Cron

Posted: 05 Apr 2013, 17:12
by Bobjespat
I have seen, that i have set aditionaly SIMPLE_UPDATE_MODE to true in config.php. Does this interrupt the Cron Variant? I have tought, that this is only a fallback thing.

Additionaly, if i have Cron Updateing enabled, and i view my TT-RSS Installation via Mobile Browser in Digest Version, does the Cron Update the feeds also automaticly? I think so but im a little it confused, sorry.

Re: Feeds not updating via Cron

Posted: 05 Apr 2013, 20:29
by LifeWOutMilk
markwaters wrote:or you can simplify a little with :-

*/5 * * * * php /usr/share/ttrss/update.php --feeds --quiet


Slight OT, but I don't think updating every 5 minutes in necessary. While I don't know how often the sites you browse push updates, I think generally most sites aren't going to publish that often. I would seriously consider backing off to at least 15 minutes, or 30 just to be a bit nicer to the sites you frequent.

Re: Feeds not updating via Cron

Posted: 06 Apr 2013, 12:03
by smeerbartje
You should also point out where to find php... do a "which php" and put the complete path into the cronjob. For example: /usr/bin/php /var/www/ttrss/update.php

[edit for moderation]
Sorry, have replied twice... didn't notice that my posts are moderated... :D

Re: Feeds not updating via Cron

Posted: 06 Apr 2013, 15:28
by Bobjespat
Path to php is ok, manualy it works, but not via Cron. Other Cronjobs do work. Today it seems, that it works. The only vhange i have made, is that i "resaved" yesterday the Cron Entry after update to 1.7.8. But i think that this is not necessary... I dont know why it works now and before it doenst work...

Re: Feeds not updating via Cron

Posted: 06 Apr 2013, 20:56
by smeerbartje
Your cron actually points to absolute location of php binary?

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 20:24
by korthrun
Have a bump, for I am suffering a very similar issue.

My feeds do not update by hand or via cron after the update.

Code: Select all

[email protected]$ php ./update.php --force-update                                                                           
[16:20:44/2682] marking all feeds as needing update...   
[email protected]$ php ./update.php --feeds       
[16:20:51/2685] Scheduled 15 feeds to update...                                                                         
[16:20:51/2685] Expiring cache/simplepie                                                                               
[16:20:51/2685] Removed 0 files.                                                                                       
[16:20:51/2685] Expiring cache/images                                                                                   
[16:20:51/2685] Removed 0 files.                                                                                       
[16:20:51/2685] Expiring cache/export                                                                                   
[16:20:51/2685] Removed 0 files.                                                                                       
[16:20:51/2685] Removing old lock files...                                                                             
[16:20:51/2685] Removed 0 files.                                                                                       
[16:20:51/2685] Base feed: http://feeds.feedburner.com/Explosm                                                         
[16:20:51/2685] Base feed: http://americanpublicmedia.publicradio.org/podcasts/xml/splendid_table/kitchen_questions.xml
[16:20:51/2685] Base feed: http://tt-rss.org/releases.rss                                                               
[16:20:51/2685] Base feed: http://www.somethingpositive.net/sp.xml                                                     
[16:20:51/2685] Base feed: http://code.google.com/feeds/p/sshpt/downloads/basic                                         
[16:20:51/2685] Base feed: http://www.splendidtable.org/recipes/feed                                                   
[16:20:51/2685] Base feed: http://www.questionablecontent.net/QCRSS.xml                                                 
[16:20:51/2685] Base feed: http://www.npr.org/rss/podcast.php?id=510208                                                 
[16:20:51/2685] Base feed: http://feeds.feedburner.com/linuxoutlaws-ogg                                                 
[16:20:51/2685] Base feed: http://hackerpublicradio.org/hpr_ogg_rss.php                                                 
[16:20:51/2685] Base feed: http://xkcd.com/rss.xml                                                                     
[16:20:51/2685] Base feed: http://feeds.feedburner.com/DilbertDailyStrip                                               
[16:20:51/2685] Base feed: http://americanpublicmedia.publicradio.org/podcasts/xml/prairie_home_companion/news_from_lake
_wobegon.xml                                                                                                           
[16:20:51/2685] Base feed: http://feeds.feedburner.com/smittenkitchen                                                   
[16:20:51/2685] Base feed: http://www.twolumps.net/comic.rss                                                           
[16:20:51/2685] Sending digests, batch of max 15 users, headline limit = 1000                                           
[16:20:51/2685] All done.                                                                                               
[16:20:51/2685] Feedbrowser updated, 15 feeds processed.                                                               
[16:20:51/2685] Purged 0 orphaned posts.                                                                               
[16:20:51/2685] Cleaned 0 cached tags.

I know there are new posts on these sites, and greader is showing the updates.

It's worth mentioning that I did the db index rebuilds as well, after noticing this behaviour.

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 20:45
by fox
1. check per-feed and global update intervals
2. run update.php --force-update

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 21:18
by jonnberg
I had this too and it turned out that I edited crontab as root (with sudo) rather than using my non-root user.

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 21:23
by korthrun
fox wrote:1. check per-feed and global update intervals
2. run update.php --force-update


Thanks for the quick moderation/response.

All of my feeds are set to use the default interval.

In the preferences UI, under "General", the "Default interval between feed updates" is set to "Disabled". I had given myself the impression (read: assumed) that this defined the interval for SIMPLE_UPDATE_MODE (which I have set to false in config.php). I am fairly confident, but not 100% sure that it was set to "Disabled" before the update.

Switching this to "Daily" and running "update.php --force-update" has caused updates to show up in tt-rss now, so thanks for that.

I am now unclear how the interval of my cron job and this setting interact.

Is this something close:

I have "Default interval between feed updates" set to daily. I run update.php via cron every 2 hours.
At 8 am there is an update for feed_1.
At 10am the cron runs and the last update time on feed_1 is checked against the interval, we see that it's recieved an update within the last INTERVAL, so is not checked for updates.

Are there some docs I can read to explain this or will it come down to "learn2php"?

Thanks again!

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 21:51
by fox
>I am fairly confident, but not 100% sure that it was set to "Disabled" before the update.

This is the global update interval for feeds. If your feeds updated previously with this set to disabled, than it was a bug that got fixed.

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 22:06
by smeerbartje
Can someone please explain me what the "Default interval between feed updates" option in the preferences pane does? I am running the "update.php" in --daemon mode, what exactly does this mean? Does this mean that it "processes" all feeds and waits for 30 minutes (the time set in the preferences pane)???

Image

Re: Feeds not updating via Cron

Posted: 09 Apr 2013, 22:11
by korthrun
fox wrote:>I am fairly confident, but not 100% sure that it was set to "Disabled" before the update.

This is the global update interval for feeds. If your feeds updated previously with this set to disabled, than it was a bug that got fixed.



Thanks!