Node-Red application does not start on IBM Cloud - Never change the App Name!

  • 04 Sep, 2019

One of my apps does not start after a restart. I changed several things on the Node-Red app and i think the restart will be a good idea.

On the logs view there was no good messages to see what is happening with Node-Red

So i start the terminal and go to use IBM cloud CLI

to get the app log just logon and type ibmcloud cf logs [appname] > log.txt

I saw the following messages

[CELL/0] OUT Cell a64da35a-93fb-4f76-abd8-219869380b84 creating container for instance 6b30e79e-2853-4199-4c3e-1cc0 2019-09-04T13:54:47.36-0300 [CELL/0] OUT Cell a64da35a-93fb-4f76-abd8-219869380b84 successfully created container for instance 6b30e79e-2853-4199-4c3e-1cc0 2019-09-04T13:54:55.45-0300 [CELL/0] OUT Starting health monitoring of container 2019-09-04T13:55:06.64-0300 [APP/PROC/WEB/0] OUT > node-red-bluemix@0.8.0 start /home/vcap/app 2019-09-04T13:55:06.64-0300 [APP/PROC/WEB/0] OUT > node –max-old-space-size=180 index.js –settings ./bluemix-settings.js -v 2019-09-04T13:55:06.98-0300 [APP/PROC/WEB/0] OUT 4 Sep 16:55:06 - Starting Node-RED on IBM Cloud bootstrap 2019-09-04T13:55:06.98-0300 [APP/PROC/WEB/0] OUT 4 Sep 16:55:06 - Loading bluemix-settings.js 2019-09-04T13:55:07.18-0300 [APP/PROC/WEB/0] OUT 4 Sep 16:55:07 - Failed to find Cloudant service: /^IoT-Cool.cloudantNoSQLDB/ 2019-09-04T13:55:07.19-0300 [APP/PROC/WEB/0] ERR module.js:478 2019-09-04T13:55:07.19-0300 [APP/PROC/WEB/0] ERR throw err; 2019-09-04T13:55:07.19-0300 [APP/PROC/WEB/0] ERR ^ 2019-09-04T13:55:07.19-0300 [APP/PROC/WEB/0] ERR Error: Cannot find module ‘./node_modules/node-red/red/runtime/storage/localfilesystem’

Node-Red was unable  connect to Cloudant. But not was changed on Cloudant side.

I changed the Title of the app to another name before the restart, that was the cause of the problem.

I think there is a relation between the APP name and the Cloudant Service linked to the app

After i change the app name to the old one, Node-Red starts again.

Related Posts

Proud to be an IBM Champion 2021

  • 14 Jan, 2021

This history began in 2011 when the category IBM Champions for Social Business was created.At that time there were only 50.  During the following years I was also nominated in other categories such as

Proud to be an IBM Champion 2021Read More

AWS Lambda now supports container images as a packaging format

  • 03 Dec, 2020

You can now package and deploy AWS Lambda(https://aws.amazon.com/lambda/) functions as a container image of up to 10 GB. This makes it easy to build Lambda based applications using familiar container

AWS Lambda now supports container images as a packaging formatRead More

VCP Driver for macOS Big Sur 11.0.x not available yet

  • 24 Nov, 2020

With new version of macOS released which is macOS Big Sur 11.0.x, the latest version of our VCP driver for Macintosh OSX (v5.3.5) now becomes incompatible. The reason for this is because of new drive

VCP Driver for macOS Big Sur 11.0.x not available yetRead More