@derick
Trying to replace the app folder and setup an old VM which was working, and getting the old error, “ERROR Failed to get a response from https://medic:****@41.xxx.xxx.xxx/medic/. Maybe you entered the wrong URL, wrong port or the instance is not started. Please check and try again.”
I have confirmed the containers are up and running, trying to figure out the source of error
@mrjones
The IP and subdomains didn’t change, preparing this VM for production of our current project, community testing.
I had noted interference between the VMS while doing my test configurations with configurable hierarchy, you would do config in one VM and see the results in another, thus had configured firewall with UFW. I later disabled when cloning over SSH became a long process
Did run some tests and noted the nginx service, couch2pg is not running.
Further noted the following error: curl: (6) Could not resolve host: https, and finally noted the port 443 not open
@mrjones
Getting the same response from another VM, our test VM currently receiving data. Interesting, I see app behavior from another VM, a puzzle to me, need to remove the app files and load the correct ones, stuck
ERROR Failed to get a response from https://medic:****@41.204.187.164/medic. Maybe you entered the wrong URL, wrong port or the instance is not started? Please check and try again.
The app doesn’t load contact form for registration as was working previously, only allows registration of places, base_settings and forms intact
Running nmap 41.204.187.164, gives the error 8080/tcp closed http-proxy
I have removed all UFW rules and disabled the same, still stuck, since I cant get a response from the VMs, cant do any config work, now stuck until I sort out source of the error, anyone with an idea?
@oyierphil - thanks so much for the call earlier today trying to debug this issue. The error you were seeing ERROR Failed to get a response was from when you were running CHT Conf.
After you and I were looking around, I was able to find this error in your nginx logs located in /srv/storage/medic-core/nginx/logs/startup.log in the medic-os container:
==> /srv/storage/medic-core/nginx/logs/startup.log <==
nginx: [emerg] invalid number of arguments in "server_name" directive in /srv/software/medic-core/v2.1.1/x64/etc/nginx/nginx.conf:29
nginx: [emerg] invalid number of arguments in "server_name" directive in /srv/software/medic-core/v2.1.1/x64/etc/nginx/nginx.conf:29
nginx: [emerg] invalid number of arguments in "server_name" directive in /srv/software/medic-core/v2.1.1/x64/etc/nginx/nginx.conf:29
nginx: [emerg] invalid number of arguments in "server_name" directive in /srv/software/medic-core/v2.1.1/x64/etc/nginx/nginx.conf:29
Looking at the nginx config file /srv/software/medic-core/v2.1.1/x64/etc/nginx/nginx.conf, on line 29 it looked like this where server_name has no argument: