2016-11-09 30 views
1

創建一個新的靈活環境應用程序,併成功部署最新的GCloud版本(當前爲133),但在沒有任何錯誤日誌的情況下獲得「503服務器錯誤」。使用新的靈活環境應用程序503服務器錯誤

的源代碼:https://github.com/AIMMOTH/scala-stack-angular/tree/503-error

應用鏈接:https://scala-stack-angular-us.appspot.com

Error page: 
Error: Server Error 

The service you requested is not available yet. 
Please try again in 30 seconds. 

版本信息:

Version Status Traffic Allocation Instances Runtime Environment Size Deployed Diagnose 

20161108t190158  Serving  100 % 2 custom Flexible 
+0

我面臨同樣的問題:\ –

回答

1

我有一個過濾器響應/ _ah/*,並打破了谷歌應用程序引擎。

0

對於我來說,那是因爲錯誤的設置在app.yaml

vm: true        # the flexible environment 
runtime: java       # Java 8/Jetty 9.3 Runtime 
service: default 
threadsafe: true      # handle multiple requests simultaneously 

resources: 
    cpu: .5        # number of cores 
    memory_gb: 1.3 
    disk_size_gb: 10      # minimum is 10GB and maximum is 10240GB 

health_check: 
    enable_health_check: true 
    check_interval_sec: 5     # time interval between checks (in seconds) 
    timeout_sec: 4      # health check timeout interval (in seconds) 
    unhealthy_threshold: 2    # an instance is unhealthy after failing this number of consecutive checks 
    healthy_threshold: 2     # an unhealthy instance becomes healthy again after successfully responding to this number of consecutive checks 
    restart_threshold: 60     # the number of consecutive check failures that will trigger a VM restart 

automatic_scaling: 
    min_num_instances: 1 
    max_num_instances: 1 
    cool_down_period_sec: 120    # time interval between auto scaling checks. It must be greater than or equal to 60 seconds. 
             # The default is 120 seconds 
    cpu_utilization: 
    target_utilization: 0.5    # CPU use is averaged across all running instances and is used to decide when to reduce or 
             # increase the number of instances (default 0.5) 

handlers: 
- url: /.*        # regex 
    script: ignored      # required, but ignored 
    secure: always      # https 


beta_settings: 
    java_quickstart: true     # process Servlet 3.1 annotations 
    use_endpoints_api_management: true # enable Google Cloud Endpoints API management 

我刪除use_endpoints_api_management: true,一切工作正常。

相關問題