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)?
Related
I am trying to deploy the nodejs app to Azure but I am getting the below error.
2021-07-08T10:22:38.234570707Z
/home/site/wwwroot/node_modules/.bin/npm: 1:
/home/site/wwwroot/node_modules/.bin/npm: ../npm/bin/npm-cli.js: not
found
2021-07-08T10:22:38.244796509Z npm info lifecycle express-typescript-starter#0.1.0~start: Failed to exec start script
This is the output I am seeing application logs on Azure.
App Service is the free plan with Node 14 as a runtime environment running on Linux. I have verified all the files, everything looking good.
Even I checked node modules as well. The folder is there but the error-specific file i.e inside node_module npm/bin/npm-cli.js. It is not there.
But it's not on my local as well and there it's working fine.
I am deploying through Github action.
I am developing an Angular app with vscode on windows 10. It runs well locally.
I have tried to deploy it to Azure.
The vscode OUTPUT console says:
8:54:39 AM XXXXXXYY: Deployment successful.
8:54:36 AM: Deployment to "XXXXXXYY" completed.
Browsing to the app URL yields :( Application Error
The Azure Application Logs say:
...
2020-02-17T18:02:12.322797181Z A P P S E R V I C E O N L I N U X
2020-02-17T18:02:12.322800881Z
2020-02-17T18:02:12.322804281Z Documentation: http://aka.ms/webapp-linux
2020-02-17T18:02:12.322807781Z NodeJS quickstart: https://aka.ms/node-qs
2020-02-17T18:02:12.322811381Z NodeJS Version : v12.13.0
...
2020-02-17T18:03:50.224589935Z ℹ 「wdm」: Compiled successfully.
Docker on instance: RD0004FFE4001B experienced container start failures.
I didn't knowingly request a Docker container.
Does anyone have any ideas?
From your description, you could run an Angular app on windows 10 well locally. So, it recommended to deploy it on Azure app service on Windows instead of Linux as the logged.
You could follow this blog: How to Deploy an Angular application to Azure Web Service to create a windows OS app service. For using VScode deployment, refer to this.
Hope it could help you.
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.
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.
I'm using a Node Express app with App Engine. Everything's been deploying fine, but I must have had an interrupted deployment because now when I try to deploy using this:
gcloud preview app deploy .
I get this:
Error 409: --- begin server output ---
Another transaction by user <username> is already in progress for app:
s~<appId>, version: 1. That user can undo the transaction with "appcfg
rollback".
--- end server output ---
ERROR: (gcloud.preview.app.deploy) Command failed with error code [1]
I can't find an appcfg file to rollback, nor any documentation about this issue for a node app.
You can use gcloud preview app deploy . --force
which will implicitly do a rollback (to clear the deploy lock) before attempting the deployment.
Use the appcfg.py rollback command.
Here, create a file as app.yaml and a directory WEB-INF in which there will be two files named as web.xml and appengine-web.xml.