cloudfoundry-community/terraform-aws-cf-install

get error 255 when "make provision"

Opened this issue · 1 comments

make apply was successful. Nat & bastion was created.
However, when run 'make provision", i got error:
...
Processing triggers for man-db (2.6.7.1-1) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @inc (you may need to install the Term::ReadLine module) (@inc contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Errors were encountered while processing:
at
rsyslog
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
make: *** [provision] Error 255

Also, after that the bastion server's openssh server process was turned off so i can never reach bastion server again.

forgot to mention, after got error this script will actually shutdown the ssh server on the bastion instance. So if i want to re-run the make provision again, it failed like this:
root@ip-172-31-30-241:/terraform-aws-cf-install# make provision
./provision/prepare-provision
./provision/provision-ssh
Attempting to SSH to Bastion server...
ssh: connect to host 52.33.124.71 port 22: Connection refused