Unable to install Node Red Modules on Enterprise Gateway

Hi, I am using an NCD Enterprise Gateway. I want to install various node red modules however I was receiving errors saying that my version does not support these modules. the version currently loaded on the gateway is v16.19.1 and the packages require v18 and above.

I tried following the ‘Update Node.js and Node-Red on the Enterprise Gateways’ blog but the ‘bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node20’ command did not seem to do anything when I was connected to the Gateway via SSH. Any assistance would be fantastic Thank you!

Hi @andrewpcc Could you provide a screenshot of the message you receive when executing the command? Also, is your Enterprise IIoT Gateway connected to the internet? Ensuring a stable internet connection is crucial for the command to execute properly.

Thank you,
Eduardo M.

Hi Eduardo, I have attached the image below. The Gateway should be connected to the internet as it is connected through ethernet to our network.

The gateway doesnt seem to respond to the command.

Hi @andrewpcc I’ve tried to replicate the issue, and it seems that the Enterprise IIoT Gateway is not connected to the internet. Could you verify this by running the following command?
ping 8.8.8.8

This command is used to test network connectivity between your system/gateway and the IP address 8.8.8.8, which is one of Google’s public DNS servers. Your system sends ICMP Echo Request packets to 8.8.8.8. If the network is functioning and the target is reachable, Google’s server responds with ICMP Echo Reply packets. The ping command displays output like this (example):

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=12.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=11.9 ms

If your Gateway is not connected to the internet, you will likely see a message similar to this:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From <your Ip> icmp_seq=1 Destination Host Unreachable
From <your Ip> icmp_seq=2 Destination Host Unreachable
From <your Ip> icmp_seq=3 Destination Host Unreachable
...

If you receive the latest output, I would recommend check whether the Enterprise Gateway has an active internet connection.

Note: To stop the ping command, press Ctrl + C.

Please try this and feel free to let us know if you have any questions.
Thank you,
Eduardo M.

Hi Eduardo, I tried the command and I can confirm that the device is connected to the internet:

Hi @andrewpcc Okay, thank you for the information. Could you please try the following command and let us know if it works?

curl -L https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered > update.sh

Thank you,
Eduardo M.

Hi Eduardo,

Thank you for your assistance with this. I tried the command please see result below.

Your Gateway isn’t liking the SSL certificate of GitHub for some reason. You can tell it to ignore this using this command:

bash <(curl -sLk https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node20

If that fails try this command to just pull down the file and let us know if it gives any errors:

curl -Lk https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered > update.sh

Hi Jacob,

the first command gave me no response, when i entered the second command this seemed to work, the Gateway responded with the below.

what command must I use to execute the script to update node red?

thanks, Andrew

Hi @andrewpcc could you try the following commands:
Make the “update.sh” script executable:

chmod +x update.sh

Run the script:

./update.sh --node20

The --node20 flag tells the script to install Node.js version 20 specifically, the script should check your system, download and install the specified version of Node.js, and then update nodered.

Please try this command and let us know if it worked.
Thank you,
Eduardo M.

Hi Eduardo,

I tried running the commands however they didnt seem to work. also tried to check that the script is valid by running head update.sh. I have attached the result below:

Hi Eduardo,

Another update. I beleive I have managed to get the file onto the Gateway by first downloading the script onto my computer and then transferring it onto the gateway. log below:

Hi,

You’ll want to run this command if you have the update.sh script in your home folder:

bash update.sh --node20

This should run the script. Let us know if there are any issues during that update. We haven’t encountered an error before.

Hi Jacob,

I tried running the command but the gateway seems to have run into a few errors again please see log below:

Hi Jacob and Eduardo,

I have managed to resolve the issue. It turns out that the gateway was actually not connected to the internet directly despite having the ability to Ping google.

we managed to change the gateways network settings to allow full internet access and have now Updated node red and install the packages we required. Thank you for all of your support!

1 Like