Issue while registering an instance at AWS OPSWORKS












0















I had to move a machine out from one stack into the other. Got the machine de-reristered but while registering it back into the new stack i am facing this issue. Not able to figure out why this is happening and how can we fix this.



[Tue, 20 Nov 2018 10:52:02 +0000] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.MzYVxvCc)
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: File size test passed.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Checksum proof skipped.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Successfully downloaded https://opsworks-instance-assets-us-west-2.s3.amazonaws.com/packages/ubuntu/16.04/opsworks-agent-ruby_2.2.3-1_amd64.deb
[Tue, 20 Nov 2018 10:52:03 +0000] installer-wrapper: Installing agent ruby
Selecting previously unselected package opsworks-agent-ruby.
(Reading database ... 134360 files and directories currently installed.)
Preparing to unpack .../opsworks-agent-ruby_2.2.3-1_amd64.deb ...
Unpacking opsworks-agent-ruby (2.2.3-1) ...
(Noting disappearance of chef, which has been completely replaced.)
Setting up opsworks-agent-ruby (2.2.3-1) ...
[Tue, 20 Nov 2018 10:52:05 +0000] installer-wrapper: Cleaning up
[Tue, 20 Nov 2018 10:52:05 +0000] opsworks-init: Starting the installer
/tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:110:in `block (2 levels) in execute': Failed to execute "dpkg --configure -a" pid 25983 exit 1: Setting up ssmtp (2.64-8ubuntu1) ... (RuntimeError)
hostname: Name or service not known
dpkg: error processing package ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ssmtp
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `loop'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `block in execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `chdir'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:50:in `install_system_updates'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `block in run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/log.rb:96:in `measure'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:11:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/bin/opsworks-agent-registration-installer.rb:8:in `<main>'









share|improve this question























  • Are you running in the private subnet, can you reach AWS endpoints from the instance?

    – titogeo
    Nov 20 '18 at 12:05
















0















I had to move a machine out from one stack into the other. Got the machine de-reristered but while registering it back into the new stack i am facing this issue. Not able to figure out why this is happening and how can we fix this.



[Tue, 20 Nov 2018 10:52:02 +0000] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.MzYVxvCc)
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: File size test passed.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Checksum proof skipped.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Successfully downloaded https://opsworks-instance-assets-us-west-2.s3.amazonaws.com/packages/ubuntu/16.04/opsworks-agent-ruby_2.2.3-1_amd64.deb
[Tue, 20 Nov 2018 10:52:03 +0000] installer-wrapper: Installing agent ruby
Selecting previously unselected package opsworks-agent-ruby.
(Reading database ... 134360 files and directories currently installed.)
Preparing to unpack .../opsworks-agent-ruby_2.2.3-1_amd64.deb ...
Unpacking opsworks-agent-ruby (2.2.3-1) ...
(Noting disappearance of chef, which has been completely replaced.)
Setting up opsworks-agent-ruby (2.2.3-1) ...
[Tue, 20 Nov 2018 10:52:05 +0000] installer-wrapper: Cleaning up
[Tue, 20 Nov 2018 10:52:05 +0000] opsworks-init: Starting the installer
/tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:110:in `block (2 levels) in execute': Failed to execute "dpkg --configure -a" pid 25983 exit 1: Setting up ssmtp (2.64-8ubuntu1) ... (RuntimeError)
hostname: Name or service not known
dpkg: error processing package ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ssmtp
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `loop'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `block in execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `chdir'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:50:in `install_system_updates'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `block in run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/log.rb:96:in `measure'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:11:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/bin/opsworks-agent-registration-installer.rb:8:in `<main>'









share|improve this question























  • Are you running in the private subnet, can you reach AWS endpoints from the instance?

    – titogeo
    Nov 20 '18 at 12:05














0












0








0








I had to move a machine out from one stack into the other. Got the machine de-reristered but while registering it back into the new stack i am facing this issue. Not able to figure out why this is happening and how can we fix this.



