NorhanKhaled / SkillsAcademy-CAD

12 stars 4 forks source link

TIP: Use 'cf.exe buildpacks' to see a list of supported buildpacks. FAILED" #40

Open GhaziAlNaymaT opened 4 years ago

GhaziAlNaymaT commented 4 years ago

I am getting this error " Staging app and tracing logs... Error staging application: An app was not successfully detected by any available buildpack

TIP: Use 'cf.exe buildpacks' to see a list of supported buildpacks. FAILED"

My manifest.yml

applications:

karim-elbawab commented 4 years ago

@GhaziAlNaymaT This error means that you application is not detected by cloud foundry, I would assume you got this error while performing Ex 1, so now to check this error;

first I will need you to check your package.json file and make sure that its content matches the following:

{

  "name": "get-started-node",

  "main": "server.js",

  "description": "An introduction to developing Node.js apps on the IBM Cloud platform",

  "version": "0.1.1",

  "private": false,

  "engines": {

    "node": "10.*"

  },

  "scripts": {

    "start": "node server.js"

  },

  "repository": {

    "type": "git",

    "url": "https://github.com/IBM-Cloud/get-started-node"

  },

  "dependencies": {

    "@cloudant/cloudant": "^3.0.2",

    "body-parser": "^1.17.x",

    "cfenv": "^1.0.x",

    "dotenv": "^4.0.0",

    "express": "^4.15.x",

    "mongodb": "^3.0.10"

  },

  "author": "IBM Corp",

  "license": "Apache-2.0"

}

if you still have the issue so I will need from you to share the hierarchy of files that you have in the project path so in the terminal/CMD go to the same location where you have your application.

in case you are using Linux/macOS run the following command ls -la

in case you are using Windows run the following command dir

Then take a screenshot of the result and send it here.

GhaziAlNaymaT commented 4 years ago

Hi, I checked the package.json and everything is exactly the same to what you sent. Below is the hierarchy of the files:

Microsoft Windows [Version 10.0.18362.778] (c) 2019 Microsoft Corporation. All rights reserved.

C:\Program Files\IBM\Cloud\bin\get-started-node-master>dir Volume in drive C has no label. Volume Serial Number is 6215-134A

Directory of C:\Program Files\IBM\Cloud\bin\get-started-node-master

05/06/2020 04:25 PM

. 05/06/2020 04:25 PM .. 01/08/2020 08:12 PM 72 .cfignore 01/08/2020 08:12 PM 29 .gitignore 01/08/2020 08:12 PM 197 Dockerfile 05/06/2020 04:24 PM kubernetes 01/08/2020 08:12 PM 11,323 LICENSE 05/06/2020 03:49 PM 86 manifest.yml 01/08/2020 08:12 PM 39,184 package-lock.json 01/08/2020 08:12 PM 617 package.json 01/08/2020 08:12 PM 3,064 README-kubernetes.md 01/08/2020 08:12 PM 2,637 README.md 01/08/2020 08:12 PM 2,192 README_MONGO.md 01/08/2020 08:12 PM 5,360 server.js 01/08/2020 08:12 PM 182 vcap-local.example.json 01/08/2020 08:12 PM 189 vcap-local.MongoDBexample.json 05/06/2020 04:24 PM views 13 File(s) 65,132 bytes 4 Dir(s) 432,942,047,232 bytes free

C:\Program Files\IBM\Cloud\bin\get-started-node-master>

karim-elbawab commented 4 years ago

@GhaziAlNaymaT The hierarchy looks fine also, I think maybe you have some issues with permissions. Make sure to open the CMD as an administrator and I would say it is better if you can move the project in a driver different than C driver.