Using the usual Pi update script:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
...it fails at "Install new NodeJS" with curl: (22) The requested URL returned error: 502
.
This also happens if i append --node18 or --node20.
The log shows: W: Failed to fetch https://deb.nodesource.com/node_20.x/dists/nodistro/InRelease 502 Bad Gateway [IP: 143.204.15.127 443]
The error was present about 18:00GMT yesterday, which I put down to maybe weekend repo maintenance ~ but still seeing the error this morning.
Any ideas?
Sounds like you have a network issue. What happens if you run, in a command window
wget https://deb.nodesource.com/node_20.x/dists/nodistro/InRelease
It claims it's connected, but doesn't respond to the GET request:
Resolving deb.nodesource.com (deb.nodesource.com)... 143.204.15.127
Connecting to deb.nodesource.com (deb.nodesource.com)|143.204.15.127|:443... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2024-07-01 18:28:33 ERROR 502: Bad Gateway.
I am not an expert in such things, but I suspect it is a firewall issue, or a problem between the PC and the Internet.
If it is a corporate system, ask your IT guys.
Nothing corporate, just a household headless install on a Pi.
I'll continue having a poke around
If you put the url into the browser on your PC does it fetch it ok?
Running the wget in a terminal on the PC pulls it down fine. Running it in the browser brings a 12k file which appears to be a list of files with MD5 and SHA hashes.
I've also cleared the Pi traffic through the router, so there should be no router firewalling going on.
It's an oddun for sure...
As the water level is rising in my cellar sump, and the pump has to be driven manually without NR running, I think a re-install from scratch might be the best option for now!
Just to close this off, I never got to the bottom of what was causing the 502.
A new install from scratch and copying over the flows file cured it.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.