Problem with a Node-red pallet that no longer starts up

Hello

I downloaded this palette:

And now, my Node-Red won't start, here's the error message I get:

juil. 29 18:05:01 GIN Node-RED[33779]: 29 Jul 18:05:01 - [warn] [RED.events] Deprecated use of "nodes-started" event from "/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.js:17:17". Use "flows:started" instead.
juil. 29 18:05:01 GIN Node-RED[33779]: 29 Jul 18:05:01 - [warn] [RED.events] Deprecated use of "nodes-started" event from "node:events:655:8". Use "flows:started" instead.

I want to delete it with Command Line Linux, someone can help me to do that?

Thanks

That is not an error that will stop node-red from starting up. If you want to see why it not starting up then please post the full startup log.

To know how to uninstall it we need to know how you installed it.

Where can I found the full startup log?

It should be in the same place as the errors you posted. If that is syslog then pipe it into grep -i node-red.

How did you install node red and how do you run it?

I can start the server in safe mode with the command: node-red --safe

If I run the server with the node-red command, here are the live logs and why the server crashes :

node-red
30 Jul 08:15:57 - [info]

Bienvenue sur Node-RED
===================

30 Jul 08:15:57 - [info] Node-RED version: v3.1.3
30 Jul 08:15:57 - [info] Node.js  version: v21.5.0
30 Jul 08:15:57 - [info] Linux 6.1.0-17-amd64 x64 LE
30 Jul 08:15:58 - [info] Chargement des noeuds de la palette
30 Jul 08:15:59 - [info] Fichier de paramètres  : /root/.node-red/settings.js
30 Jul 08:15:59 - [info] Stockage contextuel : 'default' [module=memory]
30 Jul 08:15:59 - [info] Répertoire utilisateur : /root/.node-red
30 Jul 08:15:59 - [warn] Projets désactivés : editorTheme.projects.enabled=false
30 Jul 08:15:59 - [info] Fichier des flux : /root/.node-red/flows.json
(node:525727) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
30 Jul 08:15:59 - [info] Le serveur est disponible à l'adresse http://127.0.0.1:1880/
30 Jul 08:15:59 - [warn]

--------------------------------------------------------------------------------------------------------
Votre fichier contenant les identifiants de flux est chiffré à l'aide d'une clé générée par le système.

Si la clé générée par le système est perdue pour une raison quelconque, votre fichier contenant
les identifiants ne sera pas récupérable, vous devrez le supprimer et ressaisir vos identifiants.

Vous pouvez définir votre propre clé en utilisant l'option 'credentialSecret' dans
votre fichier de paramètres. Node-RED rechiffrera alors votre fichier contenant les identifiants
à l'aide de la clé que vous avez choisie la prochaine fois que vous déploierez une modification.
--------------------------------------------------------------------------------------------------------

30 Jul 08:15:59 - [info] Démarrage des flux
30 Jul 08:15:59 - [warn] [RED.events] Deprecated use of "nodes-started" event from "/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.js:17:17". Use "flows:started" instead.
30 Jul 08:15:59 - [warn] [RED.events] Deprecated use of "nodes-started" event from "node:events:655:8". Use "flows:started" instead.
30 Jul 08:15:59 - [red] Uncaught Exception:
30 Jul 08:15:59 - [error] TypeError: Cannot read properties of undefined (reading 'getEntityStates')
    at MyHabitatNode_Adapter_KNX.stateObject (/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.entity.js:83:23)
    at MyHabitatNode_Adapter_KNX.state (/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.entity.js:90:17)
    at MyHabitatNode_Adapter_KNX.ready (/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.entity.js:44:10)
    at MyHabitatNode_Adapter_KNX.ready (/root/.node-red/node_modules/myhabitat-knx/src/nodes/adapters/myhabitat.node.adapter.knx.js:43:13)
    at MyHabitatNode_Adapter_KNX.allNodesStarted (/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.js:79:10)
    at MyHabitatNode_Adapter_KNX.allNodesStarted (/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.adapter.js:39:13)
    at EventEmitter.<anonymous> (/root/.node-red/node_modules/myhabitat/src/nodes/myhabitat.node.js:17:57)
    at Object.onceWrapper (node:events:633:28)
    at EventEmitter.emit (node:events:519:28)
    at Object.start [as startFlows] (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/index.js:411:12)

In safe mode, I can't delete this palette

The answer when i want delete it :
image


Edit :
I had two myhabitat knx. That's probably why it was crashing

In safe-mode I managed to delete one of them. Now it runs correctly but the second one is simply disabled but I can't delete it. What can I do?

If you want to uninstall myhabitat then

cd /root/.node-red
npm remove myhabitat

and restart node-red.

I don't understand what you mean by

You say you deleted it, do you mean you deleted it by selecting the node in the flow and clicking delete? Then you say it you can't delete it.

When I re-started safe-mode, I realized that I had two palettes that looked identical.

I managed to remove one of them permanently. But another remained, which I could only deactivate (as shown on the screen).
Deactivated, restarting Node-Red as normal, it works again. All I need to do now is remove this useless, non-functional palette.

I've followed your instructions:

root@GIN:~/.node-red# npm remove myhabitat

up to date, audited 64 packages in 895ms

28 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
root@GIN:systemctl restart Node-Red.service

But the remaining palette is still there.

Please post the file .node-red/package.json. or look in there yourself to find the name of the package.

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