What could be causing this mystery GCloud App Deploy error? (NodeJS, AppEngine. Standard Environment)












0















ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 6axxx...xxx9b status: FAILURE.




I'm trying to understand if I can use a NodeJS / Express server with Google Cloud App Engine, Standard Mode. My application started out from an Express-Generator framework. There is a single page app, and some function calls back to server via custom routes. Nothing terribly crazy.



I set up repo, and $ git clone https://gitlab.com/my_repo into the GCloud shell. Test, test and retest using the sandbox (local development server.) Test url is of the form: https://8080-dot-xxxxxx-dot-devshell.appspot.com Yipee.



Next step is hard deploy: I start with $ gcloud app create followed by $ gcloud app deploy (had to make a side trip to ensure correct authorization and billing stuff is whole, etc...) . Website / server totally works as intended. URL is of the form https://my-custom-XYZ-website.appspot.com/ Works great.



I can check the version at the Google Cloud Platform -- App Engine -- Version console The output there shows me:



 Version: 20181120t103136
Status: Deployed
Traffic Allocation: 100%
Instances: 1
Runtime: Node10
Environment: Standard
Size: 748.8 KB
Deployed: (Date/Time by me)


So that's the background. The problem is now I can no longer update the content. I can easily push code to the terminal interface, but the command $ gcloud app deploy fails for any sort of update / new version. Sigh.



Log related info -- Build steps: 
Fetcher = successful

Builder = status, Step Failed
Builder Arguments
--name=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/app/ttl-2h:12xxxxxxa5a0 --directory=/workspace --destination=/srv --cache-repository=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d --cache --base=gcr.io/gae
runtimes/nodejs10:nodejs10_10_13_0_20181111_RC00
Directory /workspace/

"builder": Permission denied for "d71xxxxxxxxxxxxxxxxxx88b5" from request "/v2/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d/node-cache/manifests/d71xxxxxxxxxxxxxxxxxx88b5". : None


app.yaml



# [START runtime]
runtime: nodejs10
# [END runtime]

handlers:

- url: /images
static_dir: public/images
- url: /javascript
static_dir: public/javascript
- url: /red-canoe
static_dir: public/alt-content
- url: /stylesheets
static_dir: public/stylesheets

- url: /.*
secure: always
redirect_http_response_code: 301
script: auto


Any idea on how to identify and correct what's wrong here?



Note: I did create another simple test product in node.js, and I can easily update the versions there. That test product had only a simple app.js with a simple Hello World response. Version #2 had Hello There, World (okay, so yeah, not the worlds most robust test...). But the version update, via $ gcloud app deploy worked just fine there. I did note the version size on the Hello World app was around 245kb or so.










share|improve this question
























  • Check if the user account that you are using has permissions to deploy in that project. The role that you need to provide is App Engine Admin. If the permissions are right, try changing the name of the service or try deploying your changes to another service and see if it works.
    – Rubén C.
    Nov 21 at 15:39










  • @RubénC. This app does use Firebase for authentication. When creating Firebase and / or Google Cloud App, we chose selections that made these two tools tied to the same project. I suspect that is what is now causing troubles. I'm guessing its better to just delete the existing project, then start anew with clearly defined and separate projects. I doubt there is a way to surgically remove the Google Cloud App engine from the integrated Firebase project (thereby preserving the auth api keys...)
    – zipzit
    Nov 21 at 22:12
















0















ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 6axxx...xxx9b status: FAILURE.




I'm trying to understand if I can use a NodeJS / Express server with Google Cloud App Engine, Standard Mode. My application started out from an Express-Generator framework. There is a single page app, and some function calls back to server via custom routes. Nothing terribly crazy.



I set up repo, and $ git clone https://gitlab.com/my_repo into the GCloud shell. Test, test and retest using the sandbox (local development server.) Test url is of the form: https://8080-dot-xxxxxx-dot-devshell.appspot.com Yipee.



