Closed alexungur013 closed 3 years ago
Hi,
Sorry for the delay. Can you run with debug: True
in config.yml and report the stacktrace?
sorry to bother. Programming is not my strength. Why can't i login? What is the default password? I run the setPassword.py and then the backend.py. I get nothing
You have to setup a password using the python3 setPassword.py
command
i did that and entered one.
Do you have logs? Did the set password commamd run successfully?
I don't have any logs. Yes the command ran successfully. I check the passwordhash file and the hash is correct.
The code is breaking somewhere when authenticating. Can you run with debug: True
in config.yml and report the output of backend.py? Also details about your environment would be helpful.
changed
to debug: True
Config file not found or invalid. Please provide a valid config.yml file. See exampleconfig.yml for reference
File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request return self.view_functionsrule.endpoint File "/home/WebGPIO/backend.py", line 63, in login return render_template('login.html') File "/usr/lib/python3/dist-packages/flask/templating.py", line 135, in render_template context, ctx.app) File "/usr/lib/python3/dist-packages/flask/templating.py", line 117, in _render rv = template.render(context) File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "/home/WebGPIO/templates/login.html", line 1, in top-level template code {% extends "layout.html" %} File "/home/WebGPIO/templates/layout.html", line 16, in top-level template code {% block body %}{% endblock %} File "/home/WebGPIO/templates/login.html", line 3, in block "body"
Traceback (most recent call last):
File "/home/WebGPIO/setPassword.py", line 3, in
I had merged a broken PR without testing. Reverted it so authentication should be working again. Please checkout the latest code and make sure file permissions are correct.
Hello, First of all, thanks for code it help me a lot.
But i have some issues. After i used setPassword.py and i set a password when i complte the space from login with the correct password i receive error( 500 internal error message)
I suppose is something wrong with authentication because if i entry a wrong password the web don't get an error just i cant login
I need to make some more settings, change some lines code to work with authentication? thanks a lot