App Engine deploy fails (Managed VM nodejs) - node.js

App Engine deploy fails with this error
Copying files to Google Cloud Storage...
Synchronizing files to [gs://staging.john-slowmo-droid-1116.appspot.com/].
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid character in filename: node_modules/es5-ext/array/#/##iterator/implement.js
This behavior did not happen before the second to latest gcloud update. Tried in gcloud sdk 0.9.86 and 0.9.87.

Related

gcloud app deploy is failing with Failed to create cloud build: Permission denied on 'locations/xyz' (or it may not exist)

I have a 2.x python app and some 3.x python app which are running on google app engine.
Recently, I had updated the 2.x app without any issue. Now, when I'm trying to deploy an update for a 3.x python app, I'm getting an error "Error Response: [7] Failed to create cloud build: Permission denied on"
Services to deploy:
descriptor: [C:\Users\artha\Documents\gae billApp\CbicNtfnAndAutoMailer\app.yaml]
source: [C:\Users\artha\Documents\gae billApp\CbicNtfnAndAutoMailer]
target project: [cbicntfnandautomailer]
target service: [default]
target version: [1]
target url: [https://cbicntfnandautomailer.appspot.com]
target service account: [App Engine default service account]
Do you want to continue (Y/n)? Y
Beginning deployment of service [default]...
#============================================================#
#= Uploading 0 files to Google Cloud Storage =#
#============================================================#
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [7] Failed to create cloud build: Permission denied on 'locations/asia-south1' (or it may not exist)..
Previously, I did not face any issue.
gcloud app describe shows me
authDomain: gmail.com
codeBucket: staging.cbicntfnandautomailer.appspot.com
databaseType: CLOUD_DATASTORE_COMPATIBILITY
defaultBucket: cbicntfnandautomailer.appspot.com
defaultHostname: cbicntfnandautomailer.appspot.com
featureSettings:
splitHealthChecks: true
useContainerOptimizedOs: true
gcrDomain: asia.gcr.io
id: cbicntfnandautomailer
locationId: asia-south1
name: apps/cbicntfnandautomailer
serviceAccount: cbicntfnandautomailer#appspot.gserviceaccount.com
servingStatus: SERVING
I have also tried disabling and re-enabling cloud build, but to no avail...
Can you please advice how to resolve the issue, thanks!!!
EDIT: As a workaround, created a seperate project and deployed there to resolve the issue, but the root cause still remains unknown!!
Check if you reached the limit of build-triggers allowed per region:
Cloud build limits

Failed to deploy web package to App Service. Code 401

I've deployed my little django app, but can't deploy it continously. Every time I see this error message, while deploying from GitHub. I am using student account, so mb that could be a reason?😣
Run azure/webapps-deploy#v2
Package deployment using ZIP Deploy initiated.
Error: Failed to deploy web package to App Service.
Error: Deployment Failed with Error: Error: Failed to deploy web package to App Service.
Unauthorized (CODE: 401)

Build failed: No module named virtualenv

I have a Python 3.7 GCP App Engine project. Everything works well normally. For the past hour, however, I have not been able to deploy a new version of my app. I keep the same kind of Internal error. What can I do to resolve this? According to the VCS used, I have not changed anything since the last commit.
The command I run is the same as always: gcloud app deploy app.yaml --project=my-project-name
Here is the output:
Beginning deployment of service [default]...
#============================================================#
#= Uploading 1 file to Google Cloud Storage =#
#============================================================#
File upload done.
Updating service [default]
...
............................failed. ERROR: (gcloud.app.deploy) Error
Response: [9] Cloud build 111fffff-1111-2222-cbaf-edcba154321f status:
FAILURE. Error ID: 6C9DE5CE. Error type: InternalError. Error message:
create_virtualenv had stderr output: /opt/python3.7/bin/python3.7:
No module named virtualenv
error: create_virtualenv returned code: 1.

node.js app fails to deploy in appengine: gcloud app deploy to appengine fails, issues with cached base image and node cache

Folks
I am trying to deploy a simple node.js app onto appengine. Every time I deploy the same using gcloud deploy, I get these warning and errors in the logs. I am using the config module in node.js also to load some general environment variables I need. Any pointers apprecaited if others have come across similar runtime issues? here is log when I execute the command:
gcloud app deploy app.yaml
No cached base image found for entry
us.gcr.io/.../app-engine-build-cache/node-cache:f0sdafsadasdfsadfasfasdfasdf
Step #1 - "builder": INFO Cache miss on local cache for us.gcr.io/.../app-engine-build-cache/node-cache:f0sdafsadasdfsadfasfasdfasdf
....
later....
...
Step #1 - "builder": ERROR Error during upload of: us.gcr.io/.../app-engine-build-cache/node-cache:f0sdafsadasdfsadfasfasdfasdf
Finally my deploy fails
File upload done.
Updating service [myservice name]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build <number> status: FAILURE. Check the build log for errors: https://console.cloud.google.com/gcr/builds/<my build number>
I am using
$gcloud version
Google Cloud SDK 214.0.0
bq 2.0.34
core 2018.08.24
gsutil 4.33
$ npm --version
6.3.0
thanks for any pointers where things might be going wrong.

Error deploying node app to google cloud server instance

Error deploying node app to google cloud server instance.
I get certificate error.
I'm using google cloud and a node js app.
I just want to put my node app onto my server instance I made on google cloud.
This is the screen shot of the command line error message:
Adam for your question:
c:\source\test\nodejs-getting-started\1-hello-world>gcloud preview app deploy ap
p.yaml --promote --verbosity debug
DEBUG: Running gcloud.preview.app.deploy with Namespace(__calliope_internal_deep
est_parser=ArgumentParser(prog='gcloud.preview.app.deploy', usage=None, descript
ion="*(BETA)* This command is used to deploy both code and configuration to the
App Engine\nserver. As an input it takes one or more ``DEPLOYABLES'' that shoul
d be\nuploaded. A ``DEPLOYABLE'' can be a module's .yaml file or a configuratio
n's\n.yaml file.", version=None, formatter_class=<class 'argparse.HelpFormatter'
>, conflict_handler='error', add_help=False), account=None, authority_selector=N
one, authorization_token_file=None, bucket=None, cmd_func=<bound method Command.
Run of <googlecloudsdk.calliope.backend.Command object at 0x02CB6C50>>, command_
path=['gcloud', 'preview', 'app', 'deploy'], configuration=None, deployables=['a
pp.yaml'], docker_build=None, document=None, force=False, format=None, h=None, h
elp=None, http_timeout=None, image_url=None, log_http=None, project=None, promot
e='true', quiet=None, repo_info_file=None, server=None, stop_previous_version=No
ne, trace_email=None, trace_log=False, trace_token=None, user_output_enabled=Non
e, verbosity='debug', version=None).
INFO: Refreshing access_token
DEBUG: API endpoint: [https://appengine.googleapis.com/], API version: [v1beta4]
You are about to deploy the following modules:
- poolcoverprod/default (from [c:\source\test\nodejs-getting-started\1-hello-wo
rld\app.yaml])
Deployed URL: [https://poolcoverprod.appspot.com]
Do you want to continue (Y/n)?

Resources