Running node.js on google cloud, but error running with docker -


i tried following document run node.js app on google cloud: https://cloud.google.com/nodejs/getting-started/hello-world

node.js running fine, if run gcloud preview app run app.yaml get....

    file "/users/me/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 83, in <module>   _run_file(__file__, globals()) file "/users/me/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 79, in _run_file   execfile(_paths.script_file(script_name), globals_) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 1020, in <module>   main() file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 1013, in main   dev_server.start(options) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 810, in start   self._dispatcher.start(options.api_host, apis.port, request_data) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 193, in start   _module, port = self._create_module(module_configuration, port) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 278, in _create_module   threadsafe_override=threadsafe_override) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 1536, in __init__   super(manualscalingmodule, self).__init__(**kwargs) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 555, in __init__   self._module_configuration) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 259, in _create_instance_factory   module_configuration=module_configuration) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_factory.py", line 71, in __init__   8 if runtime_config_getter().threadsafe else 1, 10) file "/users/me/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 391, in _get_runtime_config   raise valueerror('the --custom_entrypoint flag must set ' valueerror: --custom_entrypoint flag must set custom runtimes error: (gcloud.preview.app.run) devappsever failed error code [1] 

there bug latest google cloud sdk version 0.9.65.

you can revert cloud sdk 0.9.64 following commands:

gcloud config set component_manager/fixed_sdk_version 0.9.64 gcloud components update 

the next release should have fix.

to return current version of sdk, run:

gcloud config unset --scope=installation component_manager/fixed_sdk_version gcloud components update 

update sdk version 0.9.82

docker no longer required node.js apps. if no dependency on appengine specific apis, preferred way run app locally is:

npm install npm start 

include following in app.yaml file:

runtime: nodejs vm: true api_version: 1 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -