LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-08-2015, 02:15 PM   #1
dovad
LQ Newbie
 
Registered: Dec 2005
Location: Owings Mills, MD
Distribution: Debian7
Posts: 8

Rep: Reputation: 0
cron job fails after a short period of time.


I have Fever RSS server running on a Debian 7 headless server. To update the feeds every 15 minutes I have the following job setup in cron:

07,22,37,52 * * * * curl -L -s https://MyDomain.com/fever/?refresh
(MyDomain.com is set to my correct domain).

This works for a period of time. The first time I set Fever up it worked for a few days and after reading the Fever site recommending a reinstall of Fever if updates started to fail, the second install updated for a few hours. The developer notes that file permissions can interfere with updates and recommends setting the folder permissions of Fever at 777 which I have done. I am also running Tiny Tiny RSS and its cron job never fails.

It does not seem probable that Fever is causing this cron job to fail but I am a bit lost as to what I should look at or try. From the web interface or iOS apps a manual refresh of the server works every time.

Help is appreciated!
THANKS!
 
Old 09-08-2015, 05:52 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by dovad View Post
(..) after reading the Fever site recommending a reinstall of Fever (..) The developer (..) recommends setting the folder permissions of Fever at 777
Reinstalling anything on Linux / UNIX without troubleshooting the actual cause of the problem is like Ostrich tactics: sticking your head in the sand and hoping problems go away automagically. Besides that any directory having octal mode 0777 is asking for problems, it's bad advice and shows the developer knows or cares sh*t (with all due respect). So if this is feverrssreader.codeplex.com then know that in a 2009 Techcrunch article the author boasted he "also support his customers personally." so you should get support for an app that has no trial version and comes with a USD 30 price tag.


...alternatively use a product that actually works and doesn't require quite unnecessary ops or anything that goes against the grain:
Quote:
Originally Posted by dovad View Post
I am also running Tiny Tiny RSS and its cron job never fails.
 
Old 09-08-2015, 07:21 PM   #3
dovad
LQ Newbie
 
Registered: Dec 2005
Location: Owings Mills, MD
Distribution: Debian7
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Reinstalling anything on Linux / UNIX without troubleshooting the actual cause of the problem is like Ostrich tactics: sticking your head in the sand and hoping problems go away automagically.
This is why I posted my issue here, to find the solution.

Tiny Tiny RSS works well however the iOS apps are either buggy or half baked. Reeder which supports Fever on iOS is outstanding and if it had support for Tiny Tiny RSS I would not be posting here. I read my RSS feeds on mobile devices 90 percent of the time so the quality/experience of the client is important.

Quote:
Besides that any directory having octal mode 0777 is asking for problems
I agree with the sentiment however this server is behind pfSense so not very exposed in reality.

If someone has any suggestions as to why cron may work for a short while then fail I'd appreciate some input.
 
Old 09-09-2015, 03:36 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What kind of interpreter handles what
Code:
https://MyDomain.com/fever/
points to (PHP, Ruby, Python etc, etc)?
Since you use 'curl -L' what does the resulting redirect URL look like?
Do all "?refresh" redirect URLS return a 200 in your web server log?
Does using other cron job interval, say 00,30 work OK?
Is there any server or client side caching?
Any if-not-modified or other headers?
What is the actual 'curl -L' output?
Have you tried debug mode?
 
  


Reply

Tags
crontab, debian7, rss



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron job fails kushanx Linux - Server 9 04-09-2010 01:05 AM
i need to lock my keyboard and mouse for a short period of time and also unlock them balajitrz Linux - Hardware 3 02-16-2007 12:46 PM
i need to lock my keyboard and mouse for a short period of time and also unlock them balajitrz Linux - Hardware 1 02-16-2007 01:00 AM
Can I develop a Graphical Interface in C in a short period of time? dennyvm Programming 4 03-15-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration