Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application dies right after start #13

Open
ntjn opened this issue Feb 28, 2018 · 2 comments
Open

Application dies right after start #13

ntjn opened this issue Feb 28, 2018 · 2 comments

Comments

@ntjn
Copy link

ntjn commented Feb 28, 2018

Got this traceback:

2018-02-28 09:01:27,720 INFO: Starting ldap-passwd-webui 2.0.0
Traceback (most recent call last):
File "app.py", line 144, in
SimpleTemplate.defaults = dict(CONF['html'])
File "/usr/lib/python3.6/configparser.py", line 959, in getitem
raise KeyError(key)
KeyError: 'html'

Python version: 3.6.4

@jirutka
Copy link
Owner

jirutka commented Mar 2, 2018

This (obviously) means that you don’t have [html] section in the config file.

@JonathonReinhart
Copy link

This (also) can mean that that ConfigParser doesn't see your ini file.

It really depends how you're running the app, but on alpine, this works:

# apk add ldap-passwd-webui-waitress
# cd /usr/share/webapps/ldap-passwd-webui
# CONF_FILE=/etc/ldap-passwd-webui.ini waitress-serve app:application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants