GAE部署失败

时间:2018-11-04 00:14:45

标签: google-app-engine app-engine-flexible google-app-engine-php

我正在将GAE用于Laravel PHP网站并使用flex实例。我一直没有做“ gcloud应用程序部署”来部署我的应用程序的问题。但是,在最近24小时左右的时间内,当我尝试部署时,出现以下错误:

Step #1: Package manifest generated successfully.
Step #1: > chmod -R 755 bootstrap/cache
Step #1: > php artisan cache:clear
Step #1: 
Step #1: In AbstractConnection.php line 155:
Step #1:                                               
Step #1:   Connection timed out [tcp://1.2.3.4:6379]  
Step #1:                                               
Step #1: 
Step #1: Script php artisan cache:clear handling the post-install-cmd event returned with error code 1
Step #1: The command '/bin/sh -c /build-scripts/composer.sh' returned a non-zero code: 1
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/cloud-builders/docker@sha256:12345" failed: exit status 1
Step #1: 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/gcr/builds/12345?project=1234 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details

我有一个Memorystore(redis)实例,因为GAE内存缓存在flex实例上尚不可用。我的应用程序使用redis作为缓存,因此如上所示,一旦部署了新代码,composer就配置为清除缓存,这是超时和失败的地方。

如果我通过SSH连接到现有实例,则可以毫无问题地运行php artisan cache:clear。但是,部署失败。这是一个非常简单的代码更改,仅需UI调整(html / javascript),因此redis或连接代码均未更改。

有什么想法吗?

0 个答案:

没有答案