Service doesn't start after install
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?
- 14 replies
- Michael Lynch @michael2021-05-11 12:00:51.522Z
Can you try sharing your debug logs?
What OS are you installing this on?
- FIn reply tofabltd⬆:Jeremy @fabltd2021-05-11 15:59:20.531Z
I assume its running in its own virtual env so other apps on the box shouldn't cause an issue?
- FIn reply tofabltd⬆:Jeremy @fabltd2021-05-11 16:02:01.988Z
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
This StackOverflow thread might be helpful:
- 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?
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