我运行时在appengine上出现此错误gcloud preview app run app.yaml:
The --custom_entrypoint flag must be set for custom runtimes
我app.yaml看起来像:
version: 0-1-1
runtime: custom
vm: true
api_version: 1
manual_scaling:
instances: 1
handlers:
- url: .*
script: dynamic
Run Code Online (Sandbox Code Playgroud)
我的dockerfile只是:
FROM google/nodejs-runtime
我重新安装gcloud以获取最新版本,在托管虚拟机的yaml配置中做了哪些更改?这使我无法测试我的应用程序.
我正在尝试按照本教程(使用OS X)测试新的托管VM功能
boot2docker安装没关系.执行$(boot2docker shellinit)给出以下输出:
Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/key.pem
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/guilhermetorres/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1
Run Code Online (Sandbox Code Playgroud)
boot2docker status 打印 running
并boot2docker version打印Boot2Docker-cli version: v1.5.0
虽然当我尝试使用时运行我的应用程序 gcloud --verbosity debug preview app run
我收到了这个错误:
ERROR 2015-03-05 00:36:39,816 containers.py:742] Failed to connect to Docker Daemon due to: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
Run Code Online (Sandbox Code Playgroud)
您可以看到EV变量:
DEBUG 2015-03-05 00:36:39,800 containers.py:669] Detected docker environment variables: DOCKER_HOST=tcp://192.168.59.103:2376, DOCKER_CERT_PATH=/Users/guilhermetorres/.boot2docker/certs/boot2docker-vm, DOCKER_TLS_VERIFY=1
Run Code Online (Sandbox Code Playgroud)
完整的堆栈跟踪:
DEBUG: Running gcloud.preview.app.run with Namespace(admin_host=None, allow_skipped_files=False, api_host=None, appidentity_email_address=None, appidentity_private_key_path=None, auth_domain='gmail.com', …Run Code Online (Sandbox Code Playgroud) google-app-engine google-compute-engine docker boot2docker managed-vm
FROM google/debian:wheezy
MAINTAINER mchouan@gpartner.eu
# Fetch and install Node.js
RUN apt-get update -y && apt-get install --no-install-recommends -y -q curl python build-essential git ca-certificates
RUN mkdir /nodejs && curl http://nodejs.org/dist/v0.12.0/node-v0.12.0-linux-x64.tar.gz | tar xvzf - -C /nodejs --strip-components=1
# Add Node.js installation to PATH
ENV PATH $PATH:/nodejs/bin
# Install redis
RUN apt-get install -y redis-server
# Install supervisor
RUN apt-get install -y supervisor
# Add Node.js installation to PATH, and set
# the current working directory to /app
# so future …Run Code Online (Sandbox Code Playgroud)我正在阅读Google关于登录托管虚拟机的文档,而且他们在细节方面相当薄弱,阅读后我的问题多于答案:
/var/log/app_engine/custom_logs自动拾取文件,它说 - 这条路径是预先存在的还是你还需要mkdir -p它?.log.json并且它的某些部分已经损坏了,那会破坏整个文件还是谷歌会拿起可以读取的位?更新:我设法将日志显示在日志查看器中,但只有在使用.log后缀记录文件时,每当我尝试.log.json它们时,它们都没有被拾取,我无法在任何地方看到任何错误.JSON输出看起来很好,并且符合每行一个对象的要求.有谁知道如何调试这个?
当我尝试从gcloud CLI部署时,我收到以下错误.
Copying files to Google Cloud Storage...
Synchronizing files to [gs://staging.logically-abstract-www-site.appspot.com/].
Updating module [default]...\Deleted [https://www.googleapis.com/compute/v1/projects/logically-abstract-www-site/zones/us-central1-f/instances/gae-builder-vm-20151030t150724].
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [4] Timed out creating VMs.
Run Code Online (Sandbox Code Playgroud)
我的app.yaml是:
runtime: nodejs
vm: true
api_version: 1
automatic_scaling:
min_num_instances: 2
max_num_instances: 20
cool_down_period_sec: 60
cpu_utilization:
target_utilization: 0.5
Run Code Online (Sandbox Code Playgroud)
我已成功登录并拥有正确的项目ID.我看到在App Engine的云控制台中创建了新版本,但错误似乎就在此之后.
在stdout日志中,我看到两个实例都跟上了我在应用程序开始监听端口后放入应用程序的最后一个console.log语句,但是在shutdown.log中我看到"app is unhealthy",在syslog中我看到"警告" :从来没有得到应用程序的健康响应,但无论如何发送/ _ah/start查询."
google-app-engine node.js gcloud managed-vm google-managed-vm
我使用App Engine Flexible Environment(以前称为托管虚拟机),最近升级到最新的gcloud SDK.它包括一些新的错误:
ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid
character
in filename: lib/setuptools/script (dev).tmpl
ERROR: The [application] field is specified in file [.../app.yaml]. This field is not used
by gcloud and must be removed. Project name should instead be
specified either by `gcloud config set project MY_PROJECT` or by
setting the `--project` flag on individual command executions.
ERROR: (gcloud.preview.app.deploy) There is a Dockerfile in the
current directory, and the runtime field in
.../app.yaml is currently set to
[runtime: …Run Code Online (Sandbox Code Playgroud) 我的Java App Engine托管虚拟机构建不再使用gcloud preview app deploy target/myapp-SNAPSHOT我得到这个:
ERROR: Found no valid App Engine configuration files in directory
managed-vm ×7
gcloud ×3
boot2docker ×1
deferred ×1
docker ×1
gcloud-node ×1
node.js ×1
python ×1