Help setting up NEWS updater on NC 17.02

Hi,
I am running Ubuntu 18.04.3 LTS

I am trying to get the news app to auto update. After installing the app, I see the message about using Ajax and to switch to Cron, so following the news updater wiki, I changed to cron via the web interface then setup systemd timers in Ubuntu.
I get the green tick in the web interface and no errors.

I then follow the guide and install python3-pip
“sudo apt install python3-venv python3-pip”
and then the pip3 newsinstaller.
“sudo -H pip3 install nextcloud_news_updater --install-option=”–install-scripts=/usr/bin"

But when I run “nextcloud-news-updater /var/www/html/nextcloud” I get errors.

Firstly should I run the command as sudo?
If I do I get this error

2019-12-23 23:29:31,396 - Nextcloud News Updater - ERROR - Command ‘[‘php’, ‘-f’, ‘/var/www/html/nextcloud/occ’, ‘news:updater:before-update’]’ returned non-zero exit status 1.: Trying again in 30 seconds

Hey there,

  1. Switch form Ajax to system cron
    This i needed because the Ajax method only triggers tasks when you visit your nextcloud with a browser, which is not working for feeds.

  2. switch to the python update
    You don’t have to do that, if the system cron is working for you.

If you still want to use the python updater remember to do:

Run the command as the user owning the nextcloud dir, with apache debian/ubuntu it will very likely be www-data, check with ls -l

Then run sudo -u www-data nextcloud-news-updater --mode singlerun /var/www/html/nextcloud

to test.