コンソールからアプリケーションをSwisscom App Cloudにデプロイしようとしています。最後に、更なる説明なし504が報告されるまで、進行状況を報告します。展開が失敗して504
Updating app helloclass-fe-develop in org UCID-Bern Team/space HELLOCLASS-TEST as [email protected]
OK
Uploading helloclass-fe-develop...
FAILED
Error processing app files: Error uploading application.
Server error, status code: 504, error code: 0, message:
アプリが更新されていることをアプリレポートのログ:
2017-01-03 09:37:39 [RTR/0] OUT helloclass-develop.scapp.io - [03/01/2017:08:37:39.584 +0000] "GET/HTTP/1.1" 200 0 594 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 Google Favicon" 66.249.93.201:50868 10.0.18.35:64341 x_forwarded_for:"83.76.152.96" x_forwarded_proto:"https" vcap_request_id:8a8adcc7-9e97-4bd9-4492-68e92883ee3d response_time:0.001739219 app_id:310166b4-f3a6-4168-a9ac-530e45dbfb10 app_index:0
2017-01-03 09:37:39 [APP/PROC/WEB/0] OUT 83.76.152.96, 66.249.93.201, 66.249.93.201 - - - [03/Jan/2017:08:37:39 +0000] "GET/HTTP/1.1" 200 606
2017-01-03 10:05:50 [API/2] OUT Updated app with guid 310166b4-f3a6-4168-a9ac-530e45dbfb10 ({"name"=>"helloclass-fe-develop"})
2017-01-03 10:57:15 [API/1] OUT Updated app with guid 310166b4-f3a6-4168-a9ac-530e45dbfb10 ({"state"=>"STOPPED"})
2017-01-03 10:57:15 [CELL/0] OUT Exit status 0
2017-01-03 10:57:15 [APP/PROC/WEB/0] OUT Exit status 0
2017-01-03 10:57:15 [CELL/0] OUT Destroying container
2017-01-03 10:57:15 [CELL/0] OUT Successfully destroyed container
2017-01-03 10:57:16 [API/1] OUT Updated app with guid 310166b4-f3a6-4168-a9ac-530e45dbfb10 ({"state"=>"STARTED"})
2017-01-03 10:57:16 [CELL/0] OUT Creating container
2017-01-03 10:57:16 [CELL/0] OUT Successfully created container
2017-01-03 10:57:17 [CELL/0] OUT Starting health monitoring of container
2017-01-03 10:57:19 [CELL/0] OUT Container became healthy
いるだろうそれらのメッセージにもかかわらずアプリが更新されたことを示していますが、アプリの古いバージョンが表示されています。
RESPONSE: [2017-01-03T13:32:39+01:00]
HTTP/1.1 504 Gateway Timeout
Connection: close
Content-Length: 176
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: text/html
Date: Tue, 03 Jan 2017 12:32:39 GMT
Expires: 0
Pragma: no-cache
Strict-Transport-Security: max-age=15768000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Vcap-Request-Id: 3ac831ef-e70b-4f4e-7c56-e308806f039e
X-Xss-Protection: 1; mode=block
<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
FAILED
Error processing app files: Error uploading application.
Server error, status code: 504, error code: 0, message:
cloudfoundry特定いうか、このものです:
EDIT
-v
パラメータを指定してコマンドを実行した後、私は失敗の理由は、ゲートウェイのタイムアウトがあることがわかりSwisscom AppCloudに関連していますか?クラウドフォールト固有のタイムアウト制限はありますか?
あなたのアプリケーションはどれくらいですか? 'helloclass-fe-develop ...をアップロードしていますか? 'でハングアップしていて、CFプロバイダに帯域幅をテストしましたか?あなたのアプリがアップロードに時間がかかりすぎるかもしれません。 @dkoperが述べたように、gorouterはすべての着信要求に対してハードタイムアウトを持っています。デフォルトは900秒ですが、あなたのプロバイダはそれをもっと大きく/小さくするかもしれません。トレース出力からリクエスト/応答の日付ヘッダーを計算すると、その待機時間とタイムアウトになる可能性があるかどうかを知ることができます。 –
ご協力いただきありがとうございます!ビルド/ディストリビューションフォルダの代わりにルートディレクトリからアップロードしていました。これによりタイムアウトが発生しました。 – paweloque