Giter Club home page Giter Club logo

insurance-bot-dashboard's Introduction

Cloud Insurance Co. - Admin Dashboard

This repository is part of the larger Cloud Insurance Co. project.

Overview

The admin dashboard provides Cloud Insurance Co. administrators with an overview of the ongoing activities on the site. It starts with real-time view on the chat bot conversations providing admins with insights about the interactions between the chat bot and the visitors. It is possible to delete individual log entries.

This project is designed with several front-end technologies, all on top of a configurable, feature-rich webpack build system that's already setup to provide hot reloading, CSS modules with Sass support, unit testing, code coverage reports, bundle splitting, and a whole lot more, while providing amazing developer tools such as Redux CLI (a generator), Redux devtools (Chrome extension), and Storybook for visually developing and testing components.

In order to deploy the full set of microservices involved, check out the insurance-toolchain repo. Otherwise, you can deploy just the app by following the steps here.

Note that two sample logs are inserted when the app is started. If those two log entries are deleted, they are reinserted on the next start.

Requirements

  • node ^6.7.0
  • npm ^3.10.10

Running the app on IBM Cloud

  1. If you do not already have a IBM Cloud account, sign up here

  2. Download and install the IBM Cloud CLI tool

  3. The app depends on the main website app. Make sure to deploy it first.

  4. Clone the app to your local environment from your terminal using the following command:

    git clone https://github.com/IBM-Cloud/insurance-bot-dashboard.git
    
  5. cd into this newly created directory

  6. Open the manifest.yml file and change the host value to something unique.

The host you choose will determinate the subdomain of your application's URL: <host>.mybluemix.net

  1. Connect to IBM Cloud in the command line tool and follow the prompts to log in.

    ibmcloud login
    

    Use ibmcloud target --cf to set org and space; Run ibmcloud regions to find API endpoints.

  2. Create a Watson Tone Analyzer service.

    ibmcloud cf create-service tone_analyzer lite insurance-tone_analyzer
    
  3. Build the app web site

    npm install
    npm run deploy:prod
    
  4. Push the app to IBM Cloud

    ibmcloud cf push --no-start
    
  5. Define a variable pointing to the main site deployment.

    ibmcloud cf set-env insurance-bot-dashboard SOCKET_URL https://your-insurance-bot.mybluemix.net
    
  6. Start your app

    ibmcloud cf start insurance-bot-dashboard
    

And voila! You now have your very own instance of the app running on IBM Cloud.

Running the app locally

  1. If you do not already have a IBM Cloud account, sign up here

  2. The app depends on the main website app. Make sure to deploy it first.

  3. Clone the app to your local environment from your terminal using the following command:

    git clone https://github.com/IBM-Cloud/insurance-bot-dashboard.git
    
  4. cd into this newly created directory

  5. Create a new Watson Tone Analyzer service named insurance-tone_analyzer using your IBM Cloud account

  6. Using vcap-local.template.json as template file, create vcap-local.json

    cp vcap-local.template.json vcap-local.json
    

    Replace the corresponding credentials for the insurance-tone_analyzer and insurance-bot-db services in your vcap-local.json file.

  7. Define an environment variable pointing to the main site (which can be running locally or in IBM Cloud)

    export SOCKET_URL=https://localhost:6040
    
  8. Install the required npm packages using the following command

    npm install
    
  9. Start your app locally with the following command

    npm start
    

This command will start your Node.js web server and print the address where it is listening to requests in the console: server starting on http://localhost:3000.

Additional Improvement

The Improve component of Watson Assistant provides a history of interactions with users of your application. You can use this history to improve your application's understanding of users' inputs.

  1. Navigate to IBM Cloud Dashboard and select the Location under which you have created the services.
  2. Select the Watson Assistant service you have created for this app and click Launch tool.
  3. Select Ana workspace under Workspaces.
  4. On the Watson Assistant dashboard, click the improve icon on the left pane to see various sections.

Sections of the Improve panel:

  • Overview: A summary of conversations that users had with your application.
  • User conversations: A list of individual user utterances. You can update intents and entities while viewing an individual user utterance. Note: A single user conversation may consist of multiple utterances.

Development

Root Resolve

Webpack is configured to make use of resolve.root, which lets you import local packages as if you were traversing from the root of your ~/src directory. Here's an example:

// current file: ~/src/views/some/nested/View.js
// What used to be this:
import SomeComponent from '../../../components/SomeComponent'

// Can now be this, HORRAY!:
import SomeComponent from 'components/SomeComponent'

Globals

These are global variables available to you anywhere in your source code. If you wish to modify them, they can be found as the globals key in ~/config/index.js. When adding new globals, make sure you also add them to ~/.eslintrc.

Variable Description
process.env.NODE_ENV the active NODE_ENV when the build started
__DEV__ True when process.env.NODE_ENV is development
__PROD__ True when process.env.NODE_ENV is production
__TEST__ True when process.env.NODE_ENV is test
__DEBUG__ True when process.env.NODE_ENV is development and cli arg --no_debug is not set (npm run dev:no-debug)
__BASENAME__ history basename option
__SOCKET_URL__ The websocket endpoint for the main website. It is initialized from process.env.SOCKET_URL variable specified as https://host:port.

Cleanup

See the Cleanup section in the toolchain repository for instructions on how to remove the resources associated with the entire project.

License

See License.txt for license information.

insurance-bot-dashboard's People

Contributors

colbycheeze avatar data-henrik avatar l2fprod avatar rvennam avatar rvennam987 avatar vidyasagarmsc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

insurance-bot-dashboard's Issues

Dashboard fails to start due to Tone Analyzer Argument error

