Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

NodeRED - Cannot install plugins via NodeRed Pallete Manager (InfluxDB plugin error)

NodeRED - Cannot install plugins via NodeRed Pallete Manager (InfluxDB plugin error)

cal9mx2
Member

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

 

Problem

Proxy Setup on Core

cal9mx2_0-1722902713977.png

When doing an HTTP connection check, the Core is connected to the Internet

cal9mx2_1-1722902823505.png

cal9mx2_7-1722904148385.png

 

But when trying to install NodeRED plugins via the pallet manager it appears the following error for "node-red-contrib-influxdb". 

cal9mx2_11-1722904457569.png

 

 

-----------------------------------------------------------
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

 

 

cal9mx2_2-1722902949343.png

When trying to check the connection to "https://registry.npmjs.org" through the web interface appears the following:

cal9mx2_3-1722903906140.png

cal9mx2_6-1722904083312.png

The date & time is already synchronized with the browser & Laptop time

cal9mx2_4-1722903965772.png

 

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

 

 

 

 

1 REPLY 1

CodeShepherd
Community Moderator
Community Moderator

Two things you can do:

  1. Use our "Node Packer Tool" to generate an offline installable Node-RED palette
    1. More information: boschrexroth/node-packager (github.com)
    2. Download: Release v1.0.0 · boschrexroth/node-packager (github.com)

  2. There is a known problem if a proxy is used and "localhost" is missing as exception in the settings.
    1. Update Node-RED app corresponding to the ctrlX OS:
      1. 2.6.5 + 3.1.11
      2. 1.20.9 + 3.1.11
      3. 3.2.0 + 4.0.2
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist