-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
15.4.0 - Most feeds no longer sync #1323
Comments
Can you try toggling full text mode for those? |
No change in syncing unfortunately. (My sync interval is 900 seconds, i verified that it had ran and that it sync'ed others that were working too). |
Unfortunately I have the same problems. Within Nextcloud itself and all my rss readers. It seems it doesn't update the newsfeeds at all anymore. Blank screen... |
Do you have some feeds you can share where this happens? |
Here are a few, I can provide more if needed: https://io9.gizmodo.com/rss |
Of note, to test it out, I deleted one feed, ran the cron so it could clean up, and then re-added the feed, and that first immediate sync worked on it. I will watch it for if the sync updates next time the source feed is updated. But even if it does work, it is not ideal to have to wipe out all the feeds and put them back. While that's easy enough for me, a single user self-hosted system, those that have many users would not have the ease to do that. |
Sounds like one of the fetched feeds has an error, breaking the fetch loop for every following feed. Possible candidates with fetch errors accoring to the log, are (none of these URLs worked for me):
If you have database access and know how to handle it, you could set the Removing and adding it again bypasses the feed fetcher once but doesn't solve it. |
i did a 'update oc_news_feeds set prevent_update='1' where update_error_count>1;' since they all had an error count more than 1. It appears the other feeds did sync now. So i guess the question is why the loop breaks when a single feed errors. I would expect it to simply skip it and keep going, which is I believe the way it handled it before. |
I believe the last time the fetch code changed was 14.0. And even before that I don't think it kept going on errors. I do think this should be improved though. |
I have the same problem since news 15.4 In my case the cause seems to be that I use the docker-image (20-fpm) which lacks support for $ ./occ news:updater:update-feed smoe 1
An unhandled exception has been thrown:
Error: Class 'Net_URL2' not found in /var/www/html/custom_apps/news/lib/Fetcher/FeedFetcher.php:114
Stack trace:
#0 /var/www/html/custom_apps/news/lib/Service/FeedServiceV2.php(265): OCA\News\Fetcher\FeedFetcher->fetch('https://xkcd.co...', false, NULL, NULL)
#1 /var/www/html/custom_apps/news/lib/Command/Updater/UpdateFeed.php(58): OCA\News\Service\FeedServiceV2->fetch(Object(OCA\News\Db\Feed))
#2 /var/www/html/custom_apps/bookmarks/vendor/symfony/console/Command/Command.php(255): OCA\News\Command\Updater\UpdateFeed->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/html/custom_apps/bookmarks/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/custom_apps/bookmarks/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(OCA\News\Command\Updater\UpdateFeed), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/custom_apps/bookmarks/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/console.php(100): OC\Console\Application->run()
#8 /var/www/html/occ(11): require_once('/var/www/html/c...') |
I'm not sure how |
I've had a refresh stuck for approx 10h despite cron running just fine |
i could fix it by removing and fresh installing the app |
I'm running into this as well. I run the following command to update all of my feeds. You will need to supply the for ((i=1;i<=191;i++)); do sudo -u www-data -H ./occ news:updater:update-feed $USERNAME $i; done; |
Not sure if it's the same issue but since my feeds are not updating (anymore) and I also don't seem to get an error message, I'd thought I'd join in.
What I noticed is, that for some reason, the "unread" does no longer sort by newest article date, but seems to sort by "latest added feed"... Any ideas? Different issue? (News 15.4.5, PHP 7.4.19, latest Docker image (apache) with Nextcloud 21.0.2, added smb capabilities but no issue on old server with the same config) |
That's because it's sorting on the newest articles for your server. If you have a feed your server didn't know about before those are the newest to the server. New articles after this will behave as you expect. |
Not sure if this is related to the same issue, but I get the error message attached from my log. The particular feed mentioned in the error message is |
I ran into a similar issue which was caused by nextcloud/vm#2039. Resolved that and news updated again. Interesting that I only noticed cron had completely broken because my news feed stopped updating. |
Following up on my previous comment, when I removed one offending feed, another blocked the sync (showed up in the log). After removing the ones below it started to work again. Perhaps you can find a pattern in these feeds, or perhaps it could be related to a combination of having these plus some others. I any case, I think there is a more significant problem in that the sync should continue for the other feeds, even if there is a faulty one. Or maybe I misunderstand what is happening. The offending feeds were
After removing these, sync has worked fine for about a week now. The fact I can see it in the admin log makes me wonder if I am talking about a different issue than David perhaps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I second this, and it's not resolved. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I believe this is still not fixed, please do not close. |
I don't think there is currently anything that can be done, I read through this issue and can't really see a reason for why the update does not work. There is a known issue that the Nextcloud job system can't handle interrupts, so if PHP, the Webserver, the DB,.. get restarted during the job execution it will hang for at least 12h. That can't be fixed within news. If your feed throws an error during update, you need to provide the feed and the error. Then maybe someone would be willing to investigate. Therefore I think this can be closed as the title and the content don't really help an nobody wanted to take care of it for many weeks. |
The error mentioned in this comment of mine was caused by https://arseblog.com/feed/ but I am unfortunately not enough of an expert to understand if it is useful enough. |
I checked this feed with our feed library, no error and I added it to my nextcloud also no issue. This is well known and documented in our faq -> https://github.com/nextcloud/news/blob/d9cb3433085ac2a43cd34b4232350f1578ce8201/docs/faq.md#missing-4-byte-support-sqlstate22007-invalid-datetime-format-1366-incorrect-string-value- |
Aha, great, thanks! Sorry for not finding it myself. I am not the original reporter, but for me this goes a long way to help me avoid the issue. I have seen the warning about 4 byte support in nextcloud admin but never found the time to fix it. |
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
What problem did you encounter?
After updating to 15.4.0, the majority of my feeds no longer sync. Manually going to various feeds in a web browser shows new content. Debug level logs also dont mention an attempt to sync the rss feeds of those ones that are not being synced. It lists ones that do work, and a few random 403s and 404s and what not, but the ones that dont sync at all, dont show in the logs.
Steps to Reproduce
Explain what you did to encounter the issue
System Information
Contents of nextcloud/data/nextcloud.log
news.log
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put hereThe text was updated successfully, but these errors were encountered: