How to fix gcloud app deployment error Cloud build failed. Failure status: UNKNOWN?












-1














I am trying deploy my node.js project into Google Cloud. It works fine on localhost but when I try to deploy into GCP I am getting an error:




ERROR: (gcloud.app.deploy) Cloud build failed. Failure status:
UNKNOWN: Error Response: [2] Build failed .













share|improve this question
























  • The line before the last of the error message tells you to check the build logs for more details. Please, take a look and if you can't figure it out, paste the relevant part of the log file here.
    – lependu
    Nov 11 at 10:35












  • i coudn't figure out from the log file. Here is complete log file.
    – Arun Gavimath
    Nov 11 at 11:02










  • starting build "74fce248-f0a2-4408-89ad-f4408d4068ed" FETCHSOURCE Fetching storage object: gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575 Copying gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575... / [1 files][ 1.4 MiB/ 1.4 MiB] Operation completed over 1 objects/1.4 MiB. BUILD
    – Arun Gavimath
    Nov 11 at 11:05










  • Starting Step #0 Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Digest: sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Checking for Node.js. Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime.
    – Arun Gavimath
    Nov 11 at 11:06










  • Next time paste the log file into your original question. And format it with code (CTRL+K)
    – lependu
    Nov 11 at 11:06
















-1














I am trying deploy my node.js project into Google Cloud. It works fine on localhost but when I try to deploy into GCP I am getting an error:




ERROR: (gcloud.app.deploy) Cloud build failed. Failure status:
UNKNOWN: Error Response: [2] Build failed .













share|improve this question
























  • The line before the last of the error message tells you to check the build logs for more details. Please, take a look and if you can't figure it out, paste the relevant part of the log file here.
    – lependu
    Nov 11 at 10:35












  • i coudn't figure out from the log file. Here is complete log file.
    – Arun Gavimath
    Nov 11 at 11:02










  • starting build "74fce248-f0a2-4408-89ad-f4408d4068ed" FETCHSOURCE Fetching storage object: gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575 Copying gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575... / [1 files][ 1.4 MiB/ 1.4 MiB] Operation completed over 1 objects/1.4 MiB. BUILD
    – Arun Gavimath
    Nov 11 at 11:05










  • Starting Step #0 Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Digest: sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Checking for Node.js. Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime.
    – Arun Gavimath
    Nov 11 at 11:06










  • Next time paste the log file into your original question. And format it with code (CTRL+K)
    – lependu
    Nov 11 at 11:06














-1












-1








-1







I am trying deploy my node.js project into Google Cloud. It works fine on localhost but when I try to deploy into GCP I am getting an error:




ERROR: (gcloud.app.deploy) Cloud build failed. Failure status:
UNKNOWN: Error Response: [2] Build failed .













share|improve this question















I am trying deploy my node.js project into Google Cloud. It works fine on localhost but when I try to deploy into GCP I am getting an error:




ERROR: (gcloud.app.deploy) Cloud build failed. Failure status:
UNKNOWN: Error Response: [2] Build failed .










node.js deployment gcloud






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 15:38









Graham

3,523123558




3,523123558










asked Nov 11 at 10:33









Arun Gavimath

32




32












  • The line before the last of the error message tells you to check the build logs for more details. Please, take a look and if you can't figure it out, paste the relevant part of the log file here.
    – lependu
    Nov 11 at 10:35












  • i coudn't figure out from the log file. Here is complete log file.
    – Arun Gavimath
    Nov 11 at 11:02










  • starting build "74fce248-f0a2-4408-89ad-f4408d4068ed" FETCHSOURCE Fetching storage object: gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575 Copying gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575... / [1 files][ 1.4 MiB/ 1.4 MiB] Operation completed over 1 objects/1.4 MiB. BUILD
    – Arun Gavimath
    Nov 11 at 11:05










  • Starting Step #0 Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Digest: sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Checking for Node.js. Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime.
    – Arun Gavimath
    Nov 11 at 11:06










  • Next time paste the log file into your original question. And format it with code (CTRL+K)
    – lependu
    Nov 11 at 11:06


















  • The line before the last of the error message tells you to check the build logs for more details. Please, take a look and if you can't figure it out, paste the relevant part of the log file here.
    – lependu
    Nov 11 at 10:35












  • i coudn't figure out from the log file. Here is complete log file.
    – Arun Gavimath
    Nov 11 at 11:02










  • starting build "74fce248-f0a2-4408-89ad-f4408d4068ed" FETCHSOURCE Fetching storage object: gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575 Copying gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575... / [1 files][ 1.4 MiB/ 1.4 MiB] Operation completed over 1 objects/1.4 MiB. BUILD
    – Arun Gavimath
    Nov 11 at 11:05










  • Starting Step #0 Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Digest: sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Checking for Node.js. Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime.
    – Arun Gavimath
    Nov 11 at 11:06










  • Next time paste the log file into your original question. And format it with code (CTRL+K)
    – lependu
    Nov 11 at 11:06
