Next step is hard deploy: I start with $ gcloud app create followed by $ gcloud app deploy (had to make a side trip to ensure correct authorization and billing stuff is whole, etc...) . Website / server totally works as intended. URL is of the form https://my-custom-XYZ-website.appspot.com/ Works great.



I can check the version at the Google Cloud Platform -- App Engine -- Version console The output there shows me:



 Version: 20181120t103136
Status: Deployed
Traffic Allocation: 100%
Instances: 1
Runtime: Node10
Environment: Standard
Size: 748.8 KB
Deployed: (Date/Time by me)


So that's the background. The problem is now I can no longer update the content. I can easily push code to the terminal interface, but the command $ gcloud app deploy fails for any sort of update / new version. Sigh.



Log related info -- Build steps: 
Fetcher = successful

Builder = status, Step Failed
Builder Arguments
--name=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/app/ttl-2h:12xxxxxxa5a0 --directory=/workspace --destination=/srv --cache-repository=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d --cache --base=gcr.io/gae
runtimes/nodejs10:nodejs10_10_13_0_20181111_RC00
Directory /workspace/

"builder": Permission denied for "d71xxxxxxxxxxxxxxxxxx88b5" from request "/v2/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d/node-cache/manifests/d71xxxxxxxxxxxxxxxxxx88b5". : None


app.yaml



# [START runtime]
runtime: nodejs10
# [END runtime]

handlers:

- url: /images
static_dir: public/images
- url: /javascript
static_dir: public/javascript
- url: /red-canoe
static_dir: public/alt-content
- url: /stylesheets
static_dir: public/stylesheets

- url: /.*
secure: always
redirect_http_response_code: 301
script: auto


Any idea on how to identify and correct what's wrong here?



Note: I did create another simple test product in node.js, and I can easily update the versions there. That test product had only a simple app.js with a simple Hello World response. Version #2 had Hello There, World (okay, so yeah, not the worlds most robust test...). But the version update, via $ gcloud app deploy worked just fine there. I did note the version size on the Hello World app was around 245kb or so.










share|improve this question
























  • Check if the user account that you are using has permissions to deploy in that project. The role that you need to provide is App Engine Admin. If the permissions are right, try changing the name of the service or try deploying your changes to another service and see if it works.
    – Rubén C.
    Nov 21 at 15:39










  • @RubénC. This app does use Firebase for authentication. When creating Firebase and / or Google Cloud App, we chose selections that made these two tools tied to the same project. I suspect that is what is now causing troubles. I'm guessing its better to just delete the existing project, then start anew with clearly defined and separate projects. I doubt there is a way to surgically remove the Google Cloud App engine from the integrated Firebase project (thereby preserving the auth api keys...)
    – zipzit
    Nov 21 at 22:12














0












0








0








ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 6axxx...xxx9b status: FAILURE.




I'm trying to understand if I can use a NodeJS / Express server with Google Cloud App Engine, Standard Mode. My application started out from an Express-Generator framework. There is a single page app, and some function calls back to server via custom routes. Nothing terribly crazy.



I set up repo, and $ git clone https://gitlab.com/my_repo into the GCloud shell. Test, test and retest using the sandbox (local development server.) Test url is of the form: https://8080-dot-xxxxxx-dot-devshell.appspot.com Yipee.



Next step is hard deploy: I start with $ gcloud app create followed by $ gcloud app deploy (had to make a side trip to ensure correct authorization and billing stuff is whole, etc...) . Website / server totally works as intended. URL is of the form https://my-custom-XYZ-website.appspot.com/ Works great.



I can check the version at the Google Cloud Platform -- App Engine -- Version console The output there shows me:



 Version: 20181120t103136
Status: Deployed
Traffic Allocation: 100%
Instances: 1
Runtime: Node10
Environment: Standard
Size: 748.8 KB
Deployed: (Date/Time by me)


