FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
08-06-2024 03:15 AM - edited 08-06-2024 03:35 AM
Equipment
Objective
Install "node-red-contrib-influxdb 0.7.0" to store information in InfluxDB through NodeRed and/or any other NodeRed plugin.
Prerequisites
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 node-red-contrib-influxdb@0.7.0
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
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! Go to Solution.
08-12-2024 07:54 AM
Two things you can do: