Closed pewi81 closed 6 years ago
Code looks terrible but I tried to add it as code without success!
restart flask in debug mode then try to visit the web interface to see the specific error.
I installed the latest Mycodo on the latest Raspbian on a Pi 2 an hour ago, without issue, so I think it is a pip package that didn't compile correctly, bad filesystem/corrupt files, or something.
Also, multi-line code should be encased in three backtics (```) to format it correctly, like the following:
``` code goes here ```
I see you already had the Mycodo directory, and a bunch of errors after that:
pi@raspberrypi:~ $ mkdir Mycodo
mkdir: cannot create directory ‘Mycodo’: File exists
...
The debug thing didn't work!
Please elaborate
The commands returns this in the terminal:
[ ok ] Stopping apache2 (via systemctl): apache2.service.
pi@raspberrypi:~ $ sudo ~/Mycodo/env/bin/python ~/Mycodo/mycodo/mycodo_flask/start_flask_ui.py --debug
/home/pi/Mycodo/env/bin/python: can't open file '/home/pi/Mycodo/mycodo/mycodo_flask/start_flask_ui.py': [Errno 2] No such file or directory```
See my previous comment about you already having a Mycodo directory and the errors after that. Your issues probably stem from that.
Also, there was a typo in the command. I've updated the wiki to reflect the proper command.
Since I couldn't figure a way round this I erased the Mycodo dir and made a fresh install!
Mycodo Issue Report:
Problem Description
Please list: 500 Internal Server Error as I try to reach the web interface
Errors
Steps to Reproduce the issue:
How can this issue be reproduced?
Additional Notes
Is there anything that should be added to make it easier to address this issue?