我正嘗試在我的計算實例上安裝可擴展服務代理。我按照本指南安裝ESP Nginx服務:https://cloud.google.com/endpoints/docs/quickstart-compute-engine#running_the_extensible_service_proxy。我能夠毫無問題地安裝ESP服務,但是當我嘗試使用命令服務nginx start啓動服務時,該服務無法啓動。Google Cloud Endpoint可擴展服務代理無法啓動
首先,它給這個錯誤/var/log/nginx/error.log:
Traceback (most recent call last):
File "/usr/sbin/start_esp.py", line 48, in <module>
from mako.template import Template
ImportError: No module named mako.template
錯誤我安裝使用命令PIP安裝了Mako灰鯖模板模塊後就走了。
現在,它給這個錯誤:
INFO:Fetching the service name from the metadata service
ERROR:Fetching service name failed (status code 404)
任何幫助將非常感激。謝謝
是的。我添加了元數據部分,但它沒有幫助。我沒有安裝Google Cloud SDK。安裝後,它給出了此錯誤: 信息:從元數據服務獲取服務名稱 警告:在連接斷開後重試(重試(總數= 2,連接=無,讀取=無,重定向=無)) 'NewConnectionError(':無法建立新連接:[Errno 113]沒有路由到主機',)':/ computeMetadata/v1/instance/attributes/endpoints-service-name 錯誤:提取服務名稱失敗(狀態碼404) –
我已將元數據添加到一般元數據部分,而不是虛擬實例的元數據部分。在將元數據添加到虛擬實例之後,ESP開始工作。謝謝 –