Dear all,
Yesterday I tried to install chatbot node through UI----pallete.
It started installing...but nothing happened. Most probably I interrupted somewhere. It resulted in very strange behaviour of the server. I managed to at least disable modules inside the node...but I am unable to remove it. Take a look at attached screen?
How can I remove it through command prompt? I installed node-red with pm2. It is running on vitual machine. When I tried to uninstall, I get this error:
The uninstall commands should be run from the ~/.node-red folder and not from /node-modules
and it should be npm uninstall node-red-contrib-chatbot
Im not using pm2 but based on its docs:
Display all processes status with pm2 list to find out the name you gave node-red process for pm2
then pm2 restart <node_red_app_name>
I restarted it, but it is not helping.
I have a bigger problem, after checking the logs, I realised node-red is restarting on its own every few minutes. Here is the output of the log.
0|node-red |
0|node-red | 14 Feb 08:51:38 - [info] Starting flows
0|node-red | 14 Feb 08:51:38 - [info] Started flows
0|node-red | 14 Feb 08:53:05 - [info] Stopping flows
0|node-red | 14 Feb 08:53:05 - [info] Stopped flows
0|node-red | 14 Feb 08:53:07 - [info]
0|node-red | Welcome to Node-RED
0|node-red | ===================
0|node-red | 14 Feb 08:53:07 - [info] Node-RED version: v2.2.0
0|node-red | 14 Feb 08:53:07 - [info] Node.js version: v14.19.0
0|node-red | 14 Feb 08:53:07 - [info] Linux 5.4.0-1069-azure x64 LE
0|node-red | 14 Feb 08:53:07 - [info] Loading palette nodes
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-redbot
0|node-red | BAIL ON node-red-contrib-chatbot/redbot-config
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-telegram-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-universal-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-slack-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-twilio-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-routee-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-msteams-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-facebook-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-viber-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-message
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-analytics
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-context
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-topic
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-voice
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-language
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-parse
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-command
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-document
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-video
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-image
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-sticker
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-animation
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-audio
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-location
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-ask
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-inline-buttons
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-quick-replies
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-generic-template
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-request
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-log
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-qrcode
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-conversation
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-debug
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-waiting
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-authorized
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-transport
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-rivescript
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-messenger-menu
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-messenger-template
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-telegram-menu
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-context-store
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-inline-query
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-dialog
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-rules
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-params
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-dialogflow
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-invoice
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-invoice-shipping
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-extend
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-support-table
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-card
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-directive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-broadcast
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-speech
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-slack-blocks
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-train
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-intent
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-entity
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-save
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-load
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-pop-message
0|node-red | 14 Feb 08:53:09 - [info] Dashboard version 3.1.5 started at /ui
0|node-red | 14 Feb 08:53:09 - [info] Settings file : /home/demokedes/.node-red/settings.js
0|node-red | 14 Feb 08:53:09 - [info] Context store : 'default' [module=memory]
0|node-red | 14 Feb 08:53:09 - [info] User directory : /home/demokedes/.node-red
0|node-red | 14 Feb 08:53:09 - [warn] Flows file name not set. Generating name using hostname.
0|node-red | 14 Feb 08:53:09 - [info] Flows file : /home/demokedes/.node-red/flows_NodeRed.json
0|node-red | 14 Feb 08:53:09 - [info] Server now running at http://127.0.0.1:1880/
0|node-red | 14 Feb 08:53:09 - [warn]
0|node-red | ---------------------------------------------------------------------
0|node-red | Your flow credentials file is encrypted using a system-generated key.
0|node-red | If the system-generated key is lost for any reason, your credentials
0|node-red | file will not be recoverable, you will have to delete it and re-enter
0|node-red | your credentials.
0|node-red | You should set your own key using the 'credentialSecret' option in
0|node-red | your settings file. Node-RED will then re-encrypt your credentials
0|node-red | file using your chosen key the next time you deploy a change.
0|node-red | ---------------------------------------------------------------------
0|node-red | 14 Feb 08:53:09 - [info] Starting flows
0|node-red | 14 Feb 08:53:09 - [info] Started flows
0|node-red | 14 Feb 08:54:36 - [info] Stopping flows
0|node-red | 14 Feb 08:54:36 - [info] Stopped flows
0|node-red | 14 Feb 08:54:37 - [info]
0|node-red | Welcome to Node-RED
0|node-red | ===================
0|node-red | 14 Feb 08:54:37 - [info] Node-RED version: v2.2.0
0|node-red | 14 Feb 08:54:37 - [info] Node.js version: v14.19.0
0|node-red | 14 Feb 08:54:37 - [info] Linux 5.4.0-1069-azure x64 LE
0|node-red | 14 Feb 08:54:38 - [info] Loading palette nodes
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-redbot
0|node-red | BAIL ON node-red-contrib-chatbot/redbot-config
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-telegram-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-universal-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-slack-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-twilio-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-routee-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-msteams-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-facebook-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-viber-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-receive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-message
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-analytics
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-context
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-topic
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-voice
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-language
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-parse
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-command
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-document
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-video
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-image
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-sticker
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-animation
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-audio
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-location
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-ask
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-inline-buttons
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-quick-replies
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-generic-template
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-request
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-log
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-qrcode
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-conversation
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-debug
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-waiting
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-authorized
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-transport
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-rivescript
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-messenger-menu
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-messenger-template
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-telegram-menu
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-context-store
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-inline-query
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-dialog
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-rules
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-params
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-dialogflow
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-invoice
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-invoice-shipping
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-extend
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-support-table
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-card
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-directive
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-broadcast
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-alexa-speech
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-slack-blocks
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-train
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-intent
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-entity
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-save
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-nlp-load
0|node-red | BAIL ON node-red-contrib-chatbot/chatbot-pop-message
0|node-red | 14 Feb 08:54:40 - [info] Dashboard version 3.1.5 started at /ui
0|node-red | 14 Feb 08:54:40 - [info] Settings file : /home/demokedes/.node-red/settings.js
0|node-red | 14 Feb 08:54:40 - [info] Context store : 'default' [module=memory]
0|node-red | 14 Feb 08:54:40 - [info] User directory : /home/demokedes/.node-red
0|node-red | 14 Feb 08:54:40 - [warn] Flows file name not set. Generating name using hostname.
0|node-red | 14 Feb 08:54:40 - [info] Flows file : /home/demokedes/.node-red/flows_NodeRed.json
0|node-red | 14 Feb 08:54:40 - [info] Server now running at http://127.0.0.1:1880/
0|node-red | 14 Feb 08:54:40 - [warn]
0|node-red | --------------------------------------------------------------```
This started after I tried to install this chatbot node. I am now really confused on how to remove it?
0|node-red | 14 Feb 09:20:20 - [info] Started flows
PM2 | pm2 has been killed by signal, dumping process list before exit...
PM2 | Deleting process 0
PM2 | Stopping app:node-red id:0
0|node-red | 14 Feb 09:21:46 - [info] Stopping flows
0|node-red | 14 Feb 09:21:46 - [info] Stopped flows
PM2 | App [node-red:0] exited with code [0] via signal [SIGINT]
PM2 | pid=22108 msg=process killed
PM2 | Exited peacefully
PM2 | App [node-red:0] starting in -fork mode-
PM2 | TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (22228)
PM2 | at Object.writeFileSync (fs.js:1521:5)
PM2 | at /usr/lib/node_modules/pm2/lib/God/ForkMode.js:264:12
PM2 | at wrapper (/usr/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)
PM2 | at next (/usr/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20)
PM2 | at /usr/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16
PM2 | at WriteStream.<anonymous> (/usr/lib/node_modules/pm2/lib/Utility.js:186:13)
PM2 | at WriteStream.emit (events.js:400:28)
PM2 | at WriteStream.emit (domain.js:537:15)
PM2 | at internal/fs/streams.js:340:12
PM2 | at FSReqCallback.oncomplete (fs.js:179:23)
PM2 | App [node-red:0] online
0|node-red | 14 Feb 09:21:48 - [info]
0|node-red | Welcome to Node-RED
0|node-red | ===================
0|node-red | 14 Feb 09:21:48 - [info] Node-RED version: v2.2.0
0|node-red | 14 Feb 09:21:48 - [info
After running: npm uninstall node-red-contrib-chatbot I don't see chatbot node anymore....there is also no more npm uninstall node-red-contrib-chatbot directorey in the node_modules folder, but it is still causing problems to the server...and it is still under installed nodes in "Manage pallete".
I've tried. It started. And now it didn't restart, or I just don't get any message about restarting.
What next? Does that mean, something is wrong with pm2? Should I increase the size of VM? Currently I have 1 GB of RAM assigned to it.
demokedes@NodeRed:~/.node-red$ sudo pm2 stop node-red
[PM2] Applying action stopProcessId on app [node-red](ids: [ 0 ])
[PM2] [node-red](0) โ
โโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโ
โ id โ name โ namespace โ version โ mode โ pid โ uptime โ โบ โ status โ cpu โ mem โ user โ watching โ
โโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโผโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโค
โ 0 โ node-red โ default โ N/A โ fork โ 0 โ 0 โ 0 โ stopped โ 0% โ 0b โ root โ disabled โ
โโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโดโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโ
demokedes@NodeRed:~/.node-red$ node-red
14 Feb 10:04:56 - [info]
Welcome to Node-RED
===================
14 Feb 10:04:56 - [info] Node-RED version: v2.2.0
14 Feb 10:04:56 - [info] Node.js version: v14.19.0
14 Feb 10:04:56 - [info] Linux 5.4.0-1069-azure x64 LE
14 Feb 10:04:57 - [info] Loading palette nodes
14 Feb 10:04:58 - [info] Dashboard version 3.1.5 started at /ui
14 Feb 10:04:58 - [info] Settings file : /home/demokedes/.node-red/settings.js
14 Feb 10:04:58 - [info] Context store : 'default' [module=memory]
14 Feb 10:04:58 - [info] User directory : /home/demokedes/.node-red
14 Feb 10:04:58 - [warn] Flows file name not set. Generating name using hostname.
14 Feb 10:04:58 - [info] Flows file : /home/demokedes/.node-red/flows_NodeRed.json
14 Feb 10:04:58 - [info] Server now running at http://127.0.0.1:1880/
14 Feb 10:04:58 - [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.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
14 Feb 10:04:58 - [info] Starting flows
14 Feb 10:04:58 - [info] Started flows