[support] Spants - NodeRed, MQTT, Dashing, couchDB


Recommended Posts

Hey, I just installed the nodered container (wanted to try and mess with it in home assistant) but I'm having some trouble installing any nodes.  Anyone have any thoughts, here's the install log:
 

--edit - I found an issue on docker hub, the issue was hard links need to be enabled under Global Share Settings:
https://github.com/node-red/node-red-docker/issues/332

 

0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 1ms
7 warn config production Use `--omit=dev` instead.
8 timing config:load:cli Completed in 1ms
9 timing config:load:env Completed in 0ms
10 timing config:load:file:/data/.npmrc Completed in 0ms
11 timing config:load:project Completed in 1ms
12 timing config:load:file:/root/.npmrc Completed in 0ms
13 timing config:load:user Completed in 0ms
14 timing config:load:file:/usr/local/etc/npmrc Completed in 1ms
15 timing config:load:global Completed in 1ms
16 timing config:load:validate Completed in 0ms
17 timing config:load:credentials Completed in 1ms
18 timing config:load:setEnvs Completed in 1ms
19 timing config:load Completed in 9ms
20 timing npm:load:configload Completed in 9ms
21 timing npm:load:mkdirpcache Completed in 3ms
22 timing npm:load:mkdirplogs Completed in 1ms
23 verbose title npm install [email protected]
24 verbose argv "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix" "~" "--production" "--engine-strict" "[email protected]"
25 timing npm:load:setTitle Completed in 1ms
26 timing config:load:flatten Completed in 3ms
27 timing npm:load:display Completed in 5ms
28 verbose logfile logs-max:10 dir:/data/.npm/_logs
29 verbose logfile /data/.npm/_logs/2023-12-03T18_08_57_891Z-debug-0.log
30 timing npm:load:logFile Completed in 6ms
31 timing npm:load:timers Completed in 0ms
32 timing npm:load:configScope Completed in 0ms
33 timing npm:load Completed in 27ms
34 timing arborist:ctor Completed in 0ms
35 silly logfile done cleaning log files
36 timing arborist:ctor Completed in 0ms
37 timing idealTree:init Completed in 12ms
38 timing idealTree:userRequests Completed in 4ms
39 silly idealTree buildDeps
40 silly fetch manifest [email protected]
41 http fetch GET 200 https://registry.npmjs.org/node-red-contrib-home-assistant-websocket 148ms (cache miss)
42 silly placeDep ROOT node-red-contrib-home-assistant-websocket@ OK for: [email protected] want: 0.59.0
43 timing idealTree:#root Completed in 153ms
44 timing idealTree:node_modules/node-red-contrib-home-assistant-websocket Completed in 1ms
45 timing idealTree:buildDeps Completed in 155ms
46 timing idealTree:fixDepFlags Completed in 0ms
47 timing idealTree Completed in 172ms
48 timing command:install Completed in 181ms
49 verbose type invalid-json
50 verbose stack FetchError: invalid json response body at https://registry.npmjs.org/node-red-contrib-home-assistant-websocket reason: Invalid response body while trying to fetch https://registry.npmjs.org/node-red-contrib-home-assistant-websocket: ENOSYS: function not implemented, link '/data/.npm/_cacache/tmp/5fb7a063' -> '/data/.npm/_cacache/content-v2/sha512/5c/6d/39a29f9624fe29b833e5a3f0c7dc3114b8613d3a6d9a560353079424535eb1bd68d551124c1d71926d968f2a89210a200a36d2c820c3a018123ffac54037'
50 verbose stack     at Response.json (/usr/local/lib/node_modules/npm/node_modules/minipass-fetch/lib/body.js:79:13)
50 verbose stack     at async RegistryFetcher.packument (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/registry.js:99:25)
50 verbose stack     at async RegistryFetcher.manifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/registry.js:124:23)
50 verbose stack     at async Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1061:19)
50 verbose stack     at async Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:930:11)
50 verbose stack     at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:211:7)
50 verbose stack     at async Promise.all (index 1)
50 verbose stack     at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:154:5)
50 verbose stack     at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:145:5)
50 verbose stack     at async module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:78:5)
51 verbose cwd /data/.npm
52 verbose Linux 6.1.63-Unraid
53 verbose node v16.20.2
54 verbose npm  v8.19.4
55 error code FETCH_ERROR
56 error errno FETCH_ERROR
57 error invalid json response body at https://registry.npmjs.org/node-red-contrib-home-assistant-websocket reason: Invalid response body while trying to fetch https://registry.npmjs.org/node-red-contrib-home-assistant-websocket: ENOSYS: function not implemented, link '/data/.npm/_cacache/tmp/5fb7a063' -> '/data/.npm/_cacache/content-v2/sha512/5c/6d/39a29f9624fe29b833e5a3f0c7dc3114b8613d3a6d9a560353079424535eb1bd68d551124c1d71926d968f2a89210a200a36d2c820c3a018123ffac54037'
58 verbose exit 1
59 timing npm Completed in 278ms
60 verbose unfinished npm timer reify 1701626937983
61 verbose unfinished npm timer reify:loadTrees 1701626937989
62 verbose code 1
63 error A complete log of this run can be found in:
63 error     /data/.npm/_logs/2023-12-03T18_08_57_891Z-debug-0.log

 

Edited by stanger89
Link to comment
  • 2 weeks later...
  • 3 weeks later...

I just found that couchdb isn't persisting its config.

 

I added CORS configuration, and it started doing what I needed it to do perfectly. But as soon as the docker had to restart (or maybe after an update? not sure actually), this bit of configuration is gone, and all config fields are back to what looks like default/initial config.

 

Can this be fixed please? This is probably a config in the dockerfile or definition of fields for Unraid. Pretty sure this is not a bug in couchdb itself.

Edited by thany
Link to comment
  • 4 weeks later...
On 1/5/2024 at 11:41 PM, thany said:

I just found that couchdb isn't persisting its config.

 

 

Yep. This container template deletes the entire database on upgrade. Hope no-one was storing anything important.

 

appdata/couchdb directory is mapped to Container Path: /usr/local/var/lib/couchdb which appears to be unused.

 

The web config refers to "./data" which I think is "./opt/couchdb/data"?

 

What is the process to flag this app template as broken/unmaintained? Hoping no one else has to waste their afternoon on this.

 

Link to comment
28 minutes ago, _df said:

 

Yep. This container template deletes the entire database on upgrade. Hope no-one was storing anything important.

 

appdata/couchdb directory is mapped to Container Path: /usr/local/var/lib/couchdb which appears to be unused.

 

The web config refers to "./data" which I think is "./opt/couchdb/data"?

 

What is the process to flag this app template as broken/unmaintained? Hoping no one else has to waste their afternoon on this.

 

 

FWIW, my solution was to map the following paths.

/opt/couchdb/data <-> /mnt/user/appdata/couchdb/data
/opt/couchdb/etc/local.d <-> /mnt/user/appdata/couchdb/etc

 

@thany the second line above seems to fix the CORS config persistence for me but you should test carefully.

 

@spants FYI

 

Link to comment
  • 3 weeks later...

I'm trying to install the "node-red-contrib-virtual-smart-home" palette so i can use Alexa commands in Node-RED, but that package expects node.js version > 18.2.0 to be installed (current in the docker is 16.20.2)

 

Can that be updated in the Node-RED docker?

Edited by jowi
Link to comment
  • 4 weeks later...

Hello. I am running into an annoyance with updates to this container where every time the container is updated, all of the themes located in /mnt/user/appdata/nodered/@node-red-contrib-themes get wiped and I need to download the themes and add them back to this folder. Is there a way around this?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.