Hi,
I have tried to install Mqtt- aedes broker, it is installed but showing error.
Showing
Flows stopped due to missing node types.
how to solve this
Hi,
I have tried to install Mqtt- aedes broker, it is installed but showing error.
can you list out all contrib nodes you have installed please.
Also, can you show us the startup log (text that is written to console) from launching node-red to running
Hi @Steve-Mcl pls find the start up log:
C:\Windows\system32>node-red
9 Jun 12:53:41 - [info]
9 Jun 12:53:41 - [info] Node-RED version: v2.2.2
9 Jun 12:53:41 - [info] Node.js version: v14.0.0
9 Jun 12:53:41 - [info] Windows_NT 10.0.19043 x64 LE
9 Jun 12:53:44 - [info] Loading palette nodes
9 Jun 12:54:22 - [debug] append logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] append Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] Data Analysis logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] Data Analysis Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] Host Available logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] Host Available Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] Levenshtein Distance logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] Levenshtein Distance Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] LevenshteinDistance logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] LevenshteinDistance Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] Load Injector logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] Load Injector Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] Monitor Flow logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] Monitor Flow Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:22 - [debug] os logging turning on logging next 111 log points
9 Jun 12:54:22 - [info] os Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:23 - [debug] Spawn Process logging turning on logging next 111 log points
9 Jun 12:54:23 - [info] Spawn Process Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:23 - [debug] test logging turning on logging next 111 log points
9 Jun 12:54:23 - [info] test Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:23 - [debug] transform logging turning on logging next 111 log points
9 Jun 12:54:23 - [info] transform Copyright 2020 Jaroslav Peter Prib
9 Jun 12:54:28 - [info] Dashboard version 3.1.6 started at /ui
9 Jun 12:54:30 - [warn] ------------------------------------------------------
9 Jun 12:54:30 - [warn] [node-red-contrib-aedes/aedes-mqtt-broker] SyntaxError: Unexpected token '('
9 Jun 12:54:30 - [warn] ------------------------------------------------------
9 Jun 12:54:30 - [info] Settings file : C:\Users\GuhiPradeep.node-red\settings.js
9 Jun 12:54:30 - [info] Context store : 'default' [module=memory]
9 Jun 12:54:30 - [info] User directory : \Users\GuhiPradeep.node-red
9 Jun 12:54:30 - [warn] Projects disabled : editorTheme.projects.enabled=false
9 Jun 12:54:30 - [info] Flows file : \Users\GuhiPradeep.node-red\flows.json
9 Jun 12:54:30 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
9 Jun 12:54:31 - [info] Waiting for missing types to be registered:
9 Jun 12:54:31 - [info] - aedes broker
9 Jun 12:54:31 - [info] Server now running at http://127.0.0.1:1880/
Contrib nodes:
node-red-contrib-aedes
node-red-contrib-bcrypt
node-red-contrib-drawsvg
node-red-contrib-focas
node-red-contrib-loop-processing
node-red-contrib-modbus
node-red-contrib-moment
node-red-contrib-omron-fins
node-red-contrib-opcua
node-red-contrib-postgresql
node-red-contrib-postgrestor-next
node-red-contrib-prib-functions
node-red-contrib-pythonshell
node-red-contrib-re-postgres
node-red-contrib-s7
node-red-contrib-twin-bcrypt
node-red-contrib-ui-artless-gauge
node-red-contrib-ui-led
node-red-contrib-ui-media
node-red-contrib-ui-svg
node-red-contrib-users
Have you modified the src code for this node? Seems odd.
I would uninstall and re-install from command line...
cd C:\Users\GuhiPradeep\.node-red
npm remove node-red-contrib-aedes
npm install node-red-contrib-aedes
then restart
@Steve-Mcl Have you modified the src code for this node? - no
the node is not appearing in search list. it is not showing.
Startup log will be same,
C:\Windows\system32>node-red
9 Jun 15:03:37 - [info]
9 Jun 15:03:37 - [info] Node-RED version: v2.2.2
9 Jun 15:03:37 - [info] Node.js version: v14.0.0
9 Jun 15:03:37 - [info] Windows_NT 10.0.19043 x64 LE
9 Jun 15:03:45 - [info] Loading palette nodes
9 Jun 15:04:46 - [info] Dashboard version 3.1.6 started at /ui
9 Jun 15:07:09 - [warn] ------------------------------------------------------
9 Jun 15:07:09 - [warn] [node-red-contrib-focas/focas] Error: Cannot find module '@protocols/node-focas'
Require stack:
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
9 Jun 15:07:11 - [info] Starting flows
9 Jun 15:07:11 - [error] [users_config:d8c1a479f4df1e06] Node users config is missing
9 Jun 15:07:12 - [info] Started flows
9 Jun 15:07:13 - [error] [function:SVG output animation] SyntaxError: Unexpected token '}' (body:line 10)
connection released
connection released
connection released
connection released
connection released
connection released
9 Jun 15:07:18 - [error] [postgrestor:27b1f81505fc8c66] error: invalid input syntax for type smallint: ""
connection released
connection released
connection released
connection released
connection released
connection released
connection released
Did you follow the instructions precisely?
It looks like you didnt run npm install node-red-contrib-aedes
or you ran it in the wrong directory
Also, can you run...
cd C:\Users\GuhiPradeep\.node-red
npm list node-red-contrib-aedes
and run...
npm list node-red-contrib-aedes -g
Is there a good reason for you to use this? It is nowhere near as performant or easy to use as the stand-alone Mosquitto broker which is what most of us prefer and recommend.
I would argue that point
Using the aedes node is very easy to install and use for simple stuff.
Mosquitto is the tool for the people doing more than that
It is entirely up to each individual of course.
However, even though very few people are using it, we regularly see problems surfacing in the forum. Also it is very resource heavy and performance can, therefore, be pretty dreadful.
And, of course, if you do want something as simple as persistent retention of retained messages, then it isn't at all simple as you will need to independently install MongoDB (with then even greater resource overheads).
Since, in most cases, Mosquitto is available in Linux repositories, its installation for the majority of people is very simple and its default configuration is almost certainly enough for 90%+ of installations.
I have followed the steps, pls find the logs, still the aedes not shown up in list
C:\Users\GuhiPradeep.node-red>npm remove node-red-contrib-aedes
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
removed 49 packages and audited 592 packages in 25.237s
63 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
C:\Users\GuhiPradeep.node-red>npm install node-red-contrib-aedes
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
65 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
C:\Users\GuhiPradeep.node-red>npm list node-red-contrib-aedes
node-red-project@0.0.1 C:\Users\GuhiPradeep.node-red
`-- node-red-contrib-aedes@0.8.1
C:\Users\GuhiPradeep.node-red>npm list node-red-contrib-aedes -g
C:\Program Files\nodejs
`-- (empty)
C:\Users\GuhiPradeep.node-red>
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.