首页 文章

Google Cloud Endpoint可扩展服务代理无法启动

提问于
浏览
1

我正在尝试在我的计算实例上安装可扩展服务代理 . 我按照本指南安装ESP Nginx服务:https://cloud.google.com/endpoints/docs/quickstart-compute-engine#running_the_extensible_service_proxy . 我能够毫无问题地安装ESP服务但是当我尝试使用命令service nginx start启动服务时,该服务无法启动 .

首先它在/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 install mako安装mako模板模块后,错误消失了 .

现在它给出了这个错误:

INFO:Fetching the service name from the metadata service
ERROR:Fetching service name failed (status code 404)

任何帮助将非常感激 . 谢谢

1 回答

  • 2

    您是否忘记在元数据中输入服务名称?来自https://cloud.google.com/endpoints/docs/quickstart-compute-engine

    在“元数据”部分中,添加以下“ endpoints ”元数据键/值对:

    将endpoints-service-name指定为键,将YOUR-PROJECT-ID.appspot.com指定为其值,将YOUR-PROJECT-ID替换为您的项目ID . 单击“添加项” . 将 endpoints - 服务版本指定为密钥,并将部署为密钥值时返回的服务版本指定 .

相关问题