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
Error 502: Bad Gateway Error #1067
Comments
Your virtualenv is not set up correctly if gunicorn doesn't exist. Try installing again. |
Just run |
What are the errors in the setup log? |
~/Mycodo/install/setup.log |
It appears to be an issue installing the virtualenv package:
|
yep ! i'm trying to reinstall it, it seems that some package are unreachable, so i installed it manually from the github repo |
See if this works:
|
Same error as before Checking python 3 virtualenvVirtualenv doesn't exist. Creating...Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Updating pip/home/pi/Mycodo/mycodo/scripts/upgrade_commands.sh: line 443: /home/pi/Mycodo/env/bin/pip3: No such file or directory Installing pip requirementsError: Virtualenv doesn't exist. Create with /home/pi/Mycodo/mycodo/scripts/upgrade_commands.sh setup-virtualenv--2021-08-10 02:36:13-- https://project-downloads.drogon.net/wiringpi-latest.deb |
That doesn't appear to be the output of the two commands I provided, as it has the attempted execution of "/home/pi/Mycodo/mycodo/scripts/upgrade_commands.sh" in the middle. Can you copy the output from the two commands? |
virtualenv 20.7.1 was released 12 hours ago, and I don't see any issues on its github since it's such a new issue. It appears to be some issue with that package, not pip or Mycodo. You can attempt to install the previous version rather than the latest by doing the following: Change this line: Mycodo/mycodo/scripts/upgrade_commands.sh Line 198 in 8fab275
to this: pip install virtualenv==20.7.0 Save, then run setup.sh. |
I was experiencing the same issue, and updating to install virtualenv=20.7.0 worked for me, seems to be up and running now. Thanks! |
Installing virtualenv=20.7.0 works for me too, it works perfectly now , thanks ! |
Describe the problem/bug
Unable to have an access to the mycodo frontend. I have already one mycodo system which works perfectly but this new one fail
Versions:
Mycodo Version: 8.11.0
Raspberry Pi Version: 4B 4gb
Raspbian OS Version: 5.10.17
Reproducibility
Please list specific setup details that are involved and the steps to reproduce the behavior:
Install Mycodo from scratch with a new SD card on a Raspberry pi 4 with the official software
Screenshots
After typing the command to get logs i'm getting that. I guess the issue come from the unreachable "localhost".
pi@raspberrypi:~ $ journalctl -u mycodoflask | tail -n 50
-- Logs begin at Fri 2021-05-07 16:07:11 BST, end at Tue 2021-08-10 00:00:12 BST. --
Aug 09 23:46:14 raspberrypi systemd[1]: Started gunicorn daemon for Mycodo flask web user interface.
Aug 09 23:46:14 raspberrypi systemd[3125]: mycodoflask.service: Failed to execute command: No such file or directory
Aug 09 23:46:14 raspberrypi systemd[3125]: mycodoflask.service: Failed at step EXEC spawning /var/mycodo-root/env/bin/gunicorn: No such file or directory
Aug 09 23:46:14 raspberrypi systemd[1]: mycodoflask.service: Main process exited, code=exited, status=203/EXEC
Aug 09 23:46:14 raspberrypi systemd[1]: mycodoflask.service: Failed with result 'exit-code'.
pi@raspberrypi:~ $
The text was updated successfully, but these errors were encountered: