feeds not updating via cron or manual

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
theooze
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 07 Jul 2013, 18:45

feeds not updating via cron or manual

Postby theooze » 07 Jul 2013, 18:55


vilain
Bear Rating Trainee
Bear Rating Trainee
Posts: 40
Joined: 29 Jun 2013, 08:57

Re: feeds not updating via cron or manual

Postby vilain » 07 Jul 2013, 21:40

remove the "apache" from the cron job. It should run the php script in cron.

I run this on my shared hosting and my MacOS desktop without problems. Although for MacOS, I did setup a launchd user-agent that works just fine.

gbcox
Bear Rating Master
Bear Rating Master
Posts: 149
Joined: 25 Apr 2013, 04:52

Re: feeds not updating via cron or manual

Postby gbcox » 07 Jul 2013, 22:18

Here is a quick reference on crontab: http://www.adminschoice.com/crontab-quick-reference/
remember cron isn't a user, it's a daemon...and will run under the invoking user.

Setting it up as a service IMO is more elegant, and since you're running Fedora, it's pretty much cookie-cutter for you...
Since you're running apache, just remember to change the references to nginx to apache - and it will run under apache

Also, remember, there is really no more /usr/bin in Fedora... it's just /bin - /usr/bin is there for legacy purposes, but it just points to /bin

theooze
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 07 Jul 2013, 18:45

Re: feeds not updating via cron or manual

Postby theooze » 09 Jul 2013, 12:51

The cron entry is correct - that is from /etc/cron.d which does take a user to run under:
https://docs.fedoraproject.org/en-US/Fe ... Tasks.html

Let's take cron and the update daemon out of the picture - why aren't the feeds updating when I run the update manually ?

gbcox
Bear Rating Master
Bear Rating Master
Posts: 149
Joined: 25 Apr 2013, 04:52

Re: feeds not updating via cron or manual

Postby gbcox » 09 Jul 2013, 14:50

No, it isn't correct. You're mis-interpreting the doc. If you want to create a crontab for another user, you use the -u parameter or login and issue the command from that other user.

theooze
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 07 Jul 2013, 18:45

Re: feeds not updating via cron or manual

Postby theooze » 09 Jul 2013, 15:05

ok, then why are the OS-provided files in that directory of the same format?
0hourly:
# Run the hourly jobs
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
01 * * * * root run-parts /etc/cron.hourly

sysstat
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A


regardless - the manual update is not working at that is the root problem. why is the manual update not working ?

gbcox
Bear Rating Master
Bear Rating Master
Posts: 149
Joined: 25 Apr 2013, 04:52

Re: feeds not updating via cron or manual

Postby gbcox » 09 Jul 2013, 15:23


theooze
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 07 Jul 2013, 18:45

Re: feeds not updating via cron or manual

Postby theooze » 09 Jul 2013, 15:41

dude - a MANUAL UPDATE has nothing to do w/ CRON. when i MANUALLY run the update command the feeds are not updating. why is that? what can i look at to see why the updates are not happening when i run the update manually ?

i'm also not misinterpreting the documentation. like i said above, the default, distro-provided files are of the same format. this isn't vixie-cron...

anyway - a manual update isn't working, let's focus on that.

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

Re: feeds not updating via cron or manual

Postby LifeWOutMilk » 09 Jul 2013, 17:31


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

Re: feeds not updating via cron or manual

Postby LifeWOutMilk » 09 Jul 2013, 21:00


User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: feeds not updating via cron or manual

Postby sleeper_service » 09 Jul 2013, 21:57


User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: feeds not updating via cron or manual

Postby sleeper_service » 09 Jul 2013, 22:07


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

Re: feeds not updating via cron or manual

Postby LifeWOutMilk » 10 Jul 2013, 00:34


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 or manual

Postby fox » 10 Jul 2013, 05:15


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 or manual

Postby fox » 10 Jul 2013, 06:52

Add define('DAEMON_EXTENDED_DEBUG', true); to config.php, run update.php --feeds and report results.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 8 guests