Feeds not updating via Cron

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
Bobjespat
Bear Rating Trainee
Bear Rating Trainee
Posts: 34
Joined: 15 Mar 2013, 11:43
Location: near Munich/Germany
Contact:

Feeds not updating via Cron

Postby Bobjespat » 05 Apr 2013, 15:18

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.

User avatar
markwaters
Bear Rating Trainee
Bear Rating Trainee
Posts: 32
Joined: 20 May 2008, 13:10
Location: France
Contact:

Re: Feeds not updating via Cron

Postby markwaters » 05 Apr 2013, 16:24

or you can simplify a little with :-

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

Bobjespat
Bear Rating Trainee
Bear Rating Trainee
Posts: 34
Joined: 15 Mar 2013, 11:43
Location: near Munich/Germany
Contact:

Re: Feeds not updating via Cron

Postby Bobjespat » 05 Apr 2013, 16:47

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.

Bobjespat
Bear Rating Trainee
Bear Rating Trainee
Posts: 34
Joined: 15 Mar 2013, 11:43
Location: near Munich/Germany
Contact:

Re: Feeds not updating via Cron

Postby Bobjespat » 05 Apr 2013, 17:12

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.

User avatar
LifeWOutMilk
Bear Rating Disaster
Bear Rating Disaster
Posts: 52
Joined: 02 Apr 2013, 21:57

Re: Feeds not updating via Cron

Postby LifeWOutMilk » 05 Apr 2013, 20:29

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.

smeerbartje
Bear Rating Disaster
Bear Rating Disaster
Posts: 67
Joined: 04 Apr 2013, 23:24
Contact:

Re: Feeds not updating via Cron

Postby smeerbartje » 06 Apr 2013, 12:03

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

Bobjespat
Bear Rating Trainee
Bear Rating Trainee
Posts: 34
Joined: 15 Mar 2013, 11:43
Location: near Munich/Germany
Contact:

Re: Feeds not updating via Cron

Postby Bobjespat » 06 Apr 2013, 15:28

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...

smeerbartje
Bear Rating Disaster
Bear Rating Disaster
Posts: 67
Joined: 04 Apr 2013, 23:24
Contact:

Re: Feeds not updating via Cron

Postby smeerbartje » 06 Apr 2013, 20:56

Your cron actually points to absolute location of php binary?

korthrun
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 09 Apr 2013, 20:18
Location: Earth

Re: Feeds not updating via Cron

Postby korthrun » 09 Apr 2013, 20:24

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.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Feeds not updating via Cron

Postby fox » 09 Apr 2013, 20:45

1. check per-feed and global update intervals
2. run update.php --force-update

jonnberg
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 09 Apr 2013, 21:17

Re: Feeds not updating via Cron

Postby jonnberg » 09 Apr 2013, 21:18

I had this too and it turned out that I edited crontab as root (with sudo) rather than using my non-root user.

korthrun
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 09 Apr 2013, 20:18
Location: Earth

Re: Feeds not updating via Cron

Postby korthrun » 09 Apr 2013, 21:23

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!

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Feeds not updating via Cron

Postby fox » 09 Apr 2013, 21:51

>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.

smeerbartje
Bear Rating Disaster
Bear Rating Disaster
Posts: 67
Joined: 04 Apr 2013, 23:24
Contact:

Re: Feeds not updating via Cron

Postby smeerbartje » 09 Apr 2013, 22:06

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

korthrun
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 09 Apr 2013, 20:18
Location: Earth

Re: Feeds not updating via Cron

Postby korthrun » 09 Apr 2013, 22:11

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!


Return to “Support”

Who is online

Users browsing this forum: No registered users and 9 guests