medic / medic-os

A space-efficient Linux-based operating system, designed specifically to run Medic's mHealth platform. This is the build system and source code; Docker images will be available on Medic's website.
https://medic.org
GNU Affero General Public License v3.0
10 stars 6 forks source link

fix COUCH_NODE_NAME #46

Closed Hareet closed 4 years ago

Hareet commented 5 years ago

Variable COUCH_NODE_NAME is located in many places and hardcoded to the old value of couchdb@localhost. This needs to be changed and an image rebuilt to have couchdb@127.0.0.1

SCdF commented 5 years ago

@Hareet as this blocks https://github.com/medic/medic/issues/5499 can you explain how to work around this to set it in a live instance?

Hareet commented 5 years ago

Workaround: in /srv/scripts/medic-api/run/medic-api && /srv/scripts/medic-sentinel/run/medic-sentinel fix COUCH_NODE_NAME='couchdb@127.0.0.1' and run:

/boot/svc-restart medic-api
/boot/svc-restart medic-sentinel

fwiw: In fresh installs, there's differing scripts that run and set the variable elsewhere. This will be globally fixed.

Hareet commented 4 years ago

Fixed in image: medicmobile/medic-os:cht-3.7.0-rc.1