News: Missing config.ini

Created on 8 Jun 2019  路  7Comments  路  Source: nextcloud/news

This message is repeated in the Nextcloud logs on a fresh news install on Nextcloud 16.0.1:

[PHP] Error: file_get_contents(/var/www/nextcloud/data/news/config/config.ini): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#216

[news] Warning: Configuration invalid. Ignoring values.

Looks like the Config.ini is failing to generate because the nextcloud data/news/config folder is missing. Manually generating the folder seemed to allow config.ini to be generated.

0. Needs triage bug help wanted

All 7 comments

Does your webserver have permissions to wright in data/news folder ? You should check owner of this folder.

Yep. There are full permissions on the data and data/news folders for the apache user (I'm on CentOS 7.6).

drwxr-x--- 4 apache apache 4096 Jun 8 10:00 .
drwxr-x--- 14 apache apache 4096 Jun 15 09:45 ..
drwxr-x--- 3 apache apache 4096 Jun 8 09:46 cache
drwxr-xr-x 2 apache apache 4096 Jun 8 10:01 config

Confirming the bug.

In my case the config directory is not even created (Nextcloud data directory has rw access for web server user).

Dirty workaround:

  • manually create a config directory in the Nextcloud News data dir
  • assign proper permissions for web server user
  • go to the Nextcloud admin > Apps > News
  • slightly change any value
  • the file config.ini will be automatically created

So maybe something has changed in Nextcloud? Because at a quick glance i was not able to find anything in the news app that could cause this.

possibly a way to reproduce could be having a 15.x NC instance and perform an update (maybe install the News app again from scratch?). In my case, as OP wrote, it happened while updating NC to 16.x

I've got the same issue, don't know when this started but I use the News app for a long time. Suddenly I was unable to sync with cloudnews app on ios and checked the nextcloud log.
Also checked a backup of one week ago but the file is also missing there.
When I create config directory manually, the config.ini isn't created.
I use the latest nextcloud 16 on a updated Ubuntu 18 installation.

Created the file config.ini manually with the following contents:

autoPurgeMinimumInterval = 60
autoPurgeCount = 200
maxRedirects = 10
maxSize = 104857600
feedFetcherTimeout = 60
useCronUpdates = true
exploreUrl =

As from this website: https://github.com/nextcloud/news/blob/master/docs/configuration.md and now the news app works!

Was this page helpful?
0 / 5 - 0 ratings