Acces login page after LXC installation on Ubuntu - Oracle virtualBox

Hello Team,

Hope you are doing well,

i’m not able to access login page after installing DHIS 2.40 on Oracle virtualBox7.1.4 with Automated Install on Ubuntu 20.04.5 : Automated Install on Ubuntu - DHIS2 Documentation

Here are some screenshot, please can u help ?

Sincerely,

////////////////////////////////////////////////////////////inventory/hosts

required for connection variables to 127.0.0.1

127.0.0.1

proxy

[web]
proxy ansible_host=172.19.2.2

database hosts

[databases]
postgres ansible_host=172.19.2.20

dhis2 hosts

[instances]
dhis ansible_host=172.19.2.11 database_host=postgres dhis2_version=2.40 proxy_rewrite=True

monitoring hosts

[monitoring]
monitor ansible_host=172.19.2.30

integration server/container

[integration]

variables applying to all hosts,

[all:vars]

if you do not set fqdn, you dhis2 will be set up with selfsigned certificate

fqdn=

required for LetsEncrypt certificate notification.

email=

timedatectl list-timezones to list timezones

timezone=Africa/Lagos

Options: lxd, ssh defaults to lxd.

ansible_connection=lxd

database

this is the host gateway address to the database server if the database is on another network

db_gateway_address=172.21.0.2

postgresql_version=16

monitoring

server_monitoring=munin
app_monitoring=glowroot

lxd

lxd_network=172.19.2.1/24
lxd_bridge_interface=lxdbr1
guest_os=22.04

Options: amd64,arm64,armhf, defaults_to amd64

guest_os_arch=amd64

lxd_source_server=

lxd_source_protocol=

Options: nginx, apache2 defaults to nginx

proxy=nginx

Options: letsencrypt, customssl, selfsigned, default(letsencrypt if fqdn is defined else selfsigned )

TLS_TYPE=letsencrypt

instances group variables,

[instances:vars]
database_host=postgres
create_db=yes
JAVA_VERSION=11

NOTE: if dhis2_war_file and dhis2_version are both defined, dhis2_war_file takes precedence

dhis2_war_file=“https://releases.dhis2.org/40/dhis2-stable-40.4.0.war

dhis2_war_file=/full/path/dhis2.war

dhis2_version=2.40

whether dhis2 should be upgraded automatically to the latest defined version.

dhis2_auto_upgrade=false
unattended_upgrades=yes



Hello @Guy_Ekani,

I believe your inability to access the newly set up dhis2 instance is related to your virtualization and networking settings. You’ve set up your virtualization in a virtual box VM, which usually allows access to the instance, not on the localhost but on a physical address of your VM, not your host machine.
Is the IP address of your virtual box machine accessible on the host? Is your VM running with a desktop environment and a browser? Where are you running the browser? Is it on the host or inside the VM?

1 Like

Thank’s for your advise @tkipkurgat

My network card was not bridged, it’s working now,

Sincerely,

1 Like