So that's the background. The problem is now I can no longer update the content. I can easily push code to the terminal interface, but the command $ gcloud app deploy fails for any sort of update / new version. Sigh.



Log related info -- Build steps: 
Fetcher = successful

Builder = status, Step Failed
Builder Arguments
--name=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/app/ttl-2h:12xxxxxxa5a0 --directory=/workspace --destination=/srv --cache-repository=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d --cache --base=gcr.io/gae
runtimes/nodejs10:nodejs10_10_13_0_20181111_RC00
Directory /workspace/

"builder": Permission denied for "d71xxxxxxxxxxxxxxxxxx88b5" from request "/v2/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d/node-cache/manifests/d71xxxxxxxxxxxxxxxxxx88b5". : None


app.yaml



# [START runtime]
runtime: nodejs10
# [END runtime]

handlers:

- url: /images
static_dir: public/images
- url: /javascript
static_dir: public/javascript
- url: /red-canoe
static_dir: public/alt-content
- url: /stylesheets
static_dir: public/stylesheets

- url: /.*
secure: always
redirect_http_response_code: 301
script: auto


Any idea on how to identify and correct what's wrong here?



Note: I did create another simple test product in node.js, and I can easily update the versions there. That test product had only a simple app.js with a simple Hello World response. Version #2 had Hello There, World (okay, so yeah, not the worlds most robust test...). But the version update, via $ gcloud app deploy worked just fine there. I did note the version size on the Hello World app was around 245kb or so.










share|improve this question
















ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 6axxx...xxx9b status: FAILURE.




I'm trying to understand if I can use a NodeJS / Express server with Google Cloud App Engine, Standard Mode. My application started out from an Express-Generator framework. There is a single page app, and some function calls back to server via custom routes. Nothing terribly crazy.



I set up repo, and $ git clone https://gitlab.com/my_repo into the GCloud shell. Test, test and retest using the sandbox (local development server.) Test url is of the form: https://8080-dot-xxxxxx-dot-devshell.appspot.com Yipee.



Next step is hard deploy: I start with $ gcloud app create followed by $ gcloud app deploy (had to make a side trip to ensure correct authorization and billing stuff is whole, etc...) . Website / server totally works as intended. URL is of the form https://my-custom-XYZ-website.appspot.com/ Works great.



I can check the version at the Google Cloud Platform -- App Engine -- Version console The output there shows me:



 Version: 20181120t103136
Status: Deployed
Traffic Allocation: 100%
Instances: 1
Runtime: Node10
Environment: Standard
Size: 748.8 KB
Deployed: (Date/Time by me)


So that's the background. The problem is now I can no longer update the content. I can easily push code to the terminal interface, but the command $ gcloud app deploy fails for any sort of update / new version. Sigh.



Log related info -- Build steps: 
Fetcher = successful

Builder = status, Step Failed
Builder Arguments
--name=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/app/ttl-2h:12xxxxxxa5a0 --directory=/workspace --destination=/srv --cache-repository=us.gcr.io/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d --cache --base=gcr.io/gae
runtimes/nodejs10:nodejs10_10_13_0_20181111_RC00
Directory /workspace/

"builder": Permission denied for "d71xxxxxxxxxxxxxxxxxx88b5" from request "/v2/my-custom-XYZ-website/app-engine-tmp/build-cache/ttl-7d/node-cache/manifests/d71xxxxxxxxxxxxxxxxxx88b5". : None


app.yaml



# [START runtime]
runtime: nodejs10
# [END runtime]

handlers:

- url: /images
static_dir: public/images
- url: /javascript
static_dir: public/javascript
- url: /red-canoe
static_dir: public/alt-content
- url: /stylesheets
static_dir: public/stylesheets

- url: /.*
secure: always
redirect_http_response_code: 301
script: auto


Any idea on how to identify and correct what's wrong here?



