2014-04-06 88 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默認)

相關問題