Skip to Content
avatar image
Former Member

Node js deployment using HCP

Hi All,

I was trying to deploy a small sample node js program in HCP but unable to do so.

There is only one node js file in my local folder along with manifest.yml. The node js file only has a simple console.log.

The time I am pushing the code using - cf push <appname>, I am getting FAILED Server error, status code: 400, error code: 100005, message: You have exceeded y our organization's memory limit.

I was following below link and everything works well except this pushing.

https://www.cloudfoundry.org/deploy-a-react-redux-node-js-application-on-sap-hcp-with-cloud-foundry/

Below are the contents of my manifest.yml & I am using trial account for this deployment -

--- applications:

- name: appname

memory: 256M

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 20, 2016 at 06:56 AM

    The message looks like the memory quota is exceeded. In beta phase you have 1 GB assigned.

    Are you running other applications within that organization (please check this e.g. by "cf apps" or in the "SAP HCP, Starter Edition for Cloud Foundry Services (beta) Cockpit".

    Regards,
    Florian

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Florian Pfeffer

      No luck, still getting the same error -

      2016-12-20T16:22:56.26+0530 [API/0] OUT App instance exited with guid payload: {"cc_partition"=>"default", "index"=>0, "reason"= >"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1482231176}

      & it did try for once -

      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

  • avatar image
    Former Member
    Feb 22, 2017 at 03:06 AM

    Seems like the healthcheck is not returning int he allotted time (1second)?

    I had a question regarding healthcheck. I want to use a "http" healthcheck type and it seems it's not supported?

    In manifest.yml:

    health-check-type: http   
    
    health-check-http-endpoint: /healthcheck
    
    
    

    And i get the following error:

    PALM00573175A:bridge-bot nsingh$ cf push
    Using manifest file /Users/nsingh/Code/bridge-bot/manifest.yml
    Updating app bridge-bot in org SAP_jam / space bridge-stage as navjeet.singh@sap.com...
    FAILED
    Server error, status code: 400, error code: 100001, message: The app is invalid: health_check_type must be one of port, none, process

    Why is it returning "none" as one of the healthcheck types instead of "http" ?

    Add comment
    10|10000 characters needed characters exceeded