2014-04-06 61 views
0

我尝试在AWS实例安装Tomcat食谱,但经历如下错误:刀EC2服务器建立返回403禁止

角色tomcat.rb:

name 'tomcat' 
description 'A single tomcat server' 
run_list(
    'recipe[tomcat]' 
) 

运行:

knife ec2 server create --availability-zone us-east-1d --node-name tomcat.demo --flavor t1.micro --image ami-fd20ad94 --identity-file .ssh/tiagov.pem --run-list 'role[tomcat]' --ssh-user ubuntu 

返回:

... 
... 
ec2-54-237-233-176.compute-1.amazonaws.com xorg-sgml-doctools xtrans-dev 
ec2-54-237-233-176.compute-1.amazonaws.com 0 upgraded, 85 newly installed, 0 to remove and 0 not upgraded. 
ec2-54-237-233-176.compute-1.amazonaws.com Need to get 63.2 MB of archives. 
ec2-54-237-233-176.compute-1.amazonaws.com After this operation, 184 MB of additional disk space will be used. 
ec2-54-237-233-176.compute-1.amazonaws.com Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main libasound2 amd64 1.0.25-1ubuntu10.1 
ec2-54-237-233-176.compute-1.amazonaws.com 403 Forbidden 

我在做什么错?

回答

0

我看起来像你的update当您引导实例时,端点可能已过期,您正在安装的软件包已过期。我会检查你的[tomcat]配方具有下列命令(如须藤):

apt-get update 

我也将确保在您的AMI你的Ubuntu用户有sudo的密码的安装访问(这是亚马逊的ubuntu的AMI默认)

相关问题