Using the "Deploy to IBM Cloud" button to deploy the Cloud Insurance Co. Toolchain - https://github.com/IBM-Cloud/insurance-toolchain, the insurance-bot-dashboard container fails to start due to an Argument Error for the Tone Analyzer component. See the ibmcloud cf logs output extracted here:
2018-08-20T17:58:43.58+1000 [APP/PROC/WEB/0] OUT > [email protected] start /home/vcap/app
2018-08-20T17:58:43.58+1000 [APP/PROC/WEB/0] OUT > better-npm-run start
2018-08-20T17:58:43.88+1000 [APP/PROC/WEB/0] OUT running better-npm-run in /home/vcap/app
2018-08-20T17:58:43.91+1000 [APP/PROC/WEB/0] OUT Executing script: start
2018-08-20T17:58:43.91+1000 [APP/PROC/WEB/0] OUT to be executed: babel-node bin/server
2018-08-20T17:58:45.94+1000 [APP/PROC/WEB/0] ERR Mon, 20 Aug 2018 07:58:45 GMT app:config Creating default configuration.
2018-08-20T17:58:46.04+1000 [APP/PROC/WEB/0] ERR Mon, 20 Aug 2018 07:58:46 GMT app:config Looking for environment overrides for NODE_ENV "production".
2018-08-20T17:58:46.23+1000 [APP/PROC/WEB/0] ERR Mon, 20 Aug 2018 07:58:46 GMT app:config Found overrides, applying to default configuration.
2018-08-20T17:58:47.99+1000 [APP/PROC/WEB/0] ERR Mon, 20 Aug 2018 07:58:47 GMT app:webpack:config Create configuration.
2018-08-20T17:58:47.99+1000 [APP/PROC/WEB/0] ERR Mon, 20 Aug 2018 07:58:47 GMT app:webpack:config Enable plugins for production (OccurenceOrder, Dedupe, UglifyJS, & GZip).
2018-08-20T17:58:48.16+1000 [APP/PROC/WEB/0] ERR Mon, 20 Aug 2018 07:58:48 GMT app:webpack:config Apply ExtractTextPlugin to CSS loaders.
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR /home/vcap/app/node_modules/watson-developer-cloud/lib/base_service.js:73
2018-08-20T17:58:49.09+1000 [API/2] OUT Process has crashed with type: "web"
2018-08-20T17:58:49.10+1000 [API/2] OUT App instance exited with guid 93467afa-05c8-41f7-b972-02ec28dce85f payload: {"instance"=>"55f88f5c-0d1b-450f-4d33-0f59", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 1", "crash_count"=>11, "crash_timestamp"=>1534751929069148548, "version"=>"b769c723-07c7-4a26-80d8-42c437220aa0"}
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR throw new Error('Argument error: username and password are required unless use_unauthenticated is set');
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR ^
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR Error: Argument error: username and password are required unless use_unauthenticated is set
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at ToneAnalyzerV3.BaseService.initCredentials (/home/vcap/app/node_modules/watson-developer-cloud/lib/base_service.js:73:13)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at ToneAnalyzerV3.BaseService (/home/vcap/app/node_modules/watson-developer-cloud/lib/base_service.js:44:18)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at new ToneAnalyzerV3 (/home/vcap/app/node_modules/watson-developer-cloud/tone-analyzer/v3.js:31:15)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Object.value (/home/vcap/app/node_modules/watson-developer-cloud/index.js:91:14)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Object. (/home/vcap/app/server/logs.js:80:25)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Module._compile (module.js:556:32)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at loader (/home/vcap/app/node_modules/babel-register/lib/node.js:144:5)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Object.require.extensions.(anonymous function) [as .js] (/home/vcap/app/node_modules/babel-register/lib/node.js:154:7)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Module.load (module.js:473:32)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at tryModuleLoad (module.js:432:12)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Function.Module._load (module.js:424:3)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Module.require (module.js:483:17)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at require (internal/module.js:20:19)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Object. (/home/vcap/app/server/main.js:11:1)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at Module._compile (module.js:556:32)
2018-08-20T17:58:48.98+1000 [APP/PROC/WEB/0] ERR at loader (/home/vcap/app/node_modules/babel-register/lib/node.js:144:5)
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.4.0-109-generic
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! node v6.7.0
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! code ELIFECYCLE
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! [email protected] start: better-npm-run start
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! Exit status 1
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR!
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! Failed at the [email protected] start script 'better-npm-run start'.
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! Make sure you have the latest version of node.js and npm installed.
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! If you do, this is most likely a problem with the insurance-bot-dashboard package,
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! not with npm itself.
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! Tell the author that this fails on your system:
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! better-npm-run start
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! You can get information on how to open an issue for this project with:
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! npm bugs insurance-bot-dashboard
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! Or if that isn't available, you can get their info via:
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! npm owner ls insurance-bot-dashboard
2018-08-20T17:58:49.01+1000 [APP/PROC/WEB/0] ERR npm ERR! There is likely additional logging output above.
2018-08-20T17:58:49.03+1000 [APP/PROC/WEB/0] ERR npm ERR! Please include the following file with any support request:
2018-08-20T17:58:49.03+1000 [APP/PROC/WEB/0] ERR npm ERR! /home/vcap/app/npm-debug.log
2018-08-20T17:58:49.05+1000 [APP/PROC/WEB/0] OUT Exit status 1
2018-08-20T17:58:49.05+1000 [CELL/SSHD/0] OUT Exit status 0
2018-08-20T17:58:49.07+1000 [CELL/0] OUT Cell ff271f7c-9ed4-486a-9fba-515132fc5f18 stopping instance 55f88f5c-0d1b-450f-4d33-0f59
2018-08-20T17:58:49.07+1000 [CELL/0] OUT Cell ff271f7c-9ed4-486a-9fba-515132fc5f18 destroying container for instance 55f88f5c-0d1b-450f-4d33-0f59
2018-08-20T17:58:49.30+1000 [PROXY/0] OUT Exit status 137
2018-08-20T17:58:51.12+1000 [CELL/0] OUT Cell ff271f7c-9ed4-486a-9fba-515132fc5f18 successfully destroyed container for instance 55f88f5c-0d1b-450f-4d33-0f59

Running "npm run deploy:prod" fails on a mac

Hi,

I'm trying to follow the stand-alone steps to get this app deployed into a dedicated Bluemix environment that doesn't have the tool chain service provisioned. I see the following error trying to run "npm run deploy:prod". It seems that babel has been deprecated in favor of cli. Could you please help update the scripts to support this?

Thanks!

running better-npm-run in bot-dashboard
Executing script: compile

to be executed: babel-node bin/compile
/CSG-Bluemix-bot/bot-dashboard/bin/compile.js:1
(function (exports, require, module, __filename, __dirname) { import fs from 'fs-extra';
^^^^^^

SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at loader (/CSG-Bluemix-bot/bot-dashboard/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/CSG-Bluemix-bot/bot-dashboard/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:475:10)
at Object. (/CSG-Bluemix-bot/bot-dashboard/node_modules/babel-cli/lib/_babel-node.js:154:22)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)

Build failed in dev and prod

The current build (npm run deploy:prod) is failing with

  app:build:webpack-compiler ./~/react-tap-event-plugin/src/injectTapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/EventPluginHub' in /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules/react-tap-event-plugin/src
resolve module react/lib/EventPluginHub in /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules/react-tap-event-plugin/src
  looking for modules in /Users/fred/dev/cloudco/insurance-bot-dashboard/src
    /Users/fred/dev/cloudco/insurance-bot-dashboard/src/react doesn't exist (module as directory)
  looking for modules in /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules
    resolve 'file' or 'directory' lib/EventPluginHub in /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules/react
      resolve file
        /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules/react/lib/EventPluginHub doesn't exist
        /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules/react/lib/EventPluginHub.js doesn't exist
        /Users/fred/dev/cloudco/insurance-bot-dashboard/node_modules/react/lib/EventPluginHub.jsx doesn't exist

Something may have changed in the tools we depend on.

I could reproduce the compilation failure by first deleting "node_modules" and then doing npm install, npm run deploy:prod.

Dashboard does not run anymore.

I deployed the APP using a toolchain or manually. The Dashboard App is running bit only shows a text output with "Not Found" as content. No meaningful error in the log file.

Does not longer deploy on latest buildpacks ootb old npm packages?

Staging...
-----> IBM SDK for Node.js Buildpack v3.20-20180403-1426
Based on Cloud Foundry Node.js Buildpack v1.5.24
-----> Creating runtime environment

      NPM_CONFIG_PRODUCTION=true
      NODE_MODULES_CACHE=true
      NPM_CONFIG_LOGLEVEL=error

-----> Installing binaries
NODE_ENV=production
Downloading and installing node 6.7.0...
engines.npm (package.json): ^3.0.0
engines.node (package.json): 6.7.0

      Resolving npm version ^3.0.0 via semver.io...
      Downloading and installing npm 3.10.10 (replacing version 3.10.3)...

-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Checking and configuring service extensions before installing dependencies
Installing node modules (package.json)
-----> Building dependencies
npm ERR! node v6.7.0
npm ERR! code EREADFILE
npm ERR! argv "/tmp/app/vendor/node/bin/node" "/tmp/app/vendor/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/app/.npmrc"
npm ERR! Linux 4.4.0-109-generic

      npm ERR! npm  v3.10.10
      npm ERR! Error extracting /home/vcap/.npm/cloudant/1.9.0/package.tgz archive: ENOENT: no such file or directory, open '/home/vcap/.npm/cloudant/1.9.0/package.tgz'
      npm ERR!
      npm ERR! If you need help, you may report this error at:
      npm ERR!     <https://github.com/npm/npm/issues>
      npm ERR!     /tmp/app/npm-debug.log
      
      npm ERR! Please include the following file with any support request:

-----> Build failed

Failed to compile droplet: Failed to compile droplet: exit status 1

Exit status 223
Staging failed: STG: Exited with status 223
Stopping instance 92202581-8e1d-4c03-8495-f19d0934a3f6
Destroying container
Successfully destroyed container

Could not deploy on Bluemix Buildpack problems with [email protected]

There seems to be a problem with gyp and the buildpack used on bleumix please check this log.
API/10Updated app with guid 95eec182-64c2-47b9-afd8-fdc7c05bc993 ({"state"=>"STARTED"})Jan 8, 2017 11:06:37 AM
STG/0Downloading java_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloading ruby_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloading swift_buildpack_v2_0_2-20161118-1326...Jan 8, 2017 11:06:37 AM
STG/0Downloading nodejs_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloading go_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloaded ruby_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloaded go_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloading xpages_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloaded nodejs_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloading php_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloaded java_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloading staticfile_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloading binary_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloaded swift_buildpack_v2_0_2-20161118-1326Jan 8, 2017 11:06:37 AM
STG/0Downloading liberty-for-java_v3_4_1-20161030-2241...Jan 8, 2017 11:06:37 AM
STG/0Downloaded xpages_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloading sdk-for-nodejs_v3_8-20161006-1211...Jan 8, 2017 11:06:37 AM
STG/0Downloaded python_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloading liberty-for-java_v3_5-20161114-1152...Jan 8, 2017 11:06:37 AM
STG/0Downloaded binary_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloaded staticfile_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloaded php_buildpackJan 8, 2017 11:06:37 AM
STG/0Downloading dotnet-core_v1_0_1-20161005-1225...Jan 8, 2017 11:06:37 AM
STG/0Downloading xpages_buildpack_v1_2_1-20160913-103...Jan 8, 2017 11:06:37 AM
STG/0Downloaded liberty-for-java_v3_4_1-20161030-2241Jan 8, 2017 11:06:37 AM
STG/0Downloading sdk-for-nodejs...Jan 8, 2017 11:06:37 AM
STG/0Downloaded sdk-for-nodejs_v3_8-20161006-1211Jan 8, 2017 11:06:37 AM
STG/0Downloaded liberty-for-java_v3_5-20161114-1152Jan 8, 2017 11:06:37 AM
STG/0Downloading swift_buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloaded xpages_buildpack_v1_2_1-20160913-103Jan 8, 2017 11:06:37 AM
STG/0Downloaded dotnet-core_v1_0_1-20161005-1225Jan 8, 2017 11:06:37 AM
STG/0Downloading dotnet-core...Jan 8, 2017 11:06:37 AM
STG/0Downloading noop-buildpack...Jan 8, 2017 11:06:37 AM
STG/0Downloaded liberty-for-javaJan 8, 2017 11:06:37 AM
STG/0Downloaded sdk-for-nodejsJan 8, 2017 11:06:37 AM
STG/0Downloaded dotnet-coreJan 8, 2017 11:06:37 AM
STG/0Creating containerJan 8, 2017 11:06:37 AM
STG/0Downloaded noop-buildpackJan 8, 2017 11:06:37 AM
STG/0Successfully created containerJan 8, 2017 11:06:45 AM
STG/0Downloading app package...Jan 8, 2017 11:06:45 AM
STG/0Staging...Jan 8, 2017 11:06:46 AM
STG/0Downloaded app package (835K)Jan 8, 2017 11:06:46 AM
STG/0-----> IBM SDK for Node.js Buildpack v3.9-20161128-1327Jan 8, 2017 11:06:47 AM
STG/0 Based on Cloud Foundry Node.js Buildpack v1.5.20Jan 8, 2017 11:06:47 AM
STG/0-----> Creating runtime environmentJan 8, 2017 11:06:47 AM
STG/0Jan 8, 2017 11:06:47 AM
STG/0 NPM_CONFIG_LOGLEVEL=errorJan 8, 2017 11:06:47 AM
STG/0 NODE_MODULES_CACHE=trueJan 8, 2017 11:06:47 AM
STG/0-----> Installing binariesJan 8, 2017 11:06:47 AM
STG/0 NPM_CONFIG_PRODUCTION=trueJan 8, 2017 11:06:47 AM
STG/0 Resolving node version >=4.2.0 via 'node-version-resolver'Jan 8, 2017 11:06:47 AM
STG/0 engines.npm (package.json): ^3.0.0Jan 8, 2017 11:06:47 AM
STG/0 Installing IBM SDK for Node.js (4.6.2) from cacheJan 8, 2017 11:06:47 AM
STG/0 Resolving npm version ^3.0.0 via semver.io...Jan 8, 2017 11:06:48 AM
STG/0 Downloading and installing npm 3.10.10 (replacing version 2.15.11)...Jan 8, 2017 11:06:49 AM
STG/0-----> Restoring cacheJan 8, 2017 11:06:59 AM
STG/0 Skipping cache restore (new runtime signature)Jan 8, 2017 11:06:59 AM
STG/0-----> Checking and configuring service extensions before installing dependenciesJan 8, 2017 11:06:59 AM
STG/0-----> Building dependenciesJan 8, 2017 11:07:00 AM
STG/0 Installing node modules (package.json)Jan 8, 2017 11:07:00 AM
STG/0 > [email protected] install /tmp/app/node_modules/node-zopfliJan 8, 2017 11:08:14 AM
STG/0Jan 8, 2017 11:08:14 AM
STG/0Jan 8, 2017 11:08:14 AM
STG/0 > node-pre-gyp install --fallback-to-buildJan 8, 2017 11:08:14 AM
STG/0 node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp)Jan 8, 2017 11:08:16 AM
STG/0 node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v46-linux-x64.tar.gzJan 8, 2017 11:08:16 AM
STG/0 gyp ERR! configure errorJan 8, 2017 11:08:17 AM
STG/0 gyp ERR! stack Error: gyp failed with exit code: nullJan 8, 2017 11:08:17 AM
STG/0 gyp ERR! stack at emitTwo (events.js:87:13)Jan 8, 2017 11:08:17 AM
STG/0 gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)Jan 8, 2017 11:08:17 AM
STG/0 gyp ERR! System Linux 3.19.0-33-genericJan 8, 2017 11:08:17 AM
STG/0 gyp ERR! command "/tmp/app/vendor/node/bin/node" "/tmp/app/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/tmp/app/node_modules/node-zopfli/lib/binding/node-v46-linux-x64/zopfli.node" "--module_name=zopfli" "--module_path=/tmp/app/node_modules/node-zopfli/lib/binding/node-v46-linux-x64"Jan 8, 2017 11:08:17 AM
STG/0 gyp ERR! node -v v4.6.2Jan 8, 2017 11:08:17 AM
STG/0 gyp ERR! cwd /tmp/app/node_modules/node-zopfliJan 8, 2017 11:08:17 AM
STG/0 gyp ERR! node-gyp -v v3.4.0Jan 8, 2017 11:08:17 AM
STG/0 gyp ERR! not okJan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! build errorJan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! stack Error: Failed to execute '/tmp/app/vendor/node/bin/node /tmp/app/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/tmp/app/node_modules/node-zopfli/lib/binding/node-v46-linux-x64/zopfli.node --module_name=zopfli --module_path=/tmp/app/node_modules/node-zopfli/lib/binding/node-v46-linux-x64' (1)Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! stack at ChildProcess. (/tmp/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29)Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! stack at emitTwo (events.js:87:13)Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:854:16)Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! command "/tmp/app/vendor/node/bin/node" "/tmp/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! node -v v4.6.2Jan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! not okJan 8, 2017 11:08:17 AM
STG/0 node-pre-gyp ERR! cwd /tmp/app/node_modules/node-zopfliJan 8, 2017 11:08:17 AM
STG/0 Failed to execute '/tmp/app/vendor/node/bin/node /tmp/app/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/tmp/app/node_modules/node-zopfli/lib/binding/node-v46-linux-x64/zopfli.node --module_name=zopfli --module_path=/tmp/app/node_modules/node-zopfli/lib/binding/node-v46-linux-x64' (1)Jan 8, 2017 11:08:17 AM
STG/0-----> Build failedJan 8, 2017 11:08:17 AM
STG/0/tmp/buildpacks/a44d7b5afe22d91147f8e49a730b9f3a/lib/dependencies.sh: line 1: 258 Killed npm install --unsafe-perm --userconfig $build_dir/.npmrc 2>&1Jan 8, 2017 11:08:17 AM
STG/0Jan 8, 2017 11:08:18 AM
STG/0 - Dangerous semver range (>) in engines.nodeJan 8, 2017 11:08:18 AM
STG/0Jan 8, 2017 11:08:18 AM
STG/0 Some possible problems:Jan 8, 2017 11:08:18 AM
STG/0Failed to compile dropletJan 8, 2017 11:08:18 AM
STG/0 http://docs.cloudfoundry.org/buildpacks/node/node-tips.htmlJan 8, 2017 11:08:18 AM
STG/0Staging failed: Exited with status 223 (out of memory)Jan 8, 2017 11:08:18 AM
STG/0Destroying containerJan 8, 2017 11:08:18 AM
API/5Failed to stage application: staging failedJan 8, 2017 11:08:18 AM
STG/0Successfully destroyed containerJan 8, 2017 11:08:20 AM
API/6Updated app with guid 95eec182-64c2-47b9-afd8-fdc7c05bc993 ({"name"=>"insurance-toolchain-rm2017-dashboard-OLD-1483870649"})Jan 8, 2017 11:16:15 AM
API/1Updated app with guid 95eec182-64c2-47b9-afd8-fdc7c05bc993 ({"name"=>"insurance-toolchain-rm2017-dashboard"})

