OpenLMIS / openlmis-ref-distro

OpenLMIS v3+ Reference Distribution. Last mile health commodity information system.
https://openlmis.org
GNU Affero General Public License v3.0
65 stars 50 forks source link

bad credentials #137

Open kerolayne opened 2 months ago

kerolayne commented 2 months ago

I configured an instance following the steps indicated in a test environment, but the username and password do not return "bad credentials", how can I resolve this?

mgrochalskisoldevelo commented 2 months ago

Hi @kerolayne, could you please provide more details about the issue you're encountering?

kerolayne commented 2 months ago

I configured it as described in the readme, and when using the credentials described in it, they show as not found. I'm attaching a printout with the error that appears when I try to log in. adm password Captura de tela 2024-09-05 112134

mgrochalskisoldevelo commented 2 months ago

In general to make application run it should be enough:

Clone Repository Run:

cp settings-sample.env settings.env

change ip's in settings.env to yours, for example http://192.168.0.23, then run:

docker compose pull
docker compose up

Once containers initialize wait around 5 minutes. Verify all containers are up and running with docker ps.

You can also verify if the local database contains demo data (for example administrator user). spring_profiles_active=demo-data,refresh-db should upload new data with each start. command: postgres -c 'max_connections=300' can be also set to the database service. image

It looks like random error and restart should help if everything is configured as mentioned above.