错误响应:[13]在Google Cloud SDK上部署项目时发生内部错误 [英] Error Response: [13] An internal error occurred, when deploying project on Google Cloud SDK

查看:72
本文介绍了错误响应:[13]在Google Cloud SDK上部署项目时发生内部错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从昨天开始,我一直在尝试在Google Cloud SDK上部署我的项目,并且一遍又一遍地遇到相同的错误.

I have been trying to deploy my project on Google Cloud SDK since yesterday and have been getting the same error over and over.

我的app.yaml文件如下:

My app.yaml file looks like:

runtime: python27
api_version: 1
threadsafe: yes

- url: /
  static_files: bin/index.html 
  upload: bin/index.html

- url: /assets
  static_dir: bin/assets 

- url: /src
  static_dir: bin/src

- url: /vendor
  static_dir: bin/vendor

- url: /templates-app.js
  static_files: static/templates-app.js 
  upload: static/templates-app.js

- url: /templates-common.js
  static_files: static/templates-common.js 
  upload: static/templates-common.js

- url: .*
  script: main.app

我使用此命令进行部署:

I use this command to deploy:

gcloud预览应用程序部署app.yaml --version 1 --promote --force

gcloud preview app deploy app.yaml --version 1 --promote --force

我收到此错误:

Beginning deployment...
Copying files to Google Cloud Storage...
Synchronizing files to [gs://staging.myapp.appspot.com/].
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [13] An internal error occurred.

推荐答案

它最终是lib文件夹中的reportlab python库.

It ended up being the reportlab python library in the lib folder.

我发现将其作为zip文件而不是普通文件夹插入是可行的.

I found inserting it as a zip file rather than a normal folder worked.

import sys
sys.path.insert(0, 'reportlab.zip')

import reportlab
...

我不知道为什么它不起作用.但是我记得在使用app-engine上传项目时看到过有关文件限制的信息.部署1个zip文件要好于组成reportlab的181个文件.

I have no idea why it wouldn't work. But I remember seeing something about a file limit when uploading projects with app-engine. Deploying 1 zip file is better than 181 files that make up reportlab.

这篇关于错误响应:[13]在Google Cloud SDK上部署项目时发生内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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