Looking on the container at the console.out file, it contains:
Wed, 04 May 2016 23:09:54 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at server.js:31:9
Wed, 04 May 2016 23:09:54 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:75:29
events.js:160
throw er; // Unhandled 'error' event
^
Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
at RedisClient.on_error (/home/users/aled/brooklyn-managed-processes/apps/afGGKBDy/entities/NodeJsWebAppService_xKDWLsSL/nodejs-todo/node_modules/redis/index.js:189:24)
at Socket.<anonymous> (/home/users/aled/brooklyn-managed-processes/apps/afGGKBDy/entities/NodeJsWebAppService_xKDWLsSL/nodejs-todo/node_modules/redis/index.js:95:14)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1265:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Searching the debug log for REDISTOGO_URL, I see it logged while provisioning the VM, e.g. the line below, but not subsequently.
Could this environment variable perhaps not be set when we are launching node.js? When I look in the web-console at the activity for launch, then the only environment variables it lists are: PORT="3000".
After fixing https://github.com/brooklyncentral/clocker/issues/298, I deployed the "Node.js Demo Application" but it failed (when waiting for service-up for the node.js entity).
Looking on the container at the console.out file, it contains:
Searching the debug log for
REDISTOGO_URL
, I see it logged while provisioning the VM, e.g. the line below, but not subsequently.Could this environment variable perhaps not be set when we are launching node.js? When I look in the web-console at the activity for
launch
, then the only environment variables it lists are:PORT="3000"
.