Cloudant Issue with npm -- see stackoverflow thread

Cloudant npm faces the same issue described here:
https://stackoverflow.com/questions/48848643/error-while-deploying-nodejs-app-on-ibm-bluemix
2018-04-25T19:36:35.98+0000 [STG/0] OUT npm ERR! Error extracting /home/vcap/.npm/cloudant/1.9.0/package.tgz archive: ENOENT: no such file or directory, open '/home/vcap/.npm/cloudant/1.9.0/package.tgz' 2018-04-25T19:36:35.98+0000 [STG/0] OUT npm ERR! 2018-04-25T19:36:35.98+0000 [STG/0] OUT npm ERR! If you need help, you may report this error at: 2018-04-25T19:36:35.98+0000 [STG/0] OUT npm ERR! <https://github.com/npm/npm/issues> 2018-04-25T19:36:36.02+0000 [STG/0] OUT 2018-04-25T19:36:36.02+0000 [STG/0] OUT npm ERR! Please include the following file with any support request: 2018-04-25T19:36:36.02+0000 [STG/0] OUT npm ERR! /tmp/app/npm-debug.log 2018-04-25T19:36:36.05+0000 [STG/0] OUT -----> Build failed

Dashboard App does not deploy

I followed the directions in the demo script and could not get the dashboard app to deploy. The other 3 apps deploy correctly.

On the Bluemix dashboard under the Runtime tab it says there is no runtime. There are connections to Mongo and the Tone Analyzer service.

When I go into the Toolchain for the dashboard I see that the Deploy stage failed. The Build stage passed. I have included the log for the failed deploy stage.

Can someone help me get the Dashboard to deploy?

Deploy Log for Dashboard.txt

dashboard hangs, not displaying any info

Going through the deme script, I ended up opening my (prod) dashboard app, it displays the "loading" circle, not displaying any info. "ALL CHATS (0)" although I have a chat open with Ana.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.