# Installation error with node-red-contrib-solace

**URL:** <https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997>\
**Category:** General\
**Created:** [20 May 2020 12:06 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997 "2020-05-20T12:06:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 12:06 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/1 "2020-05-20T12:06:48Z")

</div>

I'm a node-red newbie, would someone please try install node-red-contrib-solace from the palette to see if it's broken or is it just me?

## Thanks in advance! Grant

2020-05-20T12:05:11.765Z Install : node-red-contrib-solace 0.0.10

2020-05-20T12:05:11.826Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-solace@0.0.10  
2020-05-20T12:05:26.937Z rc=243

# Starting as a systemd service. 20 May 11:57:03 - [info] Welcome to Node-RED

20 May 11:57:03 - [info] Node-RED version: v1.0.6  
20 May 11:57:03 - [info] Node.js version: v14.3.0  
20 May 11:57:03 - [info] Linux 5.4.0-1008-raspi arm64 LE  
20 May 11:57:04 - [info] Loading palette nodes  
/bin/sh: 1: /home/ubuntu/.node-red/node\_modules/node-red-node-pi-gpio/testgpio.py: not found  
20 May 11:57:06 - [warn] rpi-gpio : Raspberry Pi specific node set inactive  
20 May 11:57:06 - [warn] ------------------------------------------------------  
20 May 11:57:06 - [warn] [node-red-node-serialport/serialport] Error: /snap/core/current/lib/aarch64-linux-gnu/libc.so.6: version `GLIBC\_2.28' not found (required by /home/ubuntu/.node-red/node\_modules/@serialport/bindings/build/Release/bindings.node)  
20 May 11:57:06 - [warn] ------------------------------------------------------  
20 May 11:57:06 - [info] Settings file : /home/ubuntu/.node-red/settings.js  
20 May 11:57:06 - [info] Context store : 'default' [module=memory]  
20 May 11:57:06 - [info] User directory : /home/ubuntu/.node-red

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 12:11 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/2 "2020-05-20T12:11:50Z")

</div>

Did you edit the settings.js file and add the items it tells you to? ([https://flows.nodered.org/node/node-red-contrib-solace](https://flows.nodered.org/node/node-red-contrib-solace))

however the node hasn't been updated in 5 years so it is quite possible it has been abandoned

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 12:23 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/3 "2020-05-20T12:23:59Z")

</div>

Yep, I edited settings.js. I think this node was loading in a previous node-red install - that's why I am wondering whether others are having issues with it or whether maybe my new install (new version too) is screwed up somehow?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 12:50 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/4 "2020-05-20T12:50:05Z")

</div>

I just ran the install via the CLI and it installed fine. One thing I notice is you are on node.js v14.3.0 while I am using v12.13.0.

Can you downgrade node.js and see if it will install?

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 13:06 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/5 "2020-05-20T13:06:39Z")

</div>

Thanks for giving it a try, that's encouraging! I'll see if I can figure out how to downgrade to v12.13.0. Would you mind sharing what you did in the CLI to get successful install - what directory you were in/ what options you specified etc - or was it just npm install node-red-contrib-solace?

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 13:17 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/6 "2020-05-20T13:17:55Z")

</div>

It seems to have worked in the CLI for me too - but the node-red web interface isn't happy with something and the nodes don't appear on the palette for use ☹

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/e/6ec91b25829dc8a144387d4cabd39d5d1a98e14a.png)

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 13:23 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/7 "2020-05-20T13:23:59Z")

</div>

I wonder if it has anything to do with node-red v1 doing away with the input and output groups in palette?  
from the instructions:

> Point your browser to [http://localhost:1880](http://localhost:1880)
> 
> You should see orange solace input and output nodes in the pallet on the left side of the screen.
> 
> - input ![](https://github.com/hjespers/node-red-contrib-solace/blob/master/images/solace_input_node.png)
> - output

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 13:44 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/8 "2020-05-20T13:44:10Z")

</div>

The nodes show up for me  
 ![Screen Shot 2020-05-20 at 9.42.29 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a1f8222277acc0162df43955b99ae00d25d39850.png)

This version of NR is running on my Mac, let me see what one of my Pi's shows.

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 13:45 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/9 "2020-05-20T13:45:26Z")

</div>

Thanks for all your help so far!

What version of NR are you on?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 13:53 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/10 "2020-05-20T13:53:10Z")

</div>

interesting, on my Pi I get this at startup  
Welcome to Node-RED

```auto
===================
20 May 09:45:54 - [info] Node-RED version: v1.0.6
20 May 09:45:54 - [info] Node.js version: v12.16.3
20 May 09:45:54 - [info] Linux 4.19.97-v7+ arm LE
20 May 09:45:55 - [info] Loading palette nodes
20 May 09:45:57 - [info] Dashboard version 2.22.1 started at /ui
20 May 09:45:58 - [warn] ------------------------------------------------------
20 May 09:45:58 - [warn] [node-red-contrib-solace/solace] Error: Cannot find module '/usr/lib/node_modules/node-red/red/red'
Require stack:
- /home/pi/.node-red/node_modules/node-red-contrib-solace/solace/lib/solaceConnectionPool.js
- /home/pi/.node-red/node_modules/node-red-contrib-solace/solace/solace.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
- /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
- /usr/lib/node_modules/node-red/lib/red.js
- /usr/lib/node_modules/node-red/red.js
20 May 09:45:58 - [warn] ------------------------------------------------------

```

On my mac I'm running

```auto
Welcome to Node-RED
===================

20 May 13:46:37 - [info] Node-RED version: v1.0.6
20 May 13:46:37 - [info] Node.js version: v12.13.0
20 May 13:46:37 - [info] Darwin 18.7.0 x64 LE
20 May 13:46:38 - [info] Loading palette nodes
20 May 13:46:41 - [info] Worldmap version 2.3.10
20 May 13:46:41 - [info] Dashboard version 2.22.1 started at /ui

```

the big clue is `Error: Cannot find module '/usr/lib/node_modules/node-red/red/red'` on the pi.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 14:43 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/11 "2020-05-20T14:43:11Z")

</div>

I've opened an issue in GitHub about incase you want to see if the author will reply (and hopefully fix it 😁)

> <https://github.com/hjespers/node-red-contrib-solace/issues/1>
>
> device: RPi model 3
> OS: rasbian Buster
> Node-red vv1.0.6
> node.js v12.16.3
> Dashboard v2.22.1
> On starting Node-RED the following shows up in the log
> pi@yellowpi:~ $ node-red
> 20 May...

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 14:44 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/12 "2020-05-20T14:44:21Z")

</div>

That looks like it's from here in solace.js:

> // get the global settings so we can check log level for solace  
> var settings = require(process.env.NODE\_RED\_HOME+"/red/red").settings;

Interestingly, the log level is something you are instructed to set in the settings.js file specified in installation docs. I'm going to see what happens if I edit to hard code the path to that file 😃

---

<div class="post-metadata">

**Author:** ![gclow](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gclow](https://discourse.nodered.org/u/gclow)\
**Post date:** [20 May 2020 14:59 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/13 "2020-05-20T14:59:22Z")

</div>

Thanks very much.

It seems the same issue as was found here:

> [@Modbus TCP and process.env.NODE\_RED\_HOME](https://discourse.nodered.org/t/modbus-tcp-and-process-env-node-red-home/9643/2):
>
> Hi @CaptClaude it looks like that node is still using a way of accessing the Node-RED runtime that has been long deprecated and should have been updated years ago. The 0.20 release of Node-RED changed the internal layout of the code, so the assumptions that node made about how to access the core of the runtime no longer hold true. I see you've already raised an issue on the node - that's the right first place to start in resolving this.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2020 15:10 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/14 "2020-05-20T15:10:10Z")

</div>

good spot 👍, I've just added that to the issue

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 July 2020 15:10 UTC](https://discourse.nodered.org/t/installation-error-with-node-red-contrib-solace/26997/15 "2020-07-19T15:10:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
