Create contact,user and place docs using cht-conf

I am attempting to create a user, it’s associated contact and catchment area using instructions provided here.

  1. I have created a csv file called users.csv and filled out the content for the below columns:

  2. I then ran

cht --url=https://username:password@url --accept-self-signed-certs create-users

  1. And I am getting the following error in the console.

$ cht --url=https://user:password@moh-zanzibar.dev.medicmobile.org --accept-self-signed-certs create-users
INFO Checking that Darasa is available…
(node:20000) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to ‘0’ makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use node --trace-warnings ... to show where the warning was created)
WARN Attempting to use project for Documents against non-matching instance: https://medic:****@moh-zanzibar.dev.medicmobile.org
invisible cygwin console[20000]: c:\ws\src\node_file.cc:1745: Assertion `(argc) == (5)’ failed.
1: 00007FF640AEB1EF v8::internal::CodeObjectRegistry::~CodeObjectRegistry+123599
2: 00007FF640A78BA6 v8::internal::MicrotaskQueue::GetMicrotasksScopeDepth+65206
3: 00007FF640A78F61 v8::internal::MicrotaskQueue::GetMicrotasksScopeDepth+66161
4: 00007FF640A6CCB9 v8::internal::MicrotaskQueue::GetMicrotasksScopeDepth+16329
5: 00007FF641366BE6 v8::internal::Builtins::code_handle+172806
6: 00007FF6413667D9 v8::internal::Builtins::code_handle+171769
7: 00007FF641366A9C v8::internal::Builtins::code_handle+172476
8: 00007FF641366900 v8::internal::Builtins::code_handle+172064
9: 00007FF641439FE1 v8::internal::SetupIsolateDelegate::SetupHeap+494641
10: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
11: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
12: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
13: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
14: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
15: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
16: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
17: 00007FF6413FC183 v8::internal::SetupIsolateDelegate::SetupHeap+241107
18: 00007FF641482732 v8::internal::SetupIsolateDelegate::SetupHeap+791426
19: 00007FF6413EE3BA v8::internal::SetupIsolateDelegate::SetupHeap+184330
20: 00007FF6413CA5BB v8::internal::SetupIsolateDelegate::SetupHeap+37387
21: 00007FF6412AB00B v8::internal::Execution::CallWasm+1563
22: 00007FF6412AB12B v8::internal::Execution::CallWasm+1851
23: 00007FF6412ABBDA v8::internal::Execution::TryCall+378
24: 00007FF641287F6A v8::internal::MicrotaskQueue::RunMicrotasks+410
25: 00007FF641287D0A v8::internal::MicrotaskQueue::PerformCheckpointInternal+74
26: 00007FF641366BE6 v8::internal::Builtins::code_handle+172806
27: 00007FF6413667D9 v8::internal::Builtins::code_handle+171769
28: 00007FF641366A9C v8::internal::Builtins::code_handle+172476
29: 00007FF641366900 v8::internal::Builtins::code_handle+172064
30: 00007FF641439FE1 v8::internal::SetupIsolateDelegate::SetupHeap+494641
31: 00007FF6413CC4AE v8::internal::SetupIsolateDelegate::SetupHeap+45310
32: 00007FF6413CA6BC v8::internal::SetupIsolateDelegate::SetupHeap+37644
33: 00007FF6413CA2BB v8::internal::SetupIsolateDelegate::SetupHeap+36619
34: 00007FF6412AAFE1 v8::internal::Execution::CallWasm+1521
35: 00007FF6412AA8CF v8::internal::Execution::Call+191
36: 00007FF64138D6DC v8::Function::Call+508
37: 00007FF640B17F6D node::CallbackScope::~CallbackScope+637
38: 00007FF640B182F1 node::CallbackScope::~CallbackScope+1537
39: 00007FF640B10594 v8::internal::compiler::Operator::EffectOutputCount+228
40: 00007FF64099A693 v8::internal::LookupIterator::array_index+17667
41: 00007FF64099B0DF v8::internal::LookupIterator::array_index+20303
42: 00007FF64090CC79 v8::internal::OrderedHashTablev8::internal::OrderedHashMap,2::NumberOfDeletedElementsOffset+34921
43: 00007FF64090D3D0 v8::internal::OrderedHashTablev8::internal::OrderedHashMap,2::NumberOfDeletedElementsOffset+36800
44: 00007FF640911737 v8::internal::OrderedHashTablev8::internal::OrderedHashMap,2::NumberOfDeletedElementsOffset+54055
45: 00007FF640996717 v8::internal::LookupIterator::array_index+1415
46: 00007FF6409955FE v8::internal::compiler::Reducer::NoChange+40558
47: 00007FF640B3230B uv_tty_set_vterm_state+9243
48: 00007FF640B4832C uv_loop_init+924
49: 00007FF640B4863A uv_run+202
50: 00007FF640B17725 node::SpinEventLoop+325
51: 00007FF640A31FE1 cppgc::internal::NormalPageSpace::linear_allocation_buffer+51729
52: 00007FF640AACA3A node::Start+202
53: 00007FF6408D86DC RC4_options+347612
54: 00007FF64192E3F8 v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+14520
55: 00007FF9C0FA7344 BaseThreadInitThunk+20
56: 00007FF9C2A426B1 RtlUserThreadStart+33

Yikes! That is a low-level error coming from way below cht-conf in the stack!

invisible cygwin console…

Are you running this on Windows (outside of WSL)? Is this the only cht-conf command that fails for you with this setup? Can you reproduce the behavior on WSL/macOS/Linux? The testing for CHT tooling is primarily done in these environments and we have seen unexpected behavior before when running in Windows via Cygwin/Git-bash…

If you have Docker installed, another option would be to try running the command via the cht-app-ide image.

docker run -it --rm -v "$PWD":/workdir medicmobile/cht-app-ide --url=https://username:password@url --accept-self-signed-certs create-users
1 Like