nextcloud / news-updater

:newspaper: Fast, parallel feed updater for the News app; written in Python
GNU General Public License v3.0
107 stars 24 forks source link

MissingSectionHeaderError #4

Closed hulliver closed 8 years ago

hulliver commented 8 years ago

nextcloud-news-updater --loglevel info -c /volume1/web/nextcloud/data/news/config/config.ini Traceback (most recent call last): File "/bin/nextcloud-news-updater", line 11, in load_entry_point('nextcloud-news-updater==9.0.2', 'console_scripts', 'nextcloud-news-updater')() File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/main.py", line 26, in main container.resolve(Updater).run() File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/dependencyinjection/container.py", line 67, in resolve result = factory(self) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/dependencyinjection/container.py", line 18, in call return self.factory(container) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/container.py", line 24, in _create_updater if container.resolve(Config).is_web(): File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/dependencyinjection/container.py", line 67, in resolve result = factory(self) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/dependencyinjection/container.py", line 18, in call return self.factory(container) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/container.py", line 34, in _create_config config = config_parser.parse_file(args.config) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/nextcloud_news_updater/config.py", line 87, in parse_file successfully_parsed = parser.read(path) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/configparser.py", line 696, in read self._read(fp, filename) File "/volume1/@appstore/py3k/usr/local/lib/python3.5/configparser.py", line 1077, in _read raise MissingSectionHeaderError(fpname, lineno, line) configparser.MissingSectionHeaderError: File contains no section headers. file: '/volume1/web/nextcloud/data/news/config/config.ini', line: 1 'autoPurgeMinimumInterval = 60\n'

BernhardPosselt commented 8 years ago

You are missing the section header in your config file, read the README again ;)

hulliver commented 8 years ago

config.ini autoPurgeMinimumInterval = 60 autoPurgeCount = 200 maxRedirects = 10 maxSize = 104857600 exploreUrl = feedFetcherTimeout = 60 useCronUpdates = false

BernhardPosselt commented 8 years ago

yes, your config is invalid.

hulliver commented 8 years ago

so autoPurgeMinimumInterval = 60 is not a section header?

BernhardPosselt commented 8 years ago

exactly, check the readme. Its the stuff in the square brackets

BernhardPosselt commented 8 years ago

ah LOL

BernhardPosselt commented 8 years ago

You are using the News app configuration for the updater. Thats not how it works, both have separate configs ;) (Seriously READ! the README ;))

hulliver commented 8 years ago

aha human stupidity is limitless... sorry