[ckan-dev] CKAN "No section: 'formatters'" error
Derek Hohls
dhohls at csir.co.za
Tue May 31 15:02:30 UTC 2016
I have CKAN installed in a container.
When trying to reach the CKAN webpage, I am getting this error in the ckan_default.error.log::
Traceback (most recent call last):
File "/etc/ckan/default/apache.wsgi", line 9, in <module>
fileConfig(config_filepath)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/util/logging_config.py", line 93, in fileConfig
formatters = _create_formatters(cp)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/script/util/logging_config.py", line 125, in _create_formatters
flist = cp.get("formatters", "keys")
File "/usr/lib/python2.7/ConfigParser.py", line 330, in get
raise NoSectionError(section)
NoSectionError: No section: 'formatters'
The ckan.docs website says this is a common error::
NoSectionError: No section: 'formatters'
This suggests that the config file specified with the paster --config
parameter (e.g. myconfig.ini) is incorrectly formatted. This may be true,
but this error is also printed if you specify an incorrect filename for
the config file!
I checked in the section of code where the error is raised. It seems as if the file it is looking for is stored in the 'fname' variable. Echoing the contents of this variable shows its value to be `/etc/ckan/default/production.ini` (which is what I would expect). This implies the file itself is incorrectly formatted. How do I go about finding what is incorrect about the formatting & then fixing it?
Thanks
Derek
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160531/11f53c9e/attachment-0002.html>
More information about the ckan-dev
mailing list