Tiny Tiny RSS: Community

New install ... no updates


#1

I just installed on my server using Softaculous. According to Softaculous this is Tiny Tiny RSS 18.12

I updated my PHP to version 7.0

I’ve checked and it appears that I have a crontab running and updating on the server … no errors are being reported. It’s running at 7,17,34,49

I uploaded a number of feeds via a opml file, and it appears that it is uploaded. When I click on the tinytinyrss addon in my firefox it displays the feed list.

But, I can’t seem to get any articles at all. I have no idea where to start to look for debugging. Please, I need help!


#2

What happens when you update the feed manually from your terminal window? And what command do you run in your crontab?

Be sure to run it as the right user both when you update manually from the terminal and when you update through crontab (for example www-data)

I found this page to be very informative regarding updates


#3

Via the web interface:

  • Actions > Preferences > Feeds > Feeds with errors
  • Actions > Preferences > System > Event log

From Actions > Preferences > Keyboard shortcuts help, on any feed:

  • f Shift+d - Debug feed update [Force both options.]
  • f Shift+g - Debug viewfeed()

On your server:

What user is running update, and what exactly is it running?

$ sudo crontab -lu www-data | grep -v "^#" 
*/20 * * * * /var/www/example.com/html/reader/update.php --feeds

And what do you get when you run it manually, as that user?

$ sudo -u www-data /var/www/example.com/html/reader/update.php --feeds
[07:43:42/32492] Lock: update.lock
[07:43:42/32492] Scheduled 0 feeds to update...
[07:43:42/32492] Sending digests, batch of max 15 users, headline limit = 1000
[07:43:42/32492] All done.
[07:43:42/32492] cache/feeds: removed 0 files.
[07:43:42/32492] cache/images: removed 0 files.
[07:43:42/32492] cache/export: removed 0 files.
[07:43:42/32492] cache/upload: removed 0 files.
[07:43:42/32492] Removed 0 old lock files.
[07:43:42/32492] Removing old error log entries...
[07:43:42/32492] Feedbrowser updated, 144 feeds processed.
[07:43:42/32492] Purged 0 orphaned posts.
[07:43:42/32492] Removed 0 (feeds) 0 (cats) orphaned counter cache entries.

And forcing an update?

$ sudo -u www-data /var/www/shabble.co.uk/html/reader/update.php --feeds --force-update
[07:45:42/32525] Lock: update.lock
[07:45:42/32525] marking all feeds as needing update...
[07:45:42/32525] Scheduled 143 feeds to update...
[07:45:42/32525] Base feed: https://what.thedailywtf.com/[elided]
[07:45:43/32525]  => 1970-01-01 00:00:00, 3 2
[07:45:44/32525] Purged feed 3 (35): deleted 0 articles
[07:45:44/32525]     1.4770 (sec)
[07:45:44/32525] Base feed: https://what.thedailywtf.com/[elided]
[07:45:44/32525]  => 1970-01-01 00:00:00, 4 2
[07:45:46/32525] Purged feed 4 (35): deleted 0 articles
[07:45:46/32525]     2.0377 (sec)
[07:45:46/32525] Base feed: https://what.thedailywtf.com/[elided]
[07:45:46/32525]  => 1970-01-01 00:00:00, 5 2
[07:45:48/32525] Purged feed 5 (35): deleted 0 articles
[07:45:49/32525]     2.5487 (sec)
[07:45:49/32525] Base feed: https://[elided]
[07:45:49/32525]  => 1970-01-01 00:00:00, 6 2
[07:45:49/32525]     0.3211 (sec)
[07:45:49/32525] Base feed: http://bad-behavior.ioerror.us/feed/
[07:45:49/32525]  => 1970-01-01 00:00:00, 7 2
[07:45:50/32525]     0.8325 (sec)
[07:45:50/32525] Base feed: http://harridanic.com/wiki/index.php?title=Special:RecentChanges&feed=atom
[07:45:50/32525]  => 1970-01-01 00:00:00, 8 2
[07:45:50/32525]     0.2325 (sec)
[07:45:50/32525] Base feed: https://github.com/bcosca/fatfree/commits/master.atom
[07:45:50/32525]  => 1970-01-01 00:00:00, 9 2
[07:45:52/32525] Purged feed 9 (35): deleted 0 articles
[07:45:52/32525]     1.7300 (sec)
[07:45:52/32525] Base feed: https://github.com/[elided]
[07:45:52/32525]  => 1970-01-01 00:00:00, 10 2
[07:45:53/32525] Purged feed 10 (35): deleted 0 articles
[07:45:53/32525]     1.0207 (sec)
[07:45:53/32525] Base feed: https://discourse.tt-rss.org/posts.rss
[snip]

#4

Thanks for the replies. No success … but, maybe a start :slight_smile:

Some of the action/preferences options suggested just don’t exist on my web interface. The version for the interfaces is v18.12 . For example:

Actions > Preferences > Feeds >Feeds with errors

Just isn’t there. I do have “feeds” and I can click on one and bring up an option panel. But, nothing there about “feeds with errors”, etc.

So, I tried to do stuff via ssh. My first time with ssh on the site I have … but it appears I don’t have sudo to play with. I will have to contact the provider, Namecheap, and see what up there.

The cron seems to be running as root, not www-data.

Listing the crontab does work:

crontab -l
MAILTO=“[email protected]
SHELL="/bin/bash"
7,17,34,49 * * * * /opt/alt/php56/usr/bin/php /home/XXX/public_html/rss/update.php --feeds --quiet

And the file in opt appears to be there. If I execute the crontab line from the CLI it returns immediately with no errors.

And, the file update.php is there on the server

I’m wondering if there is anyway to see if the update command is doing anything. I suppose I’d need to query the database, probably nothing being stored in a file?

Thanks.


#5

Don’t do that. It’s bad form (from a security perspective). Also, TT-RSS won’t update when run as root, it exits with a message saying as much. This is likely why things aren’t working for you.

You should familiarize yourself with the updating feeds wiki article.

Try doing it without the --quiet option and report back.


#6

If you’re running that as your login user, and that login user isn’t root, then you’re not listing root’s crontab there.

Remove the --quiet, and replace it with --force-update when testing on the CLI.