Containers and Kubernetes

Get Involved. Join the Conversation.

Topic

    Hasain Sab
    NodeJS application deployment giving Environment Version is...
    Topic posted January 16, 2017 by Hasain SabRed Ribbon: 250+ Points, last edited November 14, 2017 
    63 Views, 3 Comments
    Title:
    NodeJS application deployment giving Environment Version is not valid. Please fix and retry.
    Summary:
    NodeJS application deployment giving Environment Version is not valid. Please fix and retry.
    Content:

    NodeJS application deployment giving Environment Version is not valid. Please fix and retry.

    I used to give the "runtime":{"majorVersion" 4.4 "} earlier in mainfest.json file worked.

    Now it seems the current version of the node runtime seems to be 6.9.1 so i gave 6.0 , 6.3 and 6.9 as well. its failing and giving me above error. please help if anyone faced the issue or know what is the fix.

    Thanks,

    Hasain.

    Comment

     

    • Liana Lixandru

      The Node version is 0.12 so your manifest should look like this:

      {

        "runtime":{

        "majorVersion":"0.12"

      },

        "command": "node server.js",

        "mode": "rolling"

      }

    • Vikram Kimyani

      try "6" , I think you are using ACCS and after the upgrade to 6 is got a bit fussy, this one was the one that works for me.

        "runtime":{"majorVersion" : "6"}

    • Umashankar Sharma

      Are there any constraints that you can not migrate your application to vesrion 6.

      I used below and works fine for me.

        "runtime":{

          "majorVersion":"6"

        },

      Thanks.