[Tue, 20 Nov 2018 10:52:02 +0000] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.MzYVxvCc)
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: File size test passed.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Checksum proof skipped.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Successfully downloaded https://opsworks-instance-assets-us-west-2.s3.amazonaws.com/packages/ubuntu/16.04/opsworks-agent-ruby_2.2.3-1_amd64.deb
[Tue, 20 Nov 2018 10:52:03 +0000] installer-wrapper: Installing agent ruby
Selecting previously unselected package opsworks-agent-ruby.
(Reading database ... 134360 files and directories currently installed.)
Preparing to unpack .../opsworks-agent-ruby_2.2.3-1_amd64.deb ...
Unpacking opsworks-agent-ruby (2.2.3-1) ...
(Noting disappearance of chef, which has been completely replaced.)
Setting up opsworks-agent-ruby (2.2.3-1) ...
[Tue, 20 Nov 2018 10:52:05 +0000] installer-wrapper: Cleaning up
[Tue, 20 Nov 2018 10:52:05 +0000] opsworks-init: Starting the installer
/tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:110:in `block (2 levels) in execute': Failed to execute "dpkg --configure -a" pid 25983 exit 1: Setting up ssmtp (2.64-8ubuntu1) ... (RuntimeError)
hostname: Name or service not known
dpkg: error processing package ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ssmtp
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `loop'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `block in execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `chdir'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:50:in `install_system_updates'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `block in run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/log.rb:96:in `measure'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:11:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/bin/opsworks-agent-registration-installer.rb:8:in `<main>'









share|improve this question














I had to move a machine out from one stack into the other. Got the machine de-reristered but while registering it back into the new stack i am facing this issue. Not able to figure out why this is happening and how can we fix this.



[Tue, 20 Nov 2018 10:52:02 +0000] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.MzYVxvCc)
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: File size test passed.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Checksum proof skipped.
[Tue, 20 Nov 2018 10:52:03 +0000] downloader: Successfully downloaded https://opsworks-instance-assets-us-west-2.s3.amazonaws.com/packages/ubuntu/16.04/opsworks-agent-ruby_2.2.3-1_amd64.deb
[Tue, 20 Nov 2018 10:52:03 +0000] installer-wrapper: Installing agent ruby
Selecting previously unselected package opsworks-agent-ruby.
(Reading database ... 134360 files and directories currently installed.)
Preparing to unpack .../opsworks-agent-ruby_2.2.3-1_amd64.deb ...
Unpacking opsworks-agent-ruby (2.2.3-1) ...
(Noting disappearance of chef, which has been completely replaced.)
Setting up opsworks-agent-ruby (2.2.3-1) ...
[Tue, 20 Nov 2018 10:52:05 +0000] installer-wrapper: Cleaning up
[Tue, 20 Nov 2018 10:52:05 +0000] opsworks-init: Starting the installer
/tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:110:in `block (2 levels) in execute': Failed to execute "dpkg --configure -a" pid 25983 exit 1: Setting up ssmtp (2.64-8ubuntu1) ... (RuntimeError)
hostname: Name or service not known
dpkg: error processing package ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ssmtp
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `loop'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:98:in `block in execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `chdir'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/utils.rb:97:in `execute'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:50:in `install_system_updates'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `block in run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/log.rb:96:in `measure'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:25:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/lib/bootstrap/instance_agent_registration_installer.rb:11:in `run'
from /tmp/opsworks-agent-installer.geIW5s2qnlK1r87x/opsworks-agent-installer/opsworks-agent/bin/opsworks-agent-registration-installer.rb:8:in `<main>'






amazon-web-services aws-opsworks






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 11:10









Siddhant JainSiddhant Jain

209220




209220













  • Are you running in the private subnet, can you reach AWS endpoints from the instance?

    – titogeo
    Nov 20 '18 at 12:05



















  • Are you running in the private subnet, can you reach AWS endpoints from the instance?

    – titogeo
    Nov 20 '18 at 12:05

















Are you running in the private subnet, can you reach AWS endpoints from the instance?

– titogeo
Nov 20 '18 at 12:05





Are you running in the private subnet, can you reach AWS endpoints from the instance?

– titogeo
Nov 20 '18 at 12:05












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53391714%2fissue-while-registering-an-instance-at-aws-opsworks%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53391714%2fissue-while-registering-an-instance-at-aws-opsworks%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter