-
Serge
braintree_update_req:128(<0.19469.139>) unable to load bookkeeper document XXXcb217b0c4de37e1b8b1d9d1aXXXXX/default_bookkeeper: not_found
-
Serge
any idea what should I do to to create this document?
-
Serge
mc_: ^
-
mc_
not offhand, would need to check the core libs around services / bookkeepers
-
Serge
Need to make it work somehow. Will really appreciate if you can help with it
-
Serge
-
Serge
mc_: Any chance that you can help me with it today? default_bookkeeper
-
mc_
-
barney_
hey all - any idea where KAZOO-MIB needs to be to start kazoo_snmp ?
-
barney_
Command failed: {'EXIT',{noproc,{gen_server,call,[snmp_master_agent,{load_mibs,["KAZOO-MIB"],false},infinity]}}}
-
Serge
mc_ Unfortunately there is nothing about default_bookkeper =(
-
Serge
and how it should be configured
-
barney_
serge it will be set in the vendors service document under bookkeeper: {"id": "my_bookkeeper_doc_id"}
-
Serge
barney_ in system_config > services I set "master_account_bookkeeper": "kz_bookkeeper_braintree",
-
barney_
yes.. braintree is looking for services -> <MASTERACCOUNTID> {"bookkeeper": {"id": "bookkeeper_doc_id"}}
-
Serge
barney_ where to set it?
-
barney_
look in /services in couch
-
Serge
in superduperadmin services/bookkepers is nothing
-
barney_
-
barney_
what do you have in there?
-
Serge
I have accounts info over there
-
Serge
barney_ payment_tokens etc
-
barney_
do you have a service plan structure setup already?
-
Serge
Just a very simple
-
Serge
count devices and charge $20 per device
-
Serge
with braintree sandbox
-
Serge
barney_ Any idea?
-
barney_
reading the source, i've never used bookkeeping or braintree
-
barney_
do you have your braintree intergration document setup?
-
Serge
yes
-
Serge
_utils/#database/system_config/braintree
-
Serge
barney_ ^
-
barney_
ok and for a client account you have the plan set in their services/<accountid> doc?
-
Serge
correct
-
Serge
_utils/document.html?services/XXXXXeae00fc5b8d1cbe4df12b93340a
-
barney_
ok.. and do you have a bookkeeper document in <vendoraccountdb> with a pvt_type of "bookkeeper" ?
-
barney_
if not you need to either create one called "default_bookkeeper" with a pvt_type of bookkeeper
-
Serge
barney_ do you have any examples how this document should look like?
-
barney_
maybe something like {"_id": "default_bookkeeper", "bookkeeper": {"type": "braintree"}, "pvt_type":"bookkeeper"}
-
barney_
_mc^ any idea about my snmp issue?
-
mc_
barney_: is there a deps/snmp lib present?
-
mc_
connect to VM and run `application:start('snmp').`
-
mc_
-
mc_
but tbh this app is super old
-
barney_
[root@lon2-pbx kazoo]# sup kapps_controller start_app snmp
-
barney_
{ok,[]}
-
barney_
snmpa:load_mib() expects a full path to the mib, but just filename is passed - not sure where it would look for it
-
barney_
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 :/
-
mc_
maybe something like filename:join([code:lib_dir(stats), "KAZOO-MIB.mib"]) ?
-
mc_
would get the path to the MIB
-
mc_
in kazoo_snmp.erl
-
barney_
Command failed: {'EXIT',{noproc,{gen_server,call,[snmp_master_agent,{load_mibs,["/opt/kazoo/lib/stats-4.3.141/KAZOO-MIB.mib"],false},infinity]}}}
-
barney_
that file exists.. so that's not the issue :(
-
mc_
snmp_master_agent isn't running
-
mc_
so something isn't starting it
-
mc_
barney_: no idea off hand for that one
-
barney_
Application snmp started on node 'kazoo_apps@lon2-pbx
-
mc_
barney_: i would guess the OTP snmp lib has changed
-
mc_
but not sure
-
mc_
-
mc_
probably need to define the 'agent' config
-
barney_
[{snmp,[{agent,[{config,[{dir,"/opt/kazoo/agent/conf"}]},{db_dir,"/opt/kazoo/db"}]}]}].
-
barney_
i notice on the old machine i have KAZOO-MIB.bin files
-
barney_
something compiled it i guess
-
mc_
yeah, snmpc:compile/1
-
barney_
is that something load_mibs would do ?
-
mentax_
mc_: how can I make kazoo to reread and apply changes in system_config/services ? is "sup kapps_config flush" will be enough?
-
barney_
sup kazoo_services_maintenance flush
-
barney_
no, sorry you're right - sup kapps_config flush services