Hello - there is another thread for the instant reload 502 issues here, but that thread is closed. The solution there does not work for me.
Thanks in advance for your support. Instant Reload is a massive help for my workflow, working without it feels slow motion.
OS: Ubuntu 24.04.
Similar to the other thread, I get the “Connection refused” error when enabling Instant Reload:
2024/10/18 00:42:04 [error] 11677#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: ::1, server: testing-instant-reload-issue.local, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "testing-instant-reload-issue.local"
2024/10/18 00:42:04 [error] 11677#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: ::1, server: testing-instant-reload-issue.local, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:3000/favicon.ico", host: "testing-instant-reload-issue.local", referrer: "http://testing-instant-reload-issue.local/"
At some point I also had this repeatedly in Local’s log, but it stopped appearing:
2024/10/18 00:08:25 [warn] 36515#0: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /home/redacted/.config/Local/run/router/nginx/conf/server-block-ssl.conf:2
What I’ve tried:
- Copying the site files, deleting, then importing does not fix the issue for me.
- I have tested with a brand new site install, the 502 issue occurs there as well. Issue occurs on all existing sites I tested with.
- I have tested with v9.1.0, v9.0.5, and v9.0.2 – same result with each version.
- I have tested with nginx and apache.
- Router mode seems buggy in general for me so no conclusive info for me there.
- I have restarted my device.
- Tried with SSL disabled and enabled.
Here are some testing scenarios:
- Brand new site, no instant reload - the site loads.
- Enable instant reload - doesn’t work.
- Disable instant reload - still doesn’t work. Curiously, the Instant Reload label on the top right of Local remains green.
- Close Local, reopen - the site loads (only works if Local was closed with Instant Reload set to off)
Some strange things that may or may not be clues:
- This did not start happening for me immediately after an update. I was in the middle of making edits on a site (with Instant Reload working normally) when the 502 started suddenly. This part doesn’t make sense to me, I checked for any background system updates that could have caused something to knock loose and couldn’t find anything.
- Under the Web Server dropdown, I see three options: nginx, nginx, and Apache (nginx appears twice). I’m not sure if this is new or has been that way for a while.