Service doesn't start after install
Hi
I have used the quick install script. I see a 502 Bad Gateway error and the log shows the following:
Connection refused) while connecting to upstream, client: 192.168.100.103, server: tinypilot, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "192.168.100.119"
My guess is the service is not running but you don't say how to check this or what to check for. Any help please?
- Michael Lynch @michael2021-05-11 12:00:51.522Z
Can you try sharing your debug logs?
sudo /opt/tinypilot-privileged/collect-debug-logs
What OS are you installing this on?
- FJeremy @fabltd
- Michael Lynch @michael2021-05-11 15:15:38.806Z
That's a strange error, as the server is failing to start because a piece of Flask is missing.
Can you try re-running quick-install?
- FIn reply tofabltd⬆:Jeremy @fabltd
Hi
I assume its running in its own virtual env so other apps on the box shouldn't cause an issue?
- Michael Lynch @michael2021-05-11 16:01:33.763Z
Correct, though it'll cause conflicts if they're using the same ports.
- FJeremy @fabltd
What ports are used?
- FIn reply tofabltd⬆:Jeremy @fabltd
Still the same - http://logs.tinypilotkvm.com/veT7oG2C
- Michael Lynch @michael2021-05-11 16:19:56.370Z
It seems like something might be misconfigured on your system so that your global libraries are overriding TinyPilot's virtualenv in
/opt/tinypilot
.This StackOverflow thread might be helpful:
- FJeremy @fabltd
Thanks.
How do I restart tinypilot to check?
- FJeremy @fabltd
Hi
Flask is not installed in my global libraries.
- Michael Lynch @michael2021-05-11 17:38:14.517Z
Flask is not installed in my global libraries.
That would be surprising. How are you verifying that?
Can you try on a clean install of Raspberry Pi OS?
- FJeremy @fabltd
Hi
I cannot clean install as this PI runs serveral other services but none using flask.
pip3 list is what i used.
- Michael Lynch @michael2021-05-11 22:20:42.664Z
If this happens on a clean install of Raspberry Pi OS, that's a TinyPilot bug. If this is happening because of some other app or change to the system configuration, it's hard for me to diagnose the problem.
Another possible place to look is the system's
PATH
andPYTHONPATH
environment variables.
- Progress