将bluemix node.js应用程序上的解析部署到bluemix失败

将bluemix node.js应用程序上的解析部署到bluemix失败,node.js,mongodb,parse-platform,ibm-cloud,compose,Node.js,Mongodb,Parse Platform,Ibm Cloud,Compose,我正在Bluemix中部署node.js,基本上是从parse.com迁移到Bluemix 以下错误是什么意思?我如何解决它?我正在使用CF命令行工具。 日志附在下面。 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -----&

我正在Bluemix中部署node.js,基本上是从parse.com迁移到Bluemix

以下错误是什么意思?我如何解决它?我正在使用CF命令行工具。 日志附在下面。 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

-----> Checking and configuring service extensions after installing dependencies
    -----> Installing App Management
    -----> Caching build
           Clearing previous node cache
           Saving 2 cacheDirectories (default):
           - node_modules
           - bower_components (nothing to cache)
    -----> Build succeeded!
           ├── cf-deployment-tracker-client@0.0.7
           ├── express@4.13.4
           └── parse-server@2.1.2

    -----> Uploading droplet (21M)

    0 of 1 instances running, 1 starting
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 starting
    0 of 1 instances running, 1 starting
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 starting
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 down
    0 of 1 instances running, 1 failing
    FAILED
    Start unsuccessful

    TIP: use 'cf logs sobmangoDB --recent' for more information



    2016-02-20T03:15:08.65-0500 [STG/0]      ERR 
    2016-02-20T03:15:14.31-0500 [STG/34]     OUT -----> Uploading droplet (21M)
    2016-02-20T03:15:21.82-0500 [DEA/34]     OUT Starting app instance (index 0) with guid f372acf6-f8de-4f97-94d1-661b945ac7b6
    2016-02-20T03:15:34.09-0500 [App/0]      OUT 
    2016-02-20T03:15:34.09-0500 [App/0]      OUT > parse-on-bluemix@0.0.1 start /home/vcap/app
    2016-02-20T03:15:34.09-0500 [App/0]      OUT > node index.js
    2016-02-20T03:15:35.44-0500 [App/0]      ERR 
    2016-02-20T03:15:35.44-0500 [App/0]      ERR /home/vcap/app/index.js:25
    2016-02-20T03:15:35.44-0500 [App/0]      ERR   throw 'Please apply the Application ID from Parse.com';
    2016-02-20T03:15:35.44-0500 [App/0]      ERR   ^
    2016-02-20T03:15:35.44-0500 [App/0]      ERR Please apply the Application ID from Parse.com
    2016-02-20T03:15:35.46-0500 [App/0]      ERR npm ERR! Linux 3.19.0-25-generic
    2016-02-20T03:15:35.46-0500 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
    2016-02-20T03:15:35.46-0500 [App/0]      ERR npm ERR! node v4.2.5
    2016-02-20T03:15:35.46-0500 [App/0]      ERR npm ERR! npm  v2.14.12
    2016-02-20T03:15:35.46-0500 [App/0]      ERR npm ERR! code ELIFECYCLE
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! parse-on-bluemix@0.0.1 start: `node index.js`
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! Exit status 1
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! 
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! Failed at the parse-on-bluemix@0.0.1 start script 'node index.js'.
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! This is most likely a problem with the parse-on-bluemix package,
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! not with npm itself.
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! Tell the author that this fails on your system:
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR!     node index.js
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! You can get their info via:
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR!     npm owner ls parse-on-bluemix
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! There is likely additional logging output above.
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR! Please include the following file with any support request:
    2016-02-20T03:15:35.47-0500 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
    2016-02-20T03:15:35.54-0500 [DEA/34]     ERR Instance (index 0) failed to start accepting connections
    2016-02-20T03:15:35.60-0500 [API/2]      OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"c5fcad4e778e4d009c4877d195bb5731", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956135}
    2016-02-20T03:15:35.63-0500 [API/10]     OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"c5fcad4e778e4d009c4877d195bb5731", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956135}
    2016-02-20T03:16:22.82-0500 [DEA/63]     OUT Starting app instance (index 0) with guid f372acf6-f8de-4f97-94d1-661b945ac7b6
    2016-02-20T03:16:35.01-0500 [App/0]      OUT 
    2016-02-20T03:16:35.01-0500 [App/0]      OUT > parse-on-bluemix@0.0.1 start /home/vcap/app
    2016-02-20T03:16:35.01-0500 [App/0]      OUT > node index.js
    2016-02-20T03:16:36.37-0500 [App/0]      ERR 
    2016-02-20T03:16:36.37-0500 [App/0]      ERR /home/vcap/app/index.js:25
    2016-02-20T03:16:36.37-0500 [App/0]      ERR   throw 'Please apply the Application ID from Parse.com';
    2016-02-20T03:16:36.37-0500 [App/0]      ERR   ^
    2016-02-20T03:16:36.37-0500 [App/0]      ERR Please apply the Application ID from Parse.com
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! Linux 3.19.0-25-generic
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! node v4.2.5
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! npm  v2.14.12
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! code ELIFECYCLE
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! parse-on-bluemix@0.0.1 start: `node index.js`
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! Exit status 1
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! 
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! Failed at the parse-on-bluemix@0.0.1 start script 'node index.js'.
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! This is most likely a problem with the parse-on-bluemix package,
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! not with npm itself.
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! Tell the author that this fails on your system:
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR!     node index.js
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! You can get their info via:
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR!     npm owner ls parse-on-bluemix
    2016-02-20T03:16:36.40-0500 [App/0]      ERR npm ERR! There is likely additional logging output above.
    2016-02-20T03:16:36.41-0500 [App/0]      ERR npm ERR! Please include the following file with any support request:
    2016-02-20T03:16:36.41-0500 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
    2016-02-20T03:16:36.48-0500 [API/1]      OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"186cd8bbf1284ba0846441e330db833b", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956196}
    2016-02-20T03:16:36.50-0500 [DEA/63]     ERR Instance (index 0) failed to start accepting connections
    2016-02-20T03:16:36.52-0500 [API/0]      OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"186cd8bbf1284ba0846441e330db833b", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956196}
    2016-02-20T03:17:24.04-0500 [DEA/196]    OUT Starting app instance (index 0) with guid f372acf6-f8de-4f97-94d1-661b945ac7b6
    2016-02-20T03:17:36.99-0500 [App/0]      OUT 
    2016-02-20T03:17:36.99-0500 [App/0]      OUT > parse-on-bluemix@0.0.1 start /home/vcap/app
    2016-02-20T03:17:36.99-0500 [App/0]      OUT > node index.js
    2016-02-20T03:17:38.42-0500 [App/0]      ERR 
    2016-02-20T03:17:38.42-0500 [App/0]      ERR /home/vcap/app/index.js:25
    2016-02-20T03:17:38.42-0500 [App/0]      ERR   throw 'Please apply the Application ID from Parse.com';
    2016-02-20T03:17:38.42-0500 [App/0]      ERR   ^
    2016-02-20T03:17:38.42-0500 [App/0]      ERR Please apply the Application ID from Parse.com
    2016-02-20T03:17:38.45-0500 [App/0]      ERR npm ERR! Linux 3.19.0-25-generic
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! node v4.2.5
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! npm  v2.14.12
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! code ELIFECYCLE
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! parse-on-bluemix@0.0.1 start: `node index.js`
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! Exit status 1
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! 
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! Failed at the parse-on-bluemix@0.0.1 start script 'node index.js'.
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! This is most likely a problem with the parse-on-bluemix package,
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! not with npm itself.
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! Tell the author that this fails on your system:
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR!     node index.js
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! You can get their info via:
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR!     npm owner ls parse-on-bluemix
    2016-02-20T03:17:38.46-0500 [App/0]      ERR npm ERR! There is likely additional logging output above.
    2016-02-20T03:17:38.47-0500 [App/0]      ERR npm ERR! Please include the following file with any support request:
    2016-02-20T03:17:38.47-0500 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
    2016-02-20T03:17:38.58-0500 [API/8]      OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"bd07162306f0482a8cf663b49926d989", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956258}
    2016-02-20T03:17:38.58-0500 [DEA/196]    ERR Instance (index 0) failed to start accepting connections
    2016-02-20T03:17:38.62-0500 [API/10]     OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"bd07162306f0482a8cf663b49926d989", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956258}
    2016-02-20T03:18:22.69-0500 [DEA/56]     OUT Starting app instance (index 0) with guid f372acf6-f8de-4f97-94d1-661b945ac7b6
    2016-02-20T03:18:37.56-0500 [App/0]      OUT 
    2016-02-20T03:18:37.56-0500 [App/0]      OUT > parse-on-bluemix@0.0.1 start /home/vcap/app
    2016-02-20T03:18:37.56-0500 [App/0]      OUT > node index.js
    2016-02-20T03:18:39.40-0500 [App/0]      ERR 
    2016-02-20T03:18:39.40-0500 [App/0]      ERR /home/vcap/app/index.js:25
    2016-02-20T03:18:39.40-0500 [App/0]      ERR   throw 'Please apply the Application ID from Parse.com';
    2016-02-20T03:18:39.40-0500 [App/0]      ERR   ^
    2016-02-20T03:18:39.40-0500 [App/0]      ERR Please apply the Application ID from Parse.com
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! Linux 3.19.0-25-generic
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! node v4.2.5
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! npm  v2.14.12
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! code ELIFECYCLE
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! parse-on-bluemix@0.0.1 start: `node index.js`
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! Exit status 1
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! 
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! Failed at the parse-on-bluemix@0.0.1 start script 'node index.js'.
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! This is most likely a problem with the parse-on-bluemix package,
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! not with npm itself.
    2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! Tell the author th

