News: No feed updates after Nextcloud Update

Created on 28 Aug 2019  路  37Comments  路  Source: nextcloud/news

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

Explain the Problem

After the update from Nextcloud 16.0.3 to 16.0.4 the News app stopped updating the feeds.

Steps to Reproduce

Explain what you did to encounter the issue

  1. Install news app
  2. Add RSS feeds
  3. Use it
  4. Upgraded Nextcloud from 16.0.3 to 16.0.4.1
  5. Feeds aren't getting updated anymore
  6. Followed https://github.com/nextcloud/news/blob/master/docs/faq/README.md#feeds-are-not-updated and all checks are Ok.
  7. Followed https://github.com/nextcloud/news/blob/master/docs/faq/README.md#how-do-i-reset-the-news-app and reinstalled the app
  8. Re-entered my RSS feeds
  9. Still no success
  10. Put logging on DEBUG
  11. Only getting these lines: {"reqId":"woZPAbSRYToTecR5rcKB","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xxx.xxx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/feeds","message":"new parser added : FeedIo\Standard\Json","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}
  12. Entered this command: sudo -u nginx php occ news:updater:update-feed 3, USERNAME
  13. The selected feed gets updated \o/
  14. But still not automatically
  15. The cron job is configured and working without errors

System Information

  • News app version: 13.1.6
  • Nextcloud version: 16.0.4
  • PHP version: 7.3.7
  • Database and version: mariadb 10.3.17
  • Browser and version: Firefox 68
  • Distribution and version: OpenSUSE Leap 15.1

Contents of nextcloud/data/nextcloud.log


{"reqId":"woZPAbSRYToTecR5rcKB","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xx.xx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/feeds","message":"new parser added : FeedIo\\Standard\\Rss","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}
{"reqId":"woZPAbSRYToTecR5rcKB","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xx.xx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/feeds","message":"new parser added : FeedIo\\Standard\\Rdf","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}
{"reqId":"8Aym8ddhdFmFnCwcsrXu","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xx.xx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/folders","message":"new parser added : FeedIo\\Standard\\Json","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}
{"reqId":"8Aym8ddhdFmFnCwcsrXu","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xx.xx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/folders","message":"new parser added : FeedIo\\Standard\\Atom","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}
{"reqId":"8Aym8ddhdFmFnCwcsrXu","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xx.xx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/folders","message":"new parser added : FeedIo\\Standard\\Rss","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}
{"reqId":"8Aym8ddhdFmFnCwcsrXu","level":0,"time":"2019-08-27T23:20:17+00:00","remoteAddr":"xx.xx.xx.xx","user":"USERNAME","app":"news","method":"GET","url":"\/apps\/news\/folders","message":"new parser added : FeedIo\\Standard\\Rdf","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:68.0) Gecko\/20100101 Firefox\/68.0","version":"16.0.4.1"}

Contents of Browser Error Console

Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here


No errors

0. Needs triage bug help wanted

Most helpful comment

I have just hit the same problem, but it happened when the news app was updated to v14.0.0. Note that I can manually refresh each feed by switching on/off the "show full text" option (as this forces a rescan of the feed), but no automatic refresh is performed.

My config:
News app version: 14.0.0
Nextcloud version: 16.0.4
PHP version: 7.3.9
Database and version: mariadb 10.1.41
Distribution and version: Debian stretch (oldstable)

All 37 comments

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 have exactly the same issue. I also tried, without success all debugging steps.

System Information

  • News app version: 13.1.6
  • Nextcloud version: 16.0.4
  • PHP version: 7.3.4
  • Database and version: mariadb 10.3.17
  • Browser and version: Firefox 69
  • Distribution and version: Debian buster (stable)

Does nextcloud complain about the cronjob in the settings?

I guess you are both using system Cron.

Using system cron, every 15 min. No complaints, its running fine. Also according the Nextcloud status page in the admin settings.

For me, the news app started downloading items again two days later. Out of the blue. I just left it.

Yes, using the system cron, no complaints either.

In the meantime, I use https://github.com/nextcloud/news-updater that is working fine.

I have just hit the same problem, but it happened when the news app was updated to v14.0.0. Note that I can manually refresh each feed by switching on/off the "show full text" option (as this forces a rescan of the feed), but no automatic refresh is performed.

My config:
News app version: 14.0.0
Nextcloud version: 16.0.4
PHP version: 7.3.9
Database and version: mariadb 10.1.41
Distribution and version: Debian stretch (oldstable)

I have the same problem as @rplasson Different system, but same news version (updated from 13.1.6).
I thought it might be related to #549 because I wasn't sure if this error prevents the other feeds from updating. So I tried to fix this by simply checking for null in the feed-io src. But the problem persists.
Couldn't find any further errors in the logs and cron seems to run without errors.

Same issue since the last update. I can still update with this command :

sudo -u www-data php ./occ news:updater:all-feeds | jq --raw-output '.feeds | map("\(.id) \(.userId)") | join("\n")' | sudo -u www-data xargs -L 1 php ./occ news:updater:update-feed

I have just hit the same problem, but it happened when the news app was updated to v14.0.0. Note that I can manually refresh each feed by switching on/off the "show full text" option (as this forces a rescan of the feed), but no automatic refresh is performed.

Same here.
My config:
News app version: 14.0.0
Nextcloud version: 16.0.4.1
PHP version: 7.3.6 (and 7.2.19 - i tested both)
Database and version: MySQL 5.7.26
LibXML version: 2.9.3
Distribution and version: Ubuntu 16.04 (provider all-inkl.com)

My feeds also stopped updating after upgrading to 14.0.0. My investigation has been different than other users, so I wanted to share. Before upgrading I had a few feeds that were failing, and I never got around to cleaning them up.

Several hours after upgrading, I started investigating as I had no new articles. The first thing I checked was the reserved_at value in the oc_jobs table. The value was not 0 and was an epoch timestamp right after the upgrade. I reset the reserved_at value to 0 and waited for the cronjob to run again.

Once the cronjob ran again, I got plenty of new articles, but the reserved_at value was not reset to 0 after the script had finished. This is the entry from nextcloud.log happened right after the upgrade:


unformatted log entry


{"reqId":"ztgvUtSgvLhtWbIxeDXY","level":3,"time":"2019-09-23T22:51:28+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"TypeError","Message":"strpos() expects parameter 1 to be string, null given","Code":0,"Trace":[{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/Standard\/Rdf.php","line":43,"function":"strpos","args":[null,"rdf"]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/Reader.php","line":175,"function":"canHandle","class":"FeedIo\\Standard\\Rdf","type":"->","args":[{"__class__":"FeedIo\\Reader\\Document"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/Reader.php","line":161,"function":"getAccurateParser","class":"FeedIo\\Reader","type":"->","args":[{"__class__":"FeedIo\\Reader\\Document"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/Reader.php","line":146,"function":"parseDocument","class":"FeedIo\\Reader","type":"->","args":[{"__class__":"FeedIo\\Reader\\Document"},{"__class__":"FeedIo\\Feed"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/Reader.php","line":125,"function":"handleResponse","class":"FeedIo\\Reader","type":"->","args":[{"__class__":"FeedIo\\Adapter\\Guzzle\\Response"},{"__class__":"FeedIo\\Feed"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/FeedIo.php","line":321,"function":"read","class":"FeedIo\\Reader","type":"->","args":["https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/darkreader\/versions\/format:rss",{"__class__":"FeedIo\\Feed"},{"date":"2019-02-06 13:08:31.000000","timezone_type":2,"timezone":"GMT","__class__":"DateTime"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/FeedIo.php","line":335,"function":"read","class":"FeedIo\\FeedIo","type":"->","args":["https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/darkreader\/versions\/format:rss",{"__class__":"FeedIo\\Feed"},{"date":"2019-02-06 13:08:31.000000","timezone_type":2,"timezone":"GMT","__class__":"DateTime"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/lib\/Fetcher\/FeedFetcher.php","line":79,"function":"readSince","class":"FeedIo\\FeedIo","type":"->","args":["https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/darkreader\/versions\/format:rss",{"date":"2019-02-06 13:08:31.000000","timezone_type":2,"timezone":"GMT","__class__":"DateTime"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/lib\/Fetcher\/Fetcher.php","line":68,"function":"fetch","class":"OCA\\News\\Fetcher\\FeedFetcher","type":"->","args":["https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/darkreader\/versions\/format:rss",false,"Wed, 06 Feb 2019 13:08:31 GMT",null,null]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/lib\/Service\/FeedService.php","line":228,"function":"fetch","class":"OCA\\News\\Fetcher\\Fetcher","type":"->","args":["https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/darkreader\/versions\/format:rss",false,"Wed, 06 Feb 2019 13:08:31 GMT",null,null]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/lib\/Service\/FeedService.php","line":184,"function":"update","class":"OCA\\News\\Service\\FeedService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/lib\/Utility\/Updater.php","line":49,"function":"updateAll","class":"OCA\\News\\Service\\FeedService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/news\/lib\/Cron\/Updater.php","line":52,"function":"update","class":"OCA\\News\\Utility\\Updater","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/BackgroundJob\/Job.php","line":61,"function":"run","class":"OCA\\News\\Cron\\Updater","type":"->","args":[null]},{"file":"\/usr\/local\/www\/nextcloud\/cron.php","line":123,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"\/usr\/local\/www\/nextcloud\/apps\/news\/vendor\/debril\/feed-io\/src\/FeedIo\/Standard\/Rdf.php","Line":43,"CustomMessage":"--"},"userAgent":"--","version":"16.0.4.1"}


reformatted log entry via jq as I could not get github to format it in a way that is somewhat readable


{
  "reqId": "ztgvUtSgvLhtWbIxeDXY",
  "level": 3,
  "time": "2019-09-23T22:51:28+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": {
    "Exception": "TypeError",
    "Message": "strpos() expects parameter 1 to be string, null given",
    "Code": 0,
    "Trace": [
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rdf.php",
        "line": 43,
        "function": "strpos",
        "args": [
          null,
          "rdf"
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader.php",
        "line": 175,
        "function": "canHandle",
        "class": "FeedIo\\Standard\\Rdf",
        "type": "->",
        "args": [
          {
            "__class__": "FeedIo\\Reader\\Document"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader.php",
        "line": 161,
        "function": "getAccurateParser",
        "class": "FeedIo\\Reader",
        "type": "->",
        "args": [
          {
            "__class__": "FeedIo\\Reader\\Document"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader.php",
        "line": 146,
        "function": "parseDocument",
        "class": "FeedIo\\Reader",
        "type": "->",
        "args": [
          {
            "__class__": "FeedIo\\Reader\\Document"
          },
          {
            "__class__": "FeedIo\\Feed"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader.php",
        "line": 125,
        "function": "handleResponse",
        "class": "FeedIo\\Reader",
        "type": "->",
        "args": [
          {
            "__class__": "FeedIo\\Adapter\\Guzzle\\Response"
          },
          {
            "__class__": "FeedIo\\Feed"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/FeedIo.php",
        "line": 321,
        "function": "read",
        "class": "FeedIo\\Reader",
        "type": "->",
        "args": [
          "https://addons.mozilla.org/en-US/firefox/addon/darkreader/versions/format:rss",
          {
            "__class__": "FeedIo\\Feed"
          },
          {
            "date": "2019-02-06 13:08:31.000000",
            "timezone_type": 2,
            "timezone": "GMT",
            "__class__": "DateTime"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/FeedIo.php",
        "line": 335,
        "function": "read",
        "class": "FeedIo\\FeedIo",
        "type": "->",
        "args": [
          "https://addons.mozilla.org/en-US/firefox/addon/darkreader/versions/format:rss",
          {
            "__class__": "FeedIo\\Feed"
          },
          {
            "date": "2019-02-06 13:08:31.000000",
            "timezone_type": 2,
            "timezone": "GMT",
            "__class__": "DateTime"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/lib/Fetcher/FeedFetcher.php",
        "line": 79,
        "function": "readSince",
        "class": "FeedIo\\FeedIo",
        "type": "->",
        "args": [
          "https://addons.mozilla.org/en-US/firefox/addon/darkreader/versions/format:rss",
          {
            "date": "2019-02-06 13:08:31.000000",
            "timezone_type": 2,
            "timezone": "GMT",
            "__class__": "DateTime"
          }
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/lib/Fetcher/Fetcher.php",
        "line": 68,
        "function": "fetch",
        "class": "OCA\\News\\Fetcher\\FeedFetcher",
        "type": "->",
        "args": [
          "https://addons.mozilla.org/en-US/firefox/addon/darkreader/versions/format:rss",
          false,
          "Wed, 06 Feb 2019 13:08:31 GMT",
          null,
          null
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/lib/Service/FeedService.php",
        "line": 228,
        "function": "fetch",
        "class": "OCA\\News\\Fetcher\\Fetcher",
        "type": "->",
        "args": [
          "https://addons.mozilla.org/en-US/firefox/addon/darkreader/versions/format:rss",
          false,
          "Wed, 06 Feb 2019 13:08:31 GMT",
          null,
          null
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/lib/Service/FeedService.php",
        "line": 184,
        "function": "update",
        "class": "OCA\\News\\Service\\FeedService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/lib/Utility/Updater.php",
        "line": 49,
        "function": "updateAll",
        "class": "OCA\\News\\Service\\FeedService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/apps/news/lib/Cron/Updater.php",
        "line": 52,
        "function": "update",
        "class": "OCA\\News\\Utility\\Updater",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/lib/private/BackgroundJob/Job.php",
        "line": 61,
        "function": "run",
        "class": "OCA\\News\\Cron\\Updater",
        "type": "->",
        "args": [
          null
        ]
      },
      {
        "file": "/usr/local/www/nextcloud/cron.php",
        "line": 123,
        "function": "execute",
        "class": "OC\\BackgroundJob\\Job",
        "type": "->",
        "args": [
          {
            "__class__": "OC\\BackgroundJob\\JobList"
          },
          {
            "__class__": "OC\\Log"
          }
        ]
      }
    ],
    "File": "/usr/local/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rdf.php",
    "Line": 43,
    "CustomMessage": "--"
  },
  "userAgent": "--",
  "version": "16.0.4.1"
}

Once I removed the https://addons.mozilla.org/en-US/firefox/addon/darkreader/versions/format:rss feed, the reserved_at value was getting reset to 0 after each time the cronjob runs.

Here is the log entry for this feed before the upgrade:


unformatted log entry

{"reqId":"v0wThfBXfwFkxVLDR7aD","level":2,"time":"2019-09-23T22:46:38+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https:\/\/addons
.mozilla.org\/en-US\/firefox\/addon\/darkreader\/versions\/format:rss read error : No parser can handle this stream","userAgent":"--","version":"16.0.4.1"}

To my very untrained eyes, it would appear that some feeds fail in an ungraceful way and does not reset the the reserved_at value and thus feeds do not get updated when the cronjob is run.

Here is an example of a feed that fails gracefully after the upgrade:


unformatted log entry

{"reqId":"NTSOlX5rNLVvxvckyx9C","level":2,"time":"2019-09-25T20:11:22+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https:\/\/nonfre
e.news\/feed.xml read error : cURL error 28: Connection timed out after 60031 milliseconds (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--
","version":"16.0.4.1"}


System Information

System Information

  • News app version: 14.0.0
  • Nextcloud version: 16.0.4
  • Cron type: system
  • PHP version: 7.2.22
  • Database and version: MariaDB 10.3.17
  • Browser and version: n/a
  • Distribution and version: FreeBSD 12.0-RELEASE-p10

I'm also having the same issue since upgrading to 14.0.0

News app version: 14.0.0
Nextcloud version: 16.0.2
PHP version: 7.2.19
Database and version: 10.1.41-MariaDB
LibXML version: 2.9.4
Distribution and version: Ubuntu 18.04.3

Same here since 14.0.0
I had to modify the crontab and run an update into the DB in order to make it run again each time

UPDATE oc_jobs SET reserved_at = 0 WHERE (argument = '["OCA\News\Cron\Updater","run"]' OR class = 'OCA\News\Cron\Updater');

since 14.0.0 the reserved_at seems never updated back to 0

I'm also having the same issue since upgrading to 14.0.0.

@v1r0x Yes definitely the same issue as reported in #549 and described here by @CorruptCommit.

@jknockaert My feeds are updating again. All I did was adding a null check (if(!isset($document->getDOMDocument()->documentElement->tagName)) return false;) in the Rdf.php class of feed-io (before this line https://github.com/alexdebril/feed-io/blob/v4.3.9/src/FeedIo/Standard/Rdf.php#L43) and wait for a couple of hours. It looks like even the feeds that failed are updating again. Maybe this is worth a try for you?

@v1r0x Could it be that there's a typo in that code? Like a misplaced bracket?

@jknockaert Yes, the closing bracket of the if should be closed before the return statement. I fixed it in my comment. Thanks!

OK, I can confirm your patch fixes the issue.
Perhaps someone can submit a PR? Ideally this should be fixed upstream.

good to hear!

This fix is just a quick _hacky_ solution. It also only fixes corrupt rdf feeds. So this has to be done for each feed type or at another location in the feed-io src to do the check before calling strlen(). I'm not familiar with feed-io and couldn't find (after a really quick search) a more general place/file to check for null. I also don't know why this happens and why it only happens for rdf feeds.

A fix/PR would be great, though :smiley:

Same problem here with News 14.0.0, NC 16.0.5 and PHP 7.3.9. The NC log shows errors related to the above fix, but not only for Rdf.php. Apparently, Rss.php and Atom.php are affected as well:

Screen Shot 2019-10-02 at 21 43 15

Please publish the update

Help please i have same issue -_-

Same issue since the last update. I can still update with this command :

sudo -u www-data php ./occ news:updater:all-feeds | jq --raw-output '.feeds | map("\(.id) \(.userId)") | join("\n")' | sudo -u www-data xargs -L 1 php ./occ news:updater:update-feed

it's actually my only way to update my feed.

@beerisgood which update? As far as I can see the potential fix was not released yet

Please, a little patience. As you see above, the fixes have been merged and will be included in the next release. Meanwhile, just look at the fixes and patch those files manually.

Meanwhile, just look at the fixes and patch those files manually.

How exactly can we do that? (I don't have ROOT on my vserver)

@beerisgood How do you access files you vserver (SCP, FTP, ...)?

@svoop over SSH. Don't know if SCP works

@beerisgood When you login with SSH, can't your shell user edit the files of your NC instance?

@svoop i can but i don't read here which files i need to edit

@beerisgood

Relative to the root directory of your NC instance, you have to edit the following files:

  • apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rdf.php
  • apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Atom.php
  • apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rss.php

See these two merge commits for what you have to insert where:

Same issue since the last update. I can still update with this command :
sudo -u www-data php ./occ news:updater:all-feeds | jq --raw-output '.feeds | map("\(.id) \(.userId)") | join("\n")' | sudo -u www-data xargs -L 1 php ./occ news:updater:update-feed

it's actually my only way to update my feed.

Sorry, after modify Rdf.php / Atom.php / Rss.php, i don't have wait enough. It's ok for me this morning. thx

Nextcloud 16.0.5, News 14.0: same problem, edited Rdf.php, Atom.php and Rss.php -> Feeds are working again.

Save this to a file and run patch -Np0 -i $FILE to fix all 3 files in one go:

--- apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rdf.php 2019-10-14 11:00:53.295844659 +0000
+++ apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rdf.php 2019-10-14 11:00:08.367817433 +0000
@@ -40,6 +40,7 @@
      */
     public function canHandle(Document $document) : bool
     {
+        if(!isset($document->getDOMDocument()->documentElement->tagName)) return false;
         return false !== strpos($document->getDOMDocument()->documentElement->tagName, static::ROOT_NODE_TAGNAME);
     }

--- apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Atom.php        2019-10-14 11:01:38.347886295 +0000
+++ apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Atom.php        2019-10-14 11:00:08.371817435 +0000
@@ -52,6 +52,7 @@
      */
     public function canHandle(Document $document) : bool
     {
+        if(!isset($document->getDOMDocument()->documentElement->tagName)) return false;
         return self::ROOT_NODE_TAGNAME === $document->getDOMDocument()->documentElement->tagName;
     }

--- apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rss.php 2019-10-14 11:01:59.987913799 +0000
+++ apps/news/vendor/debril/feed-io/src/FeedIo/Standard/Rss.php 2019-10-14 11:00:08.375817438 +0000
@@ -70,6 +70,7 @@
      */
     public function canHandle(Document $document) : bool
     {
+        if(!isset($document->getDOMDocument()->documentElement->tagName)) return false;
         return static::ROOT_NODE_TAGNAME === $document->getDOMDocument()->documentElement->tagName;
     }

The next release might fix that 14.0.1 as it includes the fixes for feed-io

14.0.1 fixes it for me.

Thanks everyone :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BlackIkeEagle picture BlackIkeEagle  路  3Comments

siccovansas picture siccovansas  路  7Comments

hanzei picture hanzei  路  7Comments

severin-lemaignan picture severin-lemaignan  路  8Comments

criwe picture criwe  路  7Comments