Note: I did create another simple test product in node.js, and I can easily update the versions there. That test product had only a simple app.js with a simple Hello World response. Version #2 had Hello There, World (okay, so yeah, not the worlds most robust test...). But the version update, via $ gcloud app deploy worked just fine there. I did note the version size on the Hello World app was around 245kb or so.







node.js google-app-engine google-cloud-platform






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 1:56

























asked Nov 21 at 1:40









zipzit

1,94231536




1,94231536












  • Check if the user account that you are using has permissions to deploy in that project. The role that you need to provide is App Engine Admin. If the permissions are right, try changing the name of the service or try deploying your changes to another service and see if it works.
    – Rubén C.
    Nov 21 at 15:39










  • @RubénC. This app does use Firebase for authentication. When creating Firebase and / or Google Cloud App, we chose selections that made these two tools tied to the same project. I suspect that is what is now causing troubles. I'm guessing its better to just delete the existing project, then start anew with clearly defined and separate projects. I doubt there is a way to surgically remove the Google Cloud App engine from the integrated Firebase project (thereby preserving the auth api keys...)
    – zipzit
    Nov 21 at 22:12


















  • Check if the user account that you are using has permissions to deploy in that project. The role that you need to provide is App Engine Admin. If the permissions are right, try changing the name of the service or try deploying your changes to another service and see if it works.
    – Rubén C.
    Nov 21 at 15:39










  • @RubénC. This app does use Firebase for authentication. When creating Firebase and / or Google Cloud App, we chose selections that made these two tools tied to the same project. I suspect that is what is now causing troubles. I'm guessing its better to just delete the existing project, then start anew with clearly defined and separate projects. I doubt there is a way to surgically remove the Google Cloud App engine from the integrated Firebase project (thereby preserving the auth api keys...)
    – zipzit
    Nov 21 at 22:12
















Check if the user account that you are using has permissions to deploy in that project. The role that you need to provide is App Engine Admin. If the permissions are right, try changing the name of the service or try deploying your changes to another service and see if it works.
– Rubén C.
Nov 21 at 15:39




Check if the user account that you are using has permissions to deploy in that project. The role that you need to provide is App Engine Admin. If the permissions are right, try changing the name of the service or try deploying your changes to another service and see if it works.
– Rubén C.
Nov 21 at 15:39












@RubénC. This app does use Firebase for authentication. When creating Firebase and / or Google Cloud App, we chose selections that made these two tools tied to the same project. I suspect that is what is now causing troubles. I'm guessing its better to just delete the existing project, then start anew with clearly defined and separate projects. I doubt there is a way to surgically remove the Google Cloud App engine from the integrated Firebase project (thereby preserving the auth api keys...)
– zipzit
Nov 21 at 22:12




@RubénC. This app does use Firebase for authentication. When creating Firebase and / or Google Cloud App, we chose selections that made these two tools tied to the same project. I suspect that is what is now causing troubles. I'm guessing its better to just delete the existing project, then start anew with clearly defined and separate projects. I doubt there is a way to surgically remove the Google Cloud App engine from the integrated Firebase project (thereby preserving the auth api keys...)
– zipzit
Nov 21 at 22:12












1 Answer
1






active

oldest

votes


















1














So, after a whole lot of testing I think I figured out what is happening here.



The node.js application actually utilizes three different Google related components / tools.




  • Google Firebase Authentication

  • Google Sheets API, V4

  • Google App Engine (Deployment)


When I'm created those components, the system prompts me to either create a new project or utilize an existing project. I chose the exact same project for all three tools. I believe the fact that these were all tied together messed up the ability to perform updates to Google App Engine vcloud app deploy



The fix was to delete that three combo project, and create three separate projects




  • MyProject_Sheets

  • MyProject_Firebase_Auth

  • MyProject_AppEngineDeploy


This works reliably. All done.



And for anybody who may be interested in the Firebase / Sheets API stuff I did here, check out this link. I built an online phone directory, protected by login via mobile phone, with contact data stored on a private Google sheet.






share|improve this answer





















    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%2f53404156%2fwhat-could-be-causing-this-mystery-gcloud-app-deploy-error-nodejs-appengine%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














    So, after a whole lot of testing I think I figured out what is happening here.



    The node.js application actually utilizes three different Google related components / tools.




    • Google Firebase Authentication

    • Google Sheets API, V4

    • Google App Engine (Deployment)


    When I'm created those components, the system prompts me to either create a new project or utilize an existing project. I chose the exact same project for all three tools. I believe the fact that these were all tied together messed up the ability to perform updates to Google App Engine vcloud app deploy



    The fix was to delete that three combo project, and create three separate projects




    • MyProject_Sheets

    • MyProject_Firebase_Auth

    • MyProject_AppEngineDeploy


    This works reliably. All done.



    And for anybody who may be interested in the Firebase / Sheets API stuff I did here, check out this link. I built an online phone directory, protected by login via mobile phone, with contact data stored on a private Google sheet.






    share|improve this answer


























      1














      So, after a whole lot of testing I think I figured out what is happening here.



      The node.js application actually utilizes three different Google related components / tools.




      • Google Firebase Authentication

      • Google Sheets API, V4

      • Google App Engine (Deployment)


      When I'm created those components, the system prompts me to either create a new project or utilize an existing project. I chose the exact same project for all three tools. I believe the fact that these were all tied together messed up the ability to perform updates to Google App Engine vcloud app deploy



      The fix was to delete that three combo project, and create three separate projects




      • MyProject_Sheets

      • MyProject_Firebase_Auth

      • MyProject_AppEngineDeploy


      This works reliably. All done.



      And for anybody who may be interested in the Firebase / Sheets API stuff I did here, check out this link. I built an online phone directory, protected by login via mobile phone, with contact data stored on a private Google sheet.






      share|improve this answer
























        1












        1








        1






        So, after a whole lot of testing I think I figured out what is happening here.



        The node.js application actually utilizes three different Google related components / tools.




        • Google Firebase Authentication

        • Google Sheets API, V4

        • Google App Engine (Deployment)


        When I'm created those components, the system prompts me to either create a new project or utilize an existing project. I chose the exact same project for all three tools. I believe the fact that these were all tied together messed up the ability to perform updates to Google App Engine vcloud app deploy



        The fix was to delete that three combo project, and create three separate projects




        • MyProject_Sheets

        • MyProject_Firebase_Auth

        • MyProject_AppEngineDeploy


        This works reliably. All done.



        And for anybody who may be interested in the Firebase / Sheets API stuff I did here, check out this link. I built an online phone directory, protected by login via mobile phone, with contact data stored on a private Google sheet.






        share|improve this answer












        So, after a whole lot of testing I think I figured out what is happening here.



        The node.js application actually utilizes three different Google related components / tools.




        • Google Firebase Authentication

        • Google Sheets API, V4

        • Google App Engine (Deployment)


        When I'm created those components, the system prompts me to either create a new project or utilize an existing project. I chose the exact same project for all three tools. I believe the fact that these were all tied together messed up the ability to perform updates to Google App Engine vcloud app deploy



        The fix was to delete that three combo project, and create three separate projects




        • MyProject_Sheets

        • MyProject_Firebase_Auth

        • MyProject_AppEngineDeploy


        This works reliably. All done.



        And for anybody who may be interested in the Firebase / Sheets API stuff I did here, check out this link. I built an online phone directory, protected by login via mobile phone, with contact data stored on a private Google sheet.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 25 at 16:20









        zipzit

        1,94231536




        1,94231536






























            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%2f53404156%2fwhat-could-be-causing-this-mystery-gcloud-app-deploy-error-nodejs-appengine%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







            Popular posts from this blog

            Wiesbaden

            Marschland

            Dieringhausen