at this fails on your system:
        2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR!     node index.js
        2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! You can get their info via:
        2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR!     npm owner ls parse-on-bluemix
        2016-02-20T03:18:39.42-0500 [App/0]      ERR npm ERR! There is likely additional logging output above.
        2016-02-20T03:18:39.43-0500 [App/0]      ERR npm ERR! Please include the following file with any support request:
        2016-02-20T03:18:39.43-0500 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
        2016-02-20T03:18:39.52-0500 [DEA/56]     ERR Instance (index 0) failed to start accepting connections
2016-02-20T03:18:39.55-0500 [API/5]      OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"d88f3c035bc64e7ba3d1680859cc14d1", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956319}
2016-02-20T03:18:39.56-0500 [API/3]      OUT App instance exited with guid f372acf6-f8de-4f97-94d1-661b945ac7b6 payload: {"cc_partition"=>"default", "droplet"=>"f372acf6-f8de-4f97-94d1-661b945ac7b6", "version"=>"5ea8150c-193e-4be1-83c6-aa7f6799e26f", "instance"=>"d88f3c035bc64e7ba3d1680859cc14d1", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1455956319}

正如错误明确指出的那样

 ERR   throw 'Please apply the Application ID from Parse.com';
我没有将环境变量更新到我的解析应用程序的APP_键


谢谢

您在bluemix上拥有NodeJS功能/库解析,需要来自外部服务提供商parse.com的许可证、API密钥或其他凭据,而外部服务提供商parse.com无法访问或使用bluemix。你的选择是:

  • 将服务/功能替换为Bluemix或其他服务可以提供的服务/功能。这样,您就不再依赖bluemix和parse.com上的parse了

  • 或者从Parse.com创建必要的密钥/令牌/授权,并使其生效,以便您的代码可以在请求Parse.com上的服务或功能之前访问该密钥。有多种方法可以做到这一点:

    • 在Bluemix中创建用户定义的环境变量
    • 添加一个.env文件,在调用Parse.com服务之前,bluemix/您的应用程序将自动读入该文件以获取get
  • 请使用
    cf logs--recent
    命令获取完整的日志输出,然后在此处发布。您的问题也有可能通过以下方式得到解决: