[Mifos-users] Unable to start mifos

246 views
Skip to first unread message

Chukwudi Nwachukwu

unread,
Jun 26, 2022, 1:14:09 PM6/26/22
to mifos...@lists.sourceforge.net
I am trying to bootstrap mifos with the command below

docker run -e FINERACT_DEFAULT_TENANTDB_HOSTNAME=172.23.0.1 -e FINERACT_HIKARI_JDBC_URL=jdbc:mariadb://172.23.0.1:3306/fineract_tenants -it apache/fineract:latest /bin/bash

Please note that 172.23.0.1 is the IP address of the host PC, as accessible through docker.

However, the error, attached as a screenshot to this email indicates that
java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
Screenshot from 2022-06-26 18-07-22.png
What I understand is that the environment variable, as supplied, isn't being applied by the docker image.

Does anyone know how to solve this issue? For more context, I have tried doing the normal docker container, as instructed in the README.md but that isn't working for me because it's asking for some keys that I am unable to provide.

Thanks

Kigred Developer

unread,
Jun 26, 2022, 1:39:28 PM6/26/22
to A good place to start for users or folks new to Mifos.
It looks like the database server is not running. Can you try to telnet on that port (3306) or any other way to confirm that myself server is up and running?

Regards 
Wilfred 

_______________________________________________
Mifos-users mailing list
Mifos...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mifos-users

Chukwudi Nwachukwu

unread,
Jun 26, 2022, 2:27:26 PM6/26/22
to A good place to start for users or folks new to Mifos.
I can confirm to you that the DB is up and running. I used Telnet to confirm this.

Please, can you confirm if you saw the attached image? It show the log.
--

Kigred Developer

unread,
Jun 26, 2022, 3:13:55 PM6/26/22
to A good place to start for users or folks new to Mifos.
Yes. I saw the attached image.
Screenshot from 2022-06-26 18-07-22.png

JOSE ALBERTO HERNANDEZ MALDONADO

unread,
Jun 26, 2022, 5:08:49 PM6/26/22
to A good place to start for users or folks new to Mifos.
Hello!

Use --network="host" in your docker run command, then 127.0.0.1 in your docker container will point to your docker host.

Or

You can user host.docker.internal as localhost

Thanks and best regards
Alberto


Reply all
Reply to author
Forward
0 new messages