Open koljenovic opened 4 years ago
Yeah my installation failed at the installing Nginx step too, but I let streisand create a new GCP server instead of using an existing one.
I've defaulted cloudflared
to off in #1616, so this no longer affects the default config.
Expected behavior:
Expected the installation to complete successfully.
Actual Behavior:
Installation hanged and eventually failed on
TASK [nginx : Install Nginx]
.Steps to Reproduce:
Additional Details:
After logging into the destination server (while hanged) and stracing the running apt instance (one trying to install nginx), I noticed archive.ununtu.org (and other sources) failing to resolve repeatedly, thus hanging apt, manually trying to resolve other URLs failed as well, trying to resolve on 8.8.8.8 worked but DNS didn't work on 127.0.0.1, dnsmasq was open on 53 and configured with
server=127.0.0.1#5053
, although port 5053 was not opened, after further inspection I noticed that cloudflared service was created but not running, after runningsystemctl start cloudflared
the DNS resolved successfully thus fixing the issue, running ./streisand one more time finished the installation without any further errors. It might be that the service creation/start timing ordering is misconfigured so it accidentally fails DNS for the whole machine in the gap between create and start, while trying to do other tasks in the meantime (apt install nginx).Log output from Ansible or other relevant services (link to Gist for longer output):
Target Cloud Provider: Hetzner
Operating System of target host: Ubuntu 16.04
Operating System of client: Ubuntu 16.04
Version of Ansible, using
ansible --version
: ansible 2.8.4Output from
git rev-parse HEAD
in your Streisand directory: f155974bc9542b1d8525bf223a931dab9b56836f