Closed jdndiaye closed 3 months ago
When I tried to run docker compose up
, I had the following issue:
cht-user-management-cht-user-management-1 | > cht-user-management@1.0.8 start
cht-user-management-cht-user-management-1 | > node dist/index.js
cht-user-management-cht-user-management-1 |
cht-user-management-cht-user-management-1 | Using configuration: CHIS-TG
cht-user-management-cht-user-management-1 | /app/dist/config/config-factory.js:18
cht-user-management-cht-user-management-1 | throw Error(`Failed to start: Cannot find configuration "${usingKey}". Configurations available are ${available}`);
cht-user-management-cht-user-management-1 | ^
cht-user-management-cht-user-management-1 |
cht-user-management-cht-user-management-1 | Error: Failed to start: Cannot find configuration "CHIS-TG". Configurations available are ["CHIS-KE","CHIS-UG"]
cht-user-management-cht-user-management-1 | at getConfigByKey (/app/dist/config/config-factory.js:18:15)
cht-user-management-cht-user-management-1 | at Object.<anonymous> (/app/dist/config/index.js:19:52)
cht-user-management-cht-user-management-1 | at Module._compile (node:internal/modules/cjs/loader:1376:14)
cht-user-management-cht-user-management-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
cht-user-management-cht-user-management-1 | at Module.load (node:internal/modules/cjs/loader:1207:32)
cht-user-management-cht-user-management-1 | at Module._load (node:internal/modules/cjs/loader:1023:12)
cht-user-management-cht-user-management-1 | at Module.require (node:internal/modules/cjs/loader:1235:19)
cht-user-management-cht-user-management-1 | at require (node:internal/modules/helpers:176:18)
cht-user-management-cht-user-management-1 | at Object.<anonymous> (/app/dist/services/contact.js:4:18)
cht-user-management-cht-user-management-1 | at Module._compile (node:internal/modules/cjs/loader:1376:14)
cht-user-management-cht-user-management-1 |
cht-user-management-cht-user-management-1 | Node.js v20.11.0
Am I missing something? cc @kennsippell @inromualdo
I'd recommed you run this via npm run dev
. I believe this will work automatically via docker without modification. If you have a particular reason to use docker, I will be pleased to support you but the npm run dev
experience is much better imo.
I tested it locally and it is working for me :)
@jdndiaye , It seems that it's missing the environnement variables. Did you set them?
It's working now to me :)
I have another concern. When I try to create a new user, I get the following error: "unable to find place_property with property_name:\"name\"",
And yet property_name does exist.
cc @kennsippell @inromualdo
You have an attribute with "property_name": "name"
in place_properties
but you also need one in contact_properties
. You have first_name
and last_name
but not name
. We an autogenerate this here if you really want first_name/last_name but you might consider just providing full name?
That error sucks... Can you git pull
? I made one commit in this PR to update that error message
You have an attribute with
"property_name": "name"
inplace_properties
but you also need one incontact_properties
. You havefirst_name
andlast_name
but notname
. We an autogenerate this here if you really want first_name/last_name but you might consider just providing full name?That error sucks... Can you
git pull
? I made one commit in this PR to update that error message
Thank you @kennsippell for guidance. I finally remove fist_name
and last_name
, and keep just name
.
I can create user and move chw site
@kennsippell, I have another concern.
@jdndiaye Tracked as https://github.com/medic/cht-user-management/issues/47 and https://github.com/medic/cht-user-management/issues/69 and in March sprint
For CHW Post, the profession, and education have discrete values in the contact forms. Are you waiting for Ro's PR? If so, the profession has an "Other" option today... should we support that somehow? New issue?
For CHW Post, the profession, and education have discrete values in the contact forms. Are you waiting for Ro's PR? If so, the profession has an "Other" option today... should we support that somehow? New issue? Exact @kennsippell, waiting for the
select
feature to be complete to handle this case here.
As explained in this ticket, I'm trying to configure the cht user management Tool on the Togo project.