I am installing Dhis2 on a VPS by hostinger I have set everything but i am receiving this error can understand it.
Hello @Tahir_Zaman
I think the error you are getting is because your port 80 is blocked, which is required by certbot to verify your domain. You may need to enable it if you need a HTTPS certificate from certbot.
If you want a custom certificate instead, see here how to configure that.
cc: @tkipkurgat
Hi
When this task runs, it requires that the domain name is accessible; however, seeing from the log that it’s not able to connect to ‘pakhis2.online’. I tried to connect to http://pakhis2.online but it’s not accepting connections:
This is the first issue that must be resolved, so please make sure that your domain name is pointing to your VPS public ip-address. Until, you are able to access http://pakhis2.online through the browser, the letsencrypt task will continue to fail.
Thanks for clarifying that port 80 is open, but depending on your VPS host, there might be an additional step that you need to take. Your VPS hosting might have another firewall configuration.
I agree with @Gassim, you need to verify if the domain points to your server. You can use the command dig pakhis2.online to see which IP it points to.
If you’re not able to get port open you can use the DNS challenge type
i will check it and try to resole this step first.
Thanks a lot @nnkogift @dancocos @Gassim i have successfully solved the problem with your help. and now the system is accessible on pakdhis2.online.
though i have one questions that i want to ask. instead of using lxd in hosts file i have used ssh and the setup is complete.
but when i am trying to see the containers list i cant see them through sudo lxc list.
so is it different like suing ssh and lxd. and now ho can i access the database dhis proxy and monitoring containers.
Thanks for the help Again!!
Regards
Tahir Zaman Khalid
Salam. I have the same issue with hostinger.can you please share details how you solve?
Yes @Imtiaz when you open your host file you see all the Installation configuration of your instance like database proxy dhis etc there is line like ansible connection =lxd (by deafult). you can change the connection type to ssh rather than lxd. in lxd it happens due to the connection issue or port accessibility. the problem caused can be by your vps firewall or hostinger built in firewal. make sure to allow port 22/tcp as described in the automated installation guide.
what is the difference between lxd and ssh . in lxd each of you instance part like dhis postgress proxy and monitor will be created in its own container . but in ssh the container wont be created all the files will created with out their specific containers.







