Equipment
- CtrlX Virtual V2.6.8 (Image Version)
- Running in RB Laptop
- Active VPN in use
- DC_App_Paket_2.6.2 (Node RED RED-V-0206.5+3.1.11-ctrlx)
Â
Objective
Install  "node-red-contrib-influxdb 0.7.0" to store information in InfluxDB through NodeRed and/or any other NodeRed plugin.
Â
Prerequisites
- Proxy installed & running in PC (Px.exe in my case)Â
- As you need to connect to the internet to download the NodeRed Libraries, first you need to have a proxy started in the local computer and enable it through the CtrlX Core in case you are using a Bosch computer, as it is connected to the Bosch Network.
- Follow this tutorial for CtrlX Core Virtual:Â Connect ctrlX COREvirtual to the internet (boschrexroth.com)
- Follow this tutorial for Physical CtrlX Core:Â Connect real ctrlX CORE via proxy to the Internet (boschrexroth.com)
- Proxy used:Â https://github.com/genotrance/px/releases
- File (Windows exec):Â https://github.com/genotrance/px/releases/download/v0.9.2/px-v0.9.2-windows-amd64.zipÂ
- To run proxy execute "px.exe" file & check task manager to be running 2-3 instances.
- CtrlX Core - Proxy Configuration (http://10.0.2.2:3128) - "Port-forwarding mode"
- CtrlX Core - Date & Time updated
- Virtual Core Settings
Â
- Firewall Inbound Rule for Proxy
Â
Â
Â
Â
Problem
Proxy Setup on Core
When doing an HTTP connection check, the Core is connected to the Internet
Â
But when trying to install NodeRED plugins via the pallet manager it appears the following error for "node-red-contrib-influxdb".Â
Â
Â
-----------------------------------------------------------
2024-08-05T23:46:12.762Z Install : node-red-contrib-influxdb 0.7.0
2024-08-05T23:46:11.417Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2024-08-05T23:46:12.043Z [err] npm warn config production Use `--omit=dev` instead.
2024-08-05T23:47:23.598Z [err] npm error code E502
2024-08-05T23:47:23.602Z [err] npm error 502 6; Could not resolve or connect to proxy or host - GET https://registry.npmjs.org/node-red-contrib-influxdb
2024-08-05T23:47:23.604Z [err]
2024-08-05T23:47:23.605Z [err] npm error A complete log of this run can be found in: /root/snap/ctrlx-node-red/1273/.npm/_logs/2024-08-05T23_46_11_889Z-debug-0.log
2024-08-05T23:47:23.625Z rc=1Â
Â
When trying to check the connection to "https://registry.npmjs.org"Â through the web interface appears the following:
The date & time is already synchronized with the browser & Laptop time
Â
Workaround (not solution)
A workaround I managed to do is to download the InfluxDB package locally to the PC, and then upload it to the CtrlX Core by using the following link structure and copying it to any browser.Â
 https://registry.npmjs.org/[PACKAGE_NAME]/-/[PACKAGE_NAME]-[VERSION].tgz
- Example on link structure with InfluxDB package Version 0.7.0
- https://registry.npmjs.org/node-red-contrib-influxdb/-/node-red-contrib-influxdb-0.7.0.tgz
- PACKAGE_NAME: node-red-contrib-influxdb
- VERSION: 0.7.0
- If you need an older version of the plugin, it can be installed by only writing the desired version on the URL.
- You can find the package names in the following link
- To Install click on the following button in NodeRed Pallete and select the ".trz" plugin.
Â
Â
Is there any solution to correctly download the packages via the CtrlX Core and avoid using the workaround?
I want to replicate this procedure with a physical CtrlX and there are some restrictions due to IT & security factors.
The Physical CtrlX Image version is the 1.20.12 and found some issues regarding NodeRED app not working after proxy is started. It says "App Unavailable". When proxy is shut down, the app continues working properly. Do you know how to solve this issue? (Upgrading the CtrlX Core to version 2.6 may not be an option, as it is not allowed) Here, more of this issue:Â Solved: Re: NodeRED RED-V-0204.0+3.1.0-ctrlx does not start when using a proxy (boschrexroth.com)
References
- Solved: Node-Red Issue Installing patette (boschrexroth.com)
- Solved: Re: NodeRED RED-V-0204.0+3.1.0-ctrlx does not start when using a proxy (boschrexroth.com)
- ctrlX AUTOMATION - Collection of How to videos, blogs and examples (boschrexroth.com)
- Connect ctrlX COREvirtual to the internet (boschrexroth.com)
- Connect real ctrlX CORE via proxy to the Internet (boschrexroth.com)
Â
Â
Â
Â