The line before the last of the error message tells you to check the build logs for more details. Please, take a look and if you can't figure it out, paste the relevant part of the log file here.
– lependu
Nov 11 at 10:35






The line before the last of the error message tells you to check the build logs for more details. Please, take a look and if you can't figure it out, paste the relevant part of the log file here.
– lependu
Nov 11 at 10:35














i coudn't figure out from the log file. Here is complete log file.
– Arun Gavimath
Nov 11 at 11:02




i coudn't figure out from the log file. Here is complete log file.
– Arun Gavimath
Nov 11 at 11:02












starting build "74fce248-f0a2-4408-89ad-f4408d4068ed" FETCHSOURCE Fetching storage object: gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575 Copying gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575... / [1 files][ 1.4 MiB/ 1.4 MiB] Operation completed over 1 objects/1.4 MiB. BUILD
– Arun Gavimath
Nov 11 at 11:05




starting build "74fce248-f0a2-4408-89ad-f4408d4068ed" FETCHSOURCE Fetching storage object: gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575 Copying gs://staging.whatmate-nodejs.appspot.com/us.gcr.io/whatmate-nodejs/appengine/default.20181111t153759:latest#1541931249630575... / [1 files][ 1.4 MiB/ 1.4 MiB] Operation completed over 1 objects/1.4 MiB. BUILD
– Arun Gavimath
Nov 11 at 11:05












Starting Step #0 Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Digest: sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Checking for Node.js. Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime.
– Arun Gavimath
Nov 11 at 11:06




Starting Step #0 Step #0: Pulling image: gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Digest: sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/nodejs/gen-dockerfile@sha256:98d9069aa67a763de7e6fd81c41f937b171917f1e83a1afce30fc3d618a3c110 Step #0: Checking for Node.js. Step #0: WARNING: Your package.json does not specify a supported Node.js version. Please pin your application to a major version of the Node.js runtime.
– Arun Gavimath
Nov 11 at 11:06












Next time paste the log file into your original question. And format it with code (CTRL+K)
– lependu
Nov 11 at 11:06




Next time paste the log file into your original question. And format it with code (CTRL+K)
– lependu
Nov 11 at 11:06












1 Answer
1






active

oldest

votes


















1














Your build fails because it can not build bcrypt. Solution could be to remove it from the package json. Which you can do, because you already use bcrypt-nodejs which does the same thing and it is pure js, so it does not require to install native add-ons.






share|improve this answer























  • yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
    – Arun Gavimath
    Nov 11 at 12:56










  • No worries. Please don't forget to accept the answer. see this issue for details.
    – lependu
    Nov 11 at 13:00











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247869%2fhow-to-fix-gcloud-app-deployment-error-cloud-build-failed-failure-status-unkno%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Your build fails because it can not build bcrypt. Solution could be to remove it from the package json. Which you can do, because you already use bcrypt-nodejs which does the same thing and it is pure js, so it does not require to install native add-ons.






share|improve this answer























  • yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
    – Arun Gavimath
    Nov 11 at 12:56










  • No worries. Please don't forget to accept the answer. see this issue for details.
    – lependu
    Nov 11 at 13:00
















1














Your build fails because it can not build bcrypt. Solution could be to remove it from the package json. Which you can do, because you already use bcrypt-nodejs which does the same thing and it is pure js, so it does not require to install native add-ons.






share|improve this answer























  • yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
    – Arun Gavimath
    Nov 11 at 12:56










  • No worries. Please don't forget to accept the answer. see this issue for details.
    – lependu
    Nov 11 at 13:00














1












1








1






Your build fails because it can not build bcrypt. Solution could be to remove it from the package json. Which you can do, because you already use bcrypt-nodejs which does the same thing and it is pure js, so it does not require to install native add-ons.






share|improve this answer














Your build fails because it can not build bcrypt. Solution could be to remove it from the package json. Which you can do, because you already use bcrypt-nodejs which does the same thing and it is pure js, so it does not require to install native add-ons.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 11 at 12:40

























answered Nov 11 at 12:33









lependu

669314




669314












  • yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
    – Arun Gavimath
    Nov 11 at 12:56










  • No worries. Please don't forget to accept the answer. see this issue for details.
    – lependu
    Nov 11 at 13:00


















  • yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
    – Arun Gavimath
    Nov 11 at 12:56










  • No worries. Please don't forget to accept the answer. see this issue for details.
    – lependu
    Nov 11 at 13:00
















yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
– Arun Gavimath
Nov 11 at 12:56




yes.Thanks a lot. Now deployment was successfull. But i want to know what was the problem with bcrypt module. 2 days back i had deployed the same package.json.
– Arun Gavimath
Nov 11 at 12:56












No worries. Please don't forget to accept the answer. see this issue for details.
– lependu
Nov 11 at 13:00




No worries. Please don't forget to accept the answer. see this issue for details.
– lependu
Nov 11 at 13:00


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247869%2fhow-to-fix-gcloud-app-deployment-error-cloud-build-failed-failure-status-unkno%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Hercules Kyvelos

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud