部署到Google App Engine失败 [英] Deploying to google app engine failed

查看:145
本文介绍了部署到Google App Engine失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 https://wiki.js.org/

在将所有内容都设置为本地之后,然后尝试将其部署到我们的App Engine项目中,它将经历其动作并说这是Updating Service,这是最后一步.

After getting everything set up locally, and then trying to deploy to our app engine project it will go through its motions and say it's Updating Service, which is the last step.

大约一分钟后,我会收到以下答复:

After a minute or so I will get this response:

Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:

> wiki@1.0.78 start /app
> node wiki start

\u2714 Wiki.js has started successfully.

这是我的app.yaml

This is my app.yaml

runtime: nodejs
env: flex

这是带有开始"脚本的package.json部分

this is the package.json part with the "start" script

{
  "name": "wiki",
  "version": "1.0.78",
  "description": "A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown",
  "main": "wiki.js",
  "scripts": {
    "start": "node wiki start",
    "stop": "node wiki stop",
    "restart": "node wiki restart",
    "build": "node tools/fuse",
    "dev": "node tools/fuse -d",
    "dev-configure": "node tools/fuse -c",
    "test": "jest",
    "postinstall": "opencollective postinstall"
  },

在我的本地环境中,启动此应用程序的过程是run node wiki start,但是npm start也会执行相同的操作.

On my local environment, the process to start this app is to run node wiki start, but npm start also does the same thing.

推荐答案

我有GCP支持.我们已经多次重现了该问题,但它看起来不像App Engine问题,而是与wiki.js相关的问题.我们只有少数几个第三方库受到官方支持,而这不是其中之一.

I am with GCP support. We have reproduced the issue a couple of times but it doesn’t look like an App Engine issue but one related to wiki.js. Only few third party libraries are officially supported by us and this is not one of them.

无论如何,我都试图通过两种方法解决该问题,并且我在github中找到了两个建议(即使没有一个对我有用):

I have tried to solve the problem in a couple of ways anyway and I have found two suggestions in github (even if none worked for me):

解决方案1 ​​

扩展内存,将以下行添加到app.yaml文件 1 :

Expand the memory adding the following lines to the app.yaml file 1:

 resources:
     cpu: 2
     memory_gb: 4.0
     disk_size_gb: 20

解决方案2

在app.yaml中添加以下行:

Add the following lines to the app.yaml:

health_check:
        enable_health_check: False

尽力而为!

这篇关于部署到Google App Engine失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