16:30:55 braintree_update_req:128(<0.19469.139>) unable to load bookkeeper document XXXcb217b0c4de37e1b8b1d9d1aXXXXX/default_bookkeeper: not_found 16:31:20 any idea what should I do to to create this document? 16:34:04 mc_: ^ 16:37:11 not offhand, would need to check the core libs around services / bookkeepers 16:40:56 Need to make it work somehow. Will really appreciate if you can help with it 16:43:29 is it this document - https://github.com/2600hz/kazoo/blob/master/core/kazoo_documents/src/kzd_services.erl#L508 ? 18:50:44 mc_: Any chance that you can help me with it today? default_bookkeeper 19:20:50 all i have is https://github.com/2600hz/kazoo/blob/4.3/core/kazoo_services/doc/bookkeepers.md atm 19:24:39 hey all - any idea where KAZOO-MIB needs to be to start kazoo_snmp ? 19:25:00 Command failed: {'EXIT',{noproc,{gen_server,call,[snmp_master_agent,{load_mibs,["KAZOO-MIB"],false},infinity]}}} 19:27:06 mc_ Unfortunately there is nothing about default_bookkeper =( 19:27:17 and how it should be configured 19:53:17 serge it will be set in the vendors service document under bookkeeper: {"id": "my_bookkeeper_doc_id"} 19:54:46 barney_ in system_config > services I set "master_account_bookkeeper": "kz_bookkeeper_braintree", 19:56:27 yes.. braintree is looking for services -> {"bookkeeper": {"id": "bookkeeper_doc_id"}} 19:56:43 barney_ where to set it? 19:57:32 look in /services in couch 19:59:22 in superduperadmin services/bookkepers is nothing 20:00:59 http://couch_ip:5984/_utils/database.html?services 20:01:13 what do you have in there? 20:03:40 I have accounts info over there 20:04:47 barney_ payment_tokens etc 20:05:19 do you have a service plan structure setup already? 20:06:16 Just a very simple 20:06:40 count devices and charge $20 per device 20:06:51 with braintree sandbox 20:10:53 barney_ Any idea? 20:11:35 reading the source, i've never used bookkeeping or braintree 20:17:36 do you have your braintree intergration document setup? 20:18:46 yes 20:19:39 _utils/#database/system_config/braintree 20:19:55 barney_ ^ 20:25:12 ok and for a client account you have the plan set in their services/ doc? 20:36:34 correct 20:36:52 _utils/document.html?services/XXXXXeae00fc5b8d1cbe4df12b93340a 20:38:29 ok.. and do you have a bookkeeper document in with a pvt_type of "bookkeeper" ? 20:39:22 if not you need to either create one called "default_bookkeeper" with a pvt_type of bookkeeper 20:39:59 barney_ do you have any examples how this document should look like? 20:54:30 maybe something like {"_id": "default_bookkeeper", "bookkeeper": {"type": "braintree"}, "pvt_type":"bookkeeper"} 20:58:08 _mc^ any idea about my snmp issue? 20:59:48 barney_: is there a deps/snmp lib present? 21:00:19 connect to VM and run `application:start('snmp').` 21:00:58 https://github.com/2600hz/kazoo/tree/4.3/applications/stats has the .mib 21:01:14 but tbh this app is super old 21:02:32 [root@lon2-pbx kazoo]# sup kapps_controller start_app snmp 21:02:32 {ok,[]} 21:04:20 snmpa:load_mib() expects a full path to the mib, but just filename is passed - not sure where it would look for it 21:06:52 i made this work in 2019 and is working on an old machine i powered up.. just can't remember WTF i did to make it work :/ 21:09:08 maybe something like filename:join([code:lib_dir(stats), "KAZOO-MIB.mib"]) ? 21:09:19 would get the path to the MIB 21:09:27 in kazoo_snmp.erl 21:46:15 Command failed: {'EXIT',{noproc,{gen_server,call,[snmp_master_agent,{load_mibs,["/opt/kazoo/lib/stats-4.3.141/KAZOO-MIB.mib"],false},infinity]}}} 21:46:31 that file exists.. so that's not the issue :( 21:59:30 snmp_master_agent isn't running 21:59:35 so something isn't starting it 21:59:42 barney_: no idea off hand for that one 22:00:24 Application snmp started on node 'kazoo_apps@lon2-pbx 22:05:17 barney_: i would guess the OTP snmp lib has changed 22:05:29 but not sure 22:08:33 https://www.erlang.org/doc/man/snmp_app 22:08:41 probably need to define the 'agent' config 22:11:18 [{snmp,[{agent,[{config,[{dir,"/opt/kazoo/agent/conf"}]},{db_dir,"/opt/kazoo/db"}]}]}]. 22:11:53 i notice on the old machine i have KAZOO-MIB.bin files 22:13:03 something compiled it i guess 22:14:52 yeah, snmpc:compile/1 22:16:45 is that something load_mibs would do ? 22:17:23 mc_: how can I make kazoo to reread and apply changes in system_config/services ? is "sup kapps_config flush" will be enough? 22:19:45 sup kazoo_services_maintenance flush 22:24:03 no, sorry you're right - sup kapps_config flush services