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

How to install nodered nodes for the palette

How to install nodered nodes for the palette

V_A
Established Member

Hello,

I'm trying to install node-red-node-email in the Node-Red for ctrlX.

But there is always an error. The protocol is down below.
I also tried to run the px.exe, set up the firewall entrance rules and restart the ctrlX. But the error still scours.

Attached the screenshots of the Settings.

The browser is running on a vMware and connected in a local network with the ctrlX. The vMWare have also a connection to the internet.

Node Red protocol:

 

-----------------------------------------------------------
2023-02-07T12:04:35.163Z Installieren : node-red-node-email 1.18.4

2023-02-07T13:04:07.002Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-email@1.18.4
2023-02-07T13:05:21.516Z [err] npm
2023-02-07T13:05:21.518Z [err]
2023-02-07T13:05:21.519Z [err] ERR!
2023-02-07T13:05:21.519Z [err]
2023-02-07T13:05:21.520Z [err] code
2023-02-07T13:05:21.520Z [err] ECONNREFUSED
2023-02-07T13:05:21.522Z [err] npm
2023-02-07T13:05:21.522Z [err]
2023-02-07T13:05:21.523Z [err] ERR!
2023-02-07T13:05:21.523Z [err]
2023-02-07T13:05:21.523Z [err] errno
2023-02-07T13:05:21.524Z [err] ECONNREFUSED
2023-02-07T13:05:21.582Z [err] npm ERR!
2023-02-07T13:05:21.582Z [err] FetchError: request to https://registry.npmjs.org/node-red-node-email failed, reason: connect ECONNREFUSED 192.168.100.80:3128
2023-02-07T13:05:21.582Z [err] npm ERR! at ClientRequest.<anonymous> (/snap/ctrlx-node-red/327/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
2023-02-07T13:05:21.582Z [err] npm ERR! at ClientRequest.emit (events.js:400:28)
2023-02-07T13:05:21.582Z [err] npm ERR! at onerror (/snap/ctrlx-node-red/327/lib/node_modules/npm/node_modules/agent-base/index.js:101:9)
2023-02-07T13:05:21.582Z [err] npm
2023-02-07T13:05:21.583Z [err] ERR! at callbackError (/snap/ctrlx-node-red/327/lib/node_modules/npm/node_modules/agent-base/index.js:123:5)
2023-02-07T13:05:21.583Z [err] npm ERR! at processTicksAndRejections (internal/process/task_queues.js:95:5)
2023-02-07T13:05:21.583Z [err] npm
2023-02-07T13:05:21.583Z [err] ERR! FetchError: request to https://registry.npmjs.org/node-red-node-email failed, reason: connect ECONNREFUSED 192.168.100.80:3128
2023-02-07T13:05:21.583Z [err] npm ERR!
2023-02-07T13:05:21.583Z [err] at ClientRequest.<anonymous> (/snap/ctrlx-node-red/327/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
2023-02-07T13:05:21.583Z [err] npm ERR!
2023-02-07T13:05:21.583Z [err] at ClientRequest.emit (events.js:400:28)
2023-02-07T13:05:21.583Z [err] npm ERR! at onerror (/snap/ctrlx-node-red/327/lib/node_modules/npm/node_modules/agent-base/index.js:101:9)
2023-02-07T13:05:21.584Z [err] npm ERR!
2023-02-07T13:05:21.584Z [err] at callbackError (/snap/ctrlx-node-red/327/lib/node_modules/npm/node_modules/agent-base/index.js:123:5)
2023-02-07T13:05:21.584Z [err] npm ERR! at processTicksAndRejections (internal/process/task_queues.js:95:5) {
2023-02-07T13:05:21.584Z [err] npm ERR!
2023-02-07T13:05:21.584Z [err] type: 'system',
2023-02-07T13:05:21.584Z [err] npm ERR! errno: 'ECONNREFUSED',
2023-02-07T13:05:21.584Z [err] npm ERR! code: 'ECONNREFUSED'
2023-02-07T13:05:21.585Z [err] npm ERR!
2023-02-07T13:05:21.585Z [err] }
2023-02-07T13:05:21.585Z [err] npm
2023-02-07T13:05:21.585Z [err] ERR!
2023-02-07T13:05:21.585Z [err] npm
2023-02-07T13:05:21.585Z [err] ERR! If you are behind a proxy, please make sure that the
2023-02-07T13:05:21.585Z [err] npm ERR!
2023-02-07T13:05:21.586Z [err] 'proxy' config is set properly. See: 'npm help config'
2023-02-07T13:05:21.605Z [err]
2023-02-07T13:05:21.606Z [err] npm ERR! A complete log of this run can be found in:
2023-02-07T13:05:21.606Z [err] npm ERR! /root/snap/ctrlx-node-red/327/.npm/_logs/2023-02-07T13_05_21_589Z-debug.log
2023-02-07T13:05:21.640Z rc=1

6 REPLIES 6

CodeShepherd
Community Moderator
Community Moderator

There are always three steps to check to install pallets on Node-RED:

  1. Browser has internet connection, so pallets can be searched and loaded? Can be checked by browsing e.g. www.boschrexroth.com.
  2. ctrlX CORE and so Node-RED has internet and actual time is set, can be checked by sending a http request e.g. to a timeserver:
    [{"id":"10a5a811c614f55e","type":"http request","z":"c380b51e3414b962","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://time.jsontest.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":410,"y":180,"wires":[["0ed778586c17659e"]]},{"id":"fd31f8c17afc3fc3","type":"inject","z":"c380b51e3414b962","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":180,"wires":[["10a5a811c614f55e"]]},{"id":"0ed778586c17659e","type":"debug","z":"c380b51e3414b962","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":580,"y":180,"wires":[]}]
  3. Does palette have native C code included that needs to be compiled while runtime? This is prohibited because of security reasons. Such nodes needs to e downloaded and imported separately. See also this topic.

I tested your use case and extended the how tos for connecting the ctrlX CORE(virtual) to the internet via proxy on a PC.

V_A
Established Member

The vMware has internet. The browser can reach any website also the "http://time.jsontest.com".

It was not possible for me to paste your code in NodeRed.

I tried to rebuild the code in this way:

[
    {
        "id": "8bb1e01ca545be55",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "5b540730dbbf58f6",
        "type": "inject",
        "z": "8bb1e01ca545be55",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 180,
        "y": 200,
        "wires": [
            [
                "dccd0e4f6e9a1556"
            ]
        ]
    },
    {
        "id": "1d23585a8cfa4c47",
        "type": "debug",
        "z": "8bb1e01ca545be55",
        "name": "debug2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 560,
        "y": 200,
        "wires": []
    },
    {
        "id": "dccd0e4f6e9a1556",
        "type": "http request",
        "z": "8bb1e01ca545be55",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://time.jsontest.com",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "credentials": {},
        "x": 370,
        "y": 200,
        "wires": [
            [
                "1d23585a8cfa4c47"
            ]
        ]
    }
]

 

But the request throws an error.

RequestError: connect ECONNREFUSED 192.168.100.80:3128 : https://time.jsontest.co

 

 

 

CodeShepherd
Community Moderator
Community Moderator

Changed the data type of my code to JSON, so at my side importing is working fine now.

Did you check the how to that I mentioned above?
Did you set up your proxy properly to listen to your request IP?
Is the proxy running in your virtual operating system?

V_A
Established Member

The constellation that the computer is connected to the ctrlX in the local network and has Internet access via W-Lan, it did not work. The ctrlX could not get a connection to the Internet. I tried it with a connection via the company network but also via the free network. The possibility of getting the ctrlX on the Internet with the host computer and not with the virtual machine did not work either.

In my case the only solution was to connect the ctrlX directly to a router and give the router free internet access. So I was able to install the required node in NodeRed.

CodeShepherd
Community Moderator
Community Moderator

For me the question about the used proxy settings is still open but if you like we also could have a look together to the topic and check why the how tos did not work for you. Please send me a private message with your contact data if you want to do so.

OlafMunsch
Member

Hi,

my colleague and I have had some trouble getting pallettes installed ourselves, especially because of network issues / rules that would prohibite our core from communicating outwards.

We have found a work-around, where we download a .tgz file and upload it manually in the pallette manager.

The manual can be found here:

https://forums.opto22.com/t/install-older-version-specific-version-of-a-node-red-node/3796/4

Combine the URL as shown in the example, and it will directly download the .tgz file.

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