From 5e123f4ec042142326d4b35dc083866dc6f39d4c Mon Sep 17 00:00:00 2001 From: A Holt Date: Sat, 2 Feb 2019 15:50:04 -0500 Subject: [PATCH] Update main.yml --- roles/sugarizer/tasks/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index 0c24c497a..759ca00fa 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -170,9 +170,15 @@ regexp: "^port = 8080$" line: "port = {{ sugarizer_port }}" -# 2019-02-01: HACK REQUIRED FOR NOW on Ubuntu 18.04 so Sugarizer finds MongoDB -# after 1st reboot! This does NOT affect Raspbian. @jvonau wonders if Ubuntu's -# "nameserver 127.0.0.53" in /etc/resolv.conf is to blame? BACKGROUND: PR #1430 +# 2019-02-01: HACK REQUIRED FOR NOW ON UBUNTU 18.04 so Sugarizer finds MongoDB +# after 1st reboot. Otherwise "Waiting for DB..." appears every second as +# shown by "systemctl status sugarizer" and "journalctl -eu sugarizer". +# This does NOT affect Raspbian. @jvonau wonders if Ubuntu's +# "nameserver 127.0.0.53" in /etc/resolv.conf is to blame? @m-anish wondered +# if "bind_ip: 127.0.0.1" in /etc/mongod.conf was to blame as suggested by +# https://stackoverflow.com/questions/8904991/mongodb-cant-connect-to-localhost-but-can-connect-to-localhosts-ip-address +# But changing to "bind_ip: localhost" does not work with Sugarizer, and +# "bind_ip: 127.0.0.1,localhost" is not allowed. BACKGROUND: PR #1430 - name: Set MongoDB "server" from localhost to 127.0.0.1 in /opt/iiab/sugarizer-server/env/sugarizer.ini lineinfile: path: {{ iiab_base }}/sugarizer-server/env/sugarizer.ini