2016-05-13 1 views
0

J'ai enlevé l'agent deploy de code d'un de l'instance EC2 dans la région: nous-ouest-2 en utilisant la commande:Impossible de réinstaller le codedeploy agent

sudo dpkg -r codedeploy-agent 

comme mentionné dans le doc http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent.html#how-to-verify-agent-version-ubuntu

Pour réinstaller je copiais l'installation du seau s3 adn quand je fais

sudo ./install auto 

Je reçois ce message:

I, [2016-05-13T14:20:03.902026 #5227] INFO -- : Starting Ruby version check. 
I, [2016-05-13T14:20:03.902274 #5227] INFO -- : The current Ruby version is not 2.0.x! Restarting the installer with /usr/bin/ruby2.0 
I, [2016-05-13T14:20:04.043343 #5227] INFO -- : Starting Ruby version check. 
I, [2016-05-13T14:20:04.043548 #5227] INFO -- : Starting update check. 
I, [2016-05-13T14:20:04.043649 #5227] INFO -- : Attempting to automatically detect supported package manager type for system... 
I, [2016-05-13T14:20:04.048600 #5227] INFO -- : Checking AWS_REGION environment variable for region information... 
I, [2016-05-13T14:20:04.048712 #5227] INFO -- : Checking EC2 metadata service for region information... 
I, [2016-05-13T14:20:04.103736 #5227] INFO -- : Running version 1.0-1.950 
I, [2016-05-13T14:20:04.103871 #5227] INFO -- : Downloading version file from bucket aws-codedeploy-us-west-2 and key latest/VERSION... 
I, [2016-05-13T14:20:04.169833 #5227] INFO -- : Running version matches target version, skipping install 
I, [2016-05-13T14:20:04.170000 #5227] INFO -- : Update check complete. 
I, [2016-05-13T14:20:04.170094 #5227] INFO -- : Stopping updater. 

Répondre

0
sudo dpkg -r codedeploy-agent 

ce does't retirer le codedeploy agent complètement

j'ai couru

sudo apt-get purge codedeploy-agent 

puis

sudo ./install auto 

et cela a fonctionné pour moi