issues with loading APP store in Monster-UI

1,687 views
Skip to first unread message

Niki Naychov

unread,
Oct 9, 2014, 12:24:35 PM10/9/14
to 2600h...@googlegroups.com
all installed and running fine but i guess my config is wrong, when i click on APP store nothing is loading up-not even API request is triggered
doc root folder is 167.88.44.170/monster-ui

config.js is
define(function(require){

        return {
                api: {
                        provisioner: 'http://10.26.0.115:8888/Provisioner-2600hz/',
                        default: 'http://167.88.44.170:8000/v2/'/*,*/
                        // default: 'http://10.26.0.61:8000/v2/
                        //socket: 'http://10.26.0.41:5555'
                },

                //language: 'en-US',
                resellerId: '64cd8d2a12ac216104a1341ab1b9ab2a',

                company: {
                        name: '2600hz',
                        website: ''
                },

                nav: {
                        help: 'http://wiki.2600hz.com',
                        learnMore: 'http://www.2600hz.com/'
                }
        };

});

then i tried to install accounts app
this ts the document i placed under my account/66/4e/18ad00da4f7xxxxxxxxxxx DB , when i list views by app-store/crossbar-listing

{
   "_id": "1985168ab2208ac561bfe5ff49a79895",
   "_rev": "2-348ff383f31ed9520109db07fbb81271",
   "name": "accounts",
   "source_url": "http://167.88.44.170/monster-ui/accounts",
   "i18n": {
       "en-US": {
           "label": "Accounts Manager",
           "description": "The Accounts app allows you to create, customize, and manage of all your client accounts.",
           "extended_description": "This application allows resellers and service providers to handle anything related to all their customer accounts, giving you all the granular control you need to ensure your customers have an enjoyable experience with your service. In the Accounts app you can create a white labeled portal, choose which apps are available to each account, and manage each client's billing in our native billing software. Via this tool you can easily see and manage all the sub-accounts you have under your main account. Easily edit and configure all the accounts while saving time and money, allowing you to stay on top of all your sub accounts with ease.",
           "features": [
               "Customizable sub accounts",
               "White-labeled portal",
               "Easy monitoring when sub account deregisters",
               "Native Billing software"
           ]
       }
   },
   "tags": [
       "reseller",
       "developer"
   ],
   "icon": "Accounts_app.png",
   "api_url": "http://167.88.44.170:8000/v2",
   "author": "2600Hz",
   "version": "1.0",
   "license": "-",
   "price": 0,
   "screenshots": [
   ],
   "urls": {
       "documentation": "{documentation_url}",
       "howto": "{howto_video_url}"
   },
   "pvt_type": "app"
}

also when i login the below URL can not be loaded - not sure if it is related

 http://167.88.44.170:8000/v2/accounts/664e18ad00da4f7xxxxxxxxxxxxx/braintree/customer?_=1412870928986

Arek Fryz

unread,
Oct 9, 2014, 12:59:53 PM10/9/14
to 2600h...@googlegroups.com
Try this:

- remove source_url completely
- set name to app folder name that exists in apps/
- put any dummy screenshot filename (it will not load without that)

Should work.


Regards,
Arek Fryz



REMAC ENTERPRISES, LTD.




--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jean Roch Maitre

unread,
Oct 9, 2014, 1:25:09 PM10/9/14
to 2600h...@googlegroups.com
Thanks Arek for your answer, you already know what's up with Monster UI :)

I removed the source_url from the appstore.md file since it was leading to confusion, but if you feel like we can make the doc better, feel free to update it and send us a pull-request!

Niki: With the updates Arek recommended you to do, the app should load normally!


Jean-Roch Maitre 
Lead Front-End Engineer
 

Have you signed up for KazooCon ’14 yet? Registration is still open and early-bird ticket specials are ending soon! Head over to kazoocon.com to register and get more info! We hope to see you there!

De : 2600h...@googlegroups.com [2600h...@googlegroups.com] de la part de Arek Fryz [ar...@remacenterprises.com]
Envoyé : jeudi 9 octobre 2014 09:45
À : 2600h...@googlegroups.com
Objet : Re: issues with loading APP store in Monster-UI

Niki Naychov

unread,
Oct 9, 2014, 5:01:51 PM10/9/14
to 2600h...@googlegroups.com

thanks a lot Arek, yes i figure out later that i am missing apps/ part in the URL
The new interface is much more friendly and easy. You are doing Awesome job guys!!

i added all 5 apps, they are loading fine but WEBhooks App can not load

"An unknown error happened, please try again in a few seconds!

API Response: not found"

it looks it is requesting that:
 http://kazoo.vonix.net:8000/v2/accounts/664e18ad00da4f78a9db71accbd55bb4/webhooks?_=1412888142686 404 (Not Found) 

thanks again

On Thursday, October 9, 2014 12:24:35 PM UTC-4, Niki Naychov wrote:

Jean Roch Maitre

unread,
Oct 9, 2014, 6:11:59 PM10/9/14
to 2600h...@googlegroups.com
It means the webhooks API isn't running I think. Is your webhooks crossbar module started? To start it I think the command is: sup crossbar_maintenance start_module cb_webhooks. Give it a try and let me know!



Jean-Roch Maitre 
Lead Front-End Engineer
 

De : 2600h...@googlegroups.com [2600h...@googlegroups.com] de la part de Niki Naychov [nikolay...@gmail.com]
Envoyé : jeudi 9 octobre 2014 14:01

À : 2600h...@googlegroups.com
Objet : Re: issues with loading APP store in Monster-UI

Te Matau

unread,
Oct 9, 2014, 6:26:36 PM10/9/14
to 2600h...@googlegroups.com
Will Monster work with 3.12 or do we need to be running the latest of everything?

Jean Roch Maitre

unread,
Oct 9, 2014, 7:39:27 PM10/9/14
to 2600h...@googlegroups.com
Some parts of it might work but I think the first supported version is v3.18... And it is still an early release. We wanted people to start playing with Monster-UI but we don't recommend rolling it out to production unless you tested it extensively. We're still waiting for more feedback and tickets! :) (Although we have been testing it for the past year, we can never try all the different corner cases!)



Jean-Roch Maitre 
Lead Front-End Engineer
 

De : 2600h...@googlegroups.com [2600h...@googlegroups.com] de la part de Te Matau [tema...@gmail.com]
Envoyé : jeudi 9 octobre 2014 15:26

À : 2600h...@googlegroups.com
Objet : Re: issues with loading APP store in Monster-UI
Will Monster work with 3.12 or do we need to be running the latest of everything?

--

Te Matau

unread,
Oct 9, 2014, 9:55:33 PM10/9/14
to 2600h...@googlegroups.com
Yes it does work with 3.12 (limited testing). OMG this is awesome.

Thanks for your excellent work.

Te Matau

unread,
Oct 9, 2014, 10:40:53 PM10/9/14
to 2600h...@googlegroups.com
Doing some testing on ipad and notice some quirks. Where's the best place to give that feedback?

Darren Schreiber

unread,
Oct 9, 2014, 11:43:43 PM10/9/14
to 2600h...@googlegroups.com
There are some subtle bugs though. Strongly recommend moving to v3.16

--

Darren Schreiber

unread,
Oct 9, 2014, 11:45:33 PM10/9/14
to 2600h...@googlegroups.com
Hi Te,

Please make sure to include:
* Recreate steps
* Proper version number
* Picture if you can

From: Te Matau <tema...@gmail.com>
Reply-To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
Date: Thursday, October 9, 2014 at 7:40 PM
To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
--

Vadim Kutsenko

unread,
Feb 17, 2015, 10:49:20 AM2/17/15
to 2600h...@googlegroups.com

Hello. I have the same problems...

My config in app_store -> crossbar_listing:

{
   "_id": "b7945b34a8a2e3431d0b84ad7b013266",
   "_rev": "25-6171a6dc7302d8a76860ae9818197585",
   "name": "accounts",
   "source_url": "http://10.1.200.230/monster-ui/apps/accounts",
   "i18n": {
       "en-US": {
           "label": "Accounts Manager",
           "description": "The Accounts app allows you to create, customize, and manage of all your client accounts.",
           "extended_description": "This application allows resellers and service providers to handle anything related to all their customer accounts, giving you all the granular control you need to ensure your customers have an enjoyable experience with your service. In the Accounts app you can create a white labeled portal, choose which apps are available to each account, and manage each client's billing in our native billing software. Via this tool you can easily see and manage all the sub-accounts you have under your main account. Easily edit and configure all the accounts while saving time and money, allowing you to stay on top of all your sub accounts with ease.",
           "features": [
               
"Customizable sub accounts",
               "White-labeled portal",
               "Easy monitoring when sub account deregisters",
               "Native Billing software"
           ]

       }
   },
   "tags": [
       "reseller",
       "developer"
   ],
   "icon": "Accounts_app.png",
   "api_url": "http://10.1.200.230:8000/v2",
   "author": "2600Hz",
   "version": "1.0",
   "license": "-",
   "price": 0,
   "screenshots": [
   ],
   "urls": {
       "documentation": "",
       "howto": ""
   },
   "pvt_type": "app",
   "_attachments": {
       "Accounts_app.png": {
           "content_type": "image/png",
           "revpos": 23,
           "digest": "md5-rPtf2FbB3plrNNLBMHYvjw==",
           "length": 14455,
           "stub": true
       }
   }
}

 When I try open “Apps” in main page, I get error in console log:

“GET http://10.1.200.230:8000/v2/accounts/9635737fc8690f55a22b17e279ea076c/apps_…4a8a2e3431d0b84ad7b013266/icon?auth_token=8149ba5b3a0f960c3ef59caa4a269b9b 404 (Not Found)”

 

Response for this GET is:

{"data":["b7945b34a8a2e3431d0b84ad7b013266"],"error":"404","message":"bad identifier","status":"error","request_id":"350ad099ce1dbaba337b0a290171c7d5","auth_token":"8149ba5b3a0f960c3ef59caa4a269b9b"}
 
I’m tried a lot of combinations, but still it dont work.
 
Can you give me push in right direction?

четвер, 9 жовтня 2014 р. 19:24:35 UTC+3 користувач Niki Naychov написав:

Sam Metson

unread,
Feb 17, 2015, 3:51:00 PM2/17/15
to 2600h...@googlegroups.com
Hi,

It's possible that, similarly to Niki's problem above, the apps_store endpoint is not running on Kazoo. To start the apps_store crossbar module, try this maintenance command:

sup crossbar_maintenance start_module cb_apps_store

If you're running a version before 3.16, this may work instead:

sup crossbar start_mod cb_apps_store

Cheers,
Sam

Vadim Kutsenko

unread,
Feb 19, 2015, 5:38:24 AM2/19/15
to 2600h...@googlegroups.com

Thank for your response, but it didn't help me...

 

I'm turn on debug level in kazoo, and now i have some logs:

 

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|api_resource:482 (<0.9195.3>) requested resource exists, validating it

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|kazoo_bindings:713 (<0.9195.3>) routing v1_resource.validate_resource.accounts matches *.validate_resource.accounts

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|cb_accounts:973 (<0.9195.3>) account 8a7eee1577e747fff2f36fc1b08518a1 db exists, setting operating database as account%2F8a%2F7e%2Fee1577e747fff2f36fc1b08518a1

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|kazoo_bindings:713 (<0.9195.3>) routing v1_resource.validate.apps_store matches *.validate.apps_store

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|api_util:813 (<0.9195.3>) validating data failed

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|api_resource:494 (<0.9195.3>) failed to validate resource

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|api_util:1064 (<0.9195.3>) halting execution here

Feb 18 18:22:47 voip 2600hz[4481]: |7b47cf5d2ca8730a225ff196cf9ccc83|api_util:1021 (<0.9195.3>) generating error 404 bad identifier response

 

Now i'm trying understand Erlang syntaxes, and debug this validation...


вівторок, 17 лютого 2015 р. 22:51:00 UTC+2 користувач Sam Metson написав:

Sam Metson

unread,
Feb 19, 2015, 4:24:01 PM2/19/15
to 2600h...@googlegroups.com
It looks like it's failing to find the app icon (…4a8a2e3431d0b84ad7b013266/icon). I didn't realise that in my above post.

Have you tried re-uploading the icon?

bmx...@gmail.com

unread,
Feb 19, 2015, 8:53:12 PM2/19/15
to 2600h...@googlegroups.com
Why don't you check if your crossbar modules are loaded (or not) in the first place ? 

sup crossbar_maintenance running_modules

Sam Metson

unread,
Feb 19, 2015, 10:48:39 PM2/19/15
to 2600h...@googlegroups.com
Judging by the above logs, it looks like the apps store is running because the apps store validate binding is correctly loaded:

'routing v1_resource.validate.apps_store matches *.validate.apps_store'

VCCS Telecom

unread,
Mar 4, 2015, 12:01:52 PM3/4/15
to 2600h...@googlegroups.com
The icon 404 is a mystery to me still as well , ive been on it off and on and cant find the reason.. re-uploading it doesnt fix it..I will post back if I get it..

Peter Defebvre

unread,
Mar 4, 2015, 12:16:52 PM3/4/15
to 2600h...@googlegroups.com
If you re-upload it I would advice you to run ’sup couch_mgr flush_cache_docs’ to flush the cache, this might help.

Best,

Peter



VCCS Telecom

unread,
Mar 4, 2015, 12:30:07 PM3/4/15
to 2600h...@googlegroups.com
Definitely good advice, how ever not the solution in my case at least.. The api call has changed due to the move of apps into service plans I guess, were not self calling anymore. Example:

Old Working: URL/v2/apps_store/voip/icon?auth_token=123
NEW not working: /v2/accounts/ACCT-ID/apps_store/voip/icon?auth_token=123

So there in lies the code changes

On Thursday, October 9, 2014 at 12:24:35 PM UTC-4, Niki Naychov wrote:

Peter Defebvre

unread,
Mar 4, 2015, 12:34:14 PM3/4/15
to 2600h...@googlegroups.com
Yes indeed, apps store has been change in 3.19. you can find the updated documentation here:


VCCS Telecom

unread,
Mar 4, 2015, 12:54:31 PM3/4/15
to 2600h...@googlegroups.com
Ah yes I was looking at that, thanks.

As for Niki, did you try to remove the URL from the source url as mentioned? just specify the app folder location apps/appname.. 


On Thursday, October 9, 2014 at 12:24:35 PM UTC-4, Niki Naychov wrote:

Alexander Mustafin

unread,
Mar 5, 2015, 2:48:04 AM3/5/15
to 2600h...@googlegroups.com
Hi, guys.

I've updated:
kazoo-kamailio-4.2.3-14.el6.x86_64
kazoo-R15B-3.19-34.el6.x86_64
kazoo-json-c-master-0.el6.x86_64
kazoo-configs-3.19-11.el6.noarch
kazoo-librabbitmq-master-1.el6.x86_64
kazoo-ui-3.19-1.el6.noarch
kazoo-bigcouch-R15B-0.4.x-1.el6.x86_64

And set up apps documents in master account. Those are visible in apps_store --> crossbal_listing. BUT request to http://server:8000/v2/accounts/{ACCOUNT_ID}/apps_store returns me:
 """{"data":{},"revision":"8-dc5ae5903ac21ce3b12a0f3a102bdbd","request_id":"3db8a8f2e6bc8bb3648731fa250653f3","status":"success","auth_token":"784a3f0de7a3dce30edcac0dde76c915"}"""

In debug log I've seen only successful generating of above response:
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|kazoo_bindings:725 (<0.4143.0>) routing v2_resource.validate.apps_store matches *.validate.apps_store
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|crossbar_doc:148 (<0.4143.0>) loaded doc 946ab6a22522d5b8377d46a73369dc12(8-fdc5ae5903ac21ce3b12a0f3a102bdbd) from account%2F94%2F6a%2Fb6a22522d5b8377d46a73369dc12
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|kazoo_bindings:725 (<0.4143.0>) routing v2_resource.billing matches v2_resource.billing
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|api_util:882 (<0.4143.0>) billing returned success
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|api_resource:489 (<0.4143.0>) requested resource update validated
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|api_resource:629 (<0.4143.0>) run: to_json
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|api_util:1019 (<0.4143.0>) pull response content: {"data":{},"revision":"8-fdc5ae5903ac21ce3b12a0f3a102bdbd","request_id":"3db8a8f2e6bc8bb3648731fa250653f3","status":"success","auth_token":"784a3f0de7a3dce30edcac0dde76c915"}
Mar  5 07:31:08 sip 2600hz[1447]: |3db8a8f2e6bc8bb3648731fa250653f3|api_resource:149 (<0.4143.0>) GET request fulfilled in 13 ms
Mar  5 07:31:08 sip 2600hz[1447]: |undefined|kazoo_bindings:704 (<0.4148.0>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"apps_store">>,<<"GET">>,<<"finish_request">>,<<"v2_resource">>]

I tried all advices from this topic, but unsuccessfully. Can you help me with this problem?

Peter Defebvre

unread,
Mar 5, 2015, 1:06:38 PM3/5/15
to 2600h...@googlegroups.com
It could be that you did not put them in the right “master account”.

Or you turned on the apps store in your services (see link with the doc) and did not provide any app in it.


Best,

Peter



On Mar 4, 2015, at 11:43 PM, Alexander Mustafin <mustafin....@gmail.com> wrote:


Alexander Mustafin

unread,
Mar 5, 2015, 3:13:08 PM3/5/15
to 2600h...@googlegroups.com
Thank you, Peter. I've put this docs in database, contains superduper_admin account:
  "language": "en-us",
   "pvt_type": "account",
   "pvt_vsn": "1",
   "pvt_api_key": "910f085f44b5cfeff3469c39cea81a409f72cf9702448375fa385acac20cd60c",
   "pvt_tree": [
   ],
   "pvt_created": 63576336401,
   "pvt_modified": 63592752005,
   "pvt_account_db": "account%2F94%2F6a%2Fb6a22522d5b8377d46a73369dc12",
   "pvt_account_id": "946ab6a22522d5b837fdffda73369dc12",
   "pvt_superduper_admin": true,
   "pvt_wnm_allow_additions": true,

Not sure I'm quite understand "Or you turned on the apps store in your services (see link with the doc)", which link you mean?

When I create apps permissions in account document, API request looks like this:
{"data":{"15b0834217474eef3ae6aee5af129e0c":{"allowed_users":"admin"},"81b710e580aa6f537ce202a0fd0e1788":{"allowed_users":"all"}},"revision":"10-cf3f0f9d505c9bf473e252de6107a089","request_id":"5753286e512599633f4c152d0ce1c9f2","status":"success","auth_token":"890ec0bcdf0cd0640df06bea3776c9a2"}


четверг, 5 марта 2015 г., 23:06:38 UTC+5 пользователь macpie написал:

Peter Defebvre

unread,
Mar 5, 2015, 3:35:05 PM3/5/15
to 2600h...@googlegroups.com
Docs on apps store:

This looks like it is the right account but do not assume that this account is the master one because it has the flag “pvt_superduper_admin” set to true. The master account is the top level one meaning that pvt_tree is an empty array.

I hope this will help.

Best,

Peter



Alexander Mustafin

unread,
Mar 6, 2015, 9:12:24 AM3/6/15
to 2600h...@googlegroups.com
Thanks, Peter. I just cut my doc - pvt_tree is empty list, so, we assume that account is "master". In this part, black hole is https://github.com/2600hz/kazoo/blob/master/core/whistle_services-1.0.0/doc/index.md (for adding them to services). Because, I have no services before. 

So, does apps_store works without whistle_services now, or I must to have it, even if I don't want charging them? 

IMHO, document about whistle_services have a leaking:  "To add applications to your service plans. You need to add them under the category ui_apps."
But everymen, like me )) do not understand where I should place "ui_apps". 

пятница, 6 марта 2015 г., 1:35:05 UTC+5 пользователь macpie написал:

VCCS Telecom

unread,
Mar 12, 2015, 11:27:03 AM3/12/15
to 2600h...@googlegroups.com
The service plan documentation along with the help doc you are referring to tells you everything you need to do about where they go.. How ever, apps/app store will function even if you do not have them added to service plans ... The missing incons was due to a failing authz media: for the master account ID but has now been fixed in the latest kazoo version.

Alexander Mustafin

unread,
Mar 12, 2015, 11:38:55 PM3/12/15
to 2600h...@googlegroups.com
Thank you, VCCS.

I've updated for latest version now. I added 2 apps in db and now I can retrieve correct answer via curl. 
But next step is errors in browsers:

Firefox: 
"TypeError: e is undefined
...return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++...
jquery-1.9.1.min.js?bust=1426216621951

Chrome:
(jquery-1.9.1.min.js?bust=1426217326113:3 Uncaught TypeError: Cannot read property 'length' of undefined

четверг, 12 марта 2015 г., 20:27:03 UTC+5 пользователь VCCS Telecom написал:

Alexander Mustafin

unread,
Mar 18, 2015, 9:37:22 AM3/18/15
to 2600h...@googlegroups.com
My fault. This problem raleted with other errors. I've successfully installed Monster-UI on development server. I used this guide strictly http://mindsgrid.com/blog/2015-01/voip-kazoo-2600hz-gui-monster-ui/ and all works fine.

пятница, 13 марта 2015 г., 8:38:55 UTC+5 пользователь Alexander Mustafin написал:
...

Franz Recinos

unread,
Apr 16, 2015, 3:31:25 PM4/16/15
to 2600h...@googlegroups.com
I just installed monster-ui and I do get the page but I always get this error:

does kazoo-ui needs to be installed as well? When I try to login it times out

Jean Roch Maitre

unread,
Apr 16, 2015, 4:18:25 PM4/16/15
to 2600h...@googlegroups.com
This just checks if you're whitelabeling or not. The request failing shouldn't change anything on the UI.


Jean-Roch Maitre 
Engineering Manager
 

De : 2600h...@googlegroups.com [2600h...@googlegroups.com] de la part de Franz Recinos [fla...@gmail.com]
Envoyé : jeudi 16 avril 2015 12:30
À : 2600h...@googlegroups.com
Objet : Re: issues with loading APP store in Monster-UI

Franz Recinos

unread,
Apr 16, 2015, 6:09:30 PM4/16/15
to 2600h...@googlegroups.com
When I try to login I get a time out error http://192.99.90.174:8000/v2/user_auth net::ERR_CONNECTION_TIMED_OUT. How Do I know that the connection to the DB is ok?

Franz Recinos

unread,
Apr 16, 2015, 10:46:53 PM4/16/15
to 2600h...@googlegroups.com
If I test 

[root@kazoo kazoo]# curl http://192.99.90.174:8000/v2

I get an answer:

{"data":{"message":"invalid credentials"},"error":"401","message":"invalid_credentials","status":"error","request_id":"eb37dd771c684d570e1c3b15810afbb0","auth_token":""}


But the ui does not seems to send the request, is there any setting needed in http.conf?


I also get this erre:


Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

VCCS Telecom

unread,
Aug 8, 2015, 10:31:56 PM8/8/15
to 2600hz-dev
Hello, this thread is very old but I figured I would re-visit adding apps to service plans now that were several versions away from this. I am still getting the same issue loading the apps and upon login I get "There was an issue loading your applications" and an auto-logout. The issue seems to be :

kazoo_bindings:662 (<0.13289.0>) unable to find function clause for cb_apps_util:find_enabled_apps(

in src/cb_apps_util.erl:172


Which in turn results in several other errors I think due to not getting an auth token.

What I have tried many times: Ensure service plan is accurate with ui_apps data from the docs. Check that apps are setup properly in the DB (all apps load fine if there is no service plan applied with ui_apps listed). I have ensured apps are loaded in Accounts from the origin of appstore. I have tried to run the app data from command line and receive the same error from cowboy, not with master but with the sub account IDs. I am really at a loss, I am only curious now about 2 potential issues. Since apps are being loaded from an external source, do I need to have a valid CA root? Will this cause an issue while using Crossbar/SSL? Mind you im loading everything else just fine...Secondly is it possible theres an issue of not having Default apps specified?  
"whapps_config:253 (<0.13009.0>) setting default for services [<<"modules">>]: undefined"

I have also Flushed the accounts and DB cache on every change. One last special mention is that not all of the apps seem to be listed when the error output is "unable to find function clause for cb_apps_util:find_enabled_apps" is that it does not list all of the apps, just a few like below is webhooks and voip but all the usual's are available...
I really appreciate any insight at this point, thank you.


Here is the full debug error:

Aug  8 16:34:18 kz 2600hz[1600]: |undefined|crossbar:38 (<0.15344.5>) routing to version 2
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:105 (<0.15344.5>) OPTIONS: /v2/user_auth? from MYIP
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:160 (<0.15344.5>) run: known_methods
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:180 (<0.15344.5>) run: allowed_methods
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_util:156 (<0.15344.5>) undefined content type when getting req data, assuming application/json
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|kazoo_bindings:695 (<0.15344.5>) matched [<<"user_auth">>,<<"allowed_methods">>,<<"*">>] to [<<"user_auth">>,<<"allowed_methods">>,<<"v2_resource">>]
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:222 (<0.15344.5>) adding cors headers
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:234 (<0.15344.5>) allowing OPTIONS request for CORS preflight
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_util:744 (<0.15344.5>) options requests are permitted by default
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:340 (<0.15344.5>) is CORS request
Aug  8 16:34:18 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|api_resource:144 (<0.15344.5>) OPTIONS request fulfilled in 0 ms
Aug  8 16:34:18 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15345.5>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"user_auth">>,<<"OPTIONS">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:18 kz 2600hz[1600]: |undefined|crossbar:38 (<0.15347.5>) routing to version 2
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:105 (<0.15347.5>) PUT: /v2/user_auth? from MYIP
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:160 (<0.15347.5>) run: known_methods
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:180 (<0.15347.5>) run: allowed_methods
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:176 (<0.15347.5>) application/json content type when getting req data
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:477 (<0.15347.5>) request has a json payload: {"data":{"credentials":"2c846f7fb1c90c3ba56bcccf5609beb1","account_name":"testcc"}}
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:497 (<0.15347.5>) request envelope is valid
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:695 (<0.15347.5>) matched [<<"user_auth">>,<<"allowed_methods">>,<<"*">>] to [<<"user_auth">>,<<"allowed_methods">>,<<"v2_resource">>]
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:222 (<0.15347.5>) adding cors headers
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:723 (<0.15347.5>) using auth token from header
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:695 (<0.15347.5>) matched [<<"authenticate">>,<<"*">>] to [<<"authenticate">>,<<"v2_resource">>]
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_ip_auth:88 (<0.15347.5>) attemping to authenticate ip MYIP
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:431 (<0.15347.5>) getting start_key from request: undefined
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:387 (<0.15347.5>) pagination enabled by default, checking filters
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:411 (<0.15347.5>) no query string filter, getting page size from 50
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:335 (<0.15347.5>) limit: 51 page_size: 50 dir: ascending
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:364 (<0.15347.5>) paginating view 'accounts/listing_by_ip' from 'accounts', starting at 'undefined'
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_modules_util:517 (<0.15347.5>) flat token cost of 1 configured
Aug  8 16:34:18 kz 2600hz[1600]: |00000000000|kz_token_bucket:193 (<0.14992.5>) consumed 1, 99 left
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_token_auth:172 (<0.15347.5>) checking auth token: 'undefined'
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_token_auth:176 (<0.15347.5>) failed to authenticate token auth, empty_doc_id
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:686 (<0.15347.5>) exact match for v2_resource.authenticate
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:686 (<0.15347.5>) exact match for v2_resource.authorize
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:695 (<0.15347.5>) matched [<<"authorize">>,<<"*">>] to [<<"authorize">>,<<"v2_resource">>]
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_simple_authz:142 (<0.15347.5>) authorizing, the request does not contain any system administration modules
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_simple_authz:88 (<0.15347.5>) not authorizing, auth account id is undefined
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_simple_authz:65 (<0.15347.5>) the request can not be authorized by this module
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:823 (<0.15347.5>) is <<"application/json">> acceptable content type: true
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:355 (<0.15347.5>) run: content_types_provided
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:468 (<0.15347.5>) run: languages_provided
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:479 (<0.15347.5>) adding first accept-lang header language: en-us
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:506 (<0.15347.5>) run: resource_exists
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:695 (<0.15347.5>) matched [<<"user_auth">>,<<"resource_exists">>,<<"*">>] to [<<"user_auth">>,<<"resource_exists">>,<<"v2_resource">>]
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:518 (<0.15347.5>) requested resource exists, validating it
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:716 (<0.15347.5>) routing v2_resource.validate.user_auth matches *.validate.user_auth
Aug  8 16:34:18 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_modules_util:517 (<0.15347.5>) flat token cost of 1 configured
Aug  8 16:34:18 kz 2600hz[1600]: |00000000000|kz_token_bucket:202 (<0.14992.5>) consumed 1, 98 left
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_user_auth:410 (<0.15347.5>) found account by name 'testcc': account%SUBACCOUNT
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:431 (<0.15347.5>) getting start_key from request: undefined
Aug  8 16:34:19 kz 2600hz[1649]: |wh_nodes|wh_amqp_channel:154 (<0.973.0>) published to nodes(amqp://guest:guest@kz:5672) exchange (routing key ) via <0.1087.0>
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:387 (<0.15347.5>) pagination enabled by default, checking filters
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:411 (<0.15347.5>) no query string filter, getting page size from 50
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:335 (<0.15347.5>) limit: 51 page_size: 50 dir: ascending
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:364 (<0.15347.5>) paginating view 'users/creds_by_md5' from 'account%SUBACCOUNT', starting at 'undefined'
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:902 (<0.15347.5>) applying filter fun: undefined, qs filter: false to dir ascending
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_doc:880 (<0.15347.5>) recv less than 50 results: 1
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_user_auth:281 (<0.15347.5>) found more that one user with MD5 creds, using 7913b8488bf11d9b2ce39c3e6a94a92d
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:716 (<0.15347.5>) routing v2_resource.billing matches v2_resource.billing
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:941 (<0.15347.5>) billing returned success
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:527 (<0.15347.5>) requested resource creation validated
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:543 (<0.15347.5>) run: moved_permanently
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:619 (<0.15347.5>) run: is_conflict: false
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:384 (<0.15347.5>) run: content_types_accepted
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:402 (<0.15347.5>) checking content type '{<<"application">>,<<"json">>,[]}' against accepted
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:442 (<0.15347.5>) cta: [{{<<"application">>,<<"json">>,[]},from_json}]
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:637 (<0.15347.5>) run: from_json
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:716 (<0.15347.5>) routing v2_resource.execute.put.user_auth matches *.execute.put.user_auth
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|crossbar_util:887 (<0.15347.5>) created new local auth token 695152675eb89a5d00ddc464a6ab832c
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|wh_services:180 (<0.15347.5>) loaded account service doc SUBACCT
Aug  8 16:34:19 kz 2600hz[1600]: |00000000000|wh_amqp_channel:154 (<0.405.0>) published to configuration(amqp://guest:guest@kz:5672) exchange (routing key doc_created.token_auth.undefined.695152675eb89a5d00ddc464a6ab832c) via <0.660.0>
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|wh_service_plan:28 (<0.15347.5>) found service plan SUBACCOUNT/Plan_Main
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_apps_util:130 (<0.15347.5>) loading default apps from master account : account%xxx
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_apps_util:124 (<0.15347.5>) not filtering accounts
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_apps_util:124 (<0.15347.5>) not filtering numbers
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_apps_util:124 (<0.15347.5>) not filtering pbxs
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_apps_util:124 (<0.15347.5>) not filtering voip
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|cb_apps_util:124 (<0.15347.5>) not filtering webhooks
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:662 (<0.15347.5>) unable to find function clause for cb_apps_util:find_enabled_apps({[{<<"webhooks">>,#012   {[{<<"rate">>,0},#012     {<<"cascade">>,true},#012     {<<"activation_charge">>,0},#012     {<<"account_db">>,<<"MASTER">>},#012     {<<"app_id">>,<<"App_webhooks">>},#012     {<<"as">>,<<"webhooks">>},#012     {<<"name">>,<<"webhooks">>},#012     {<<"enabled">>,true}]}},#012  {<<"voip">>,#012   {[{<<"rate">>,1},#012     {<<"cascade">>,true},#012     {<<"activation_charge">>,1},#012     {<<"account_db">>,<<"MASTER">>},#012     {<<"app_id">>,<<"App_voip">>},#012     {<<"as">>,<<"voip">>},#012     {<<"name">>,<<"Smart PBX">>},#012     {<<"enabled">>,true}]}},#012  {<<"pbxs">>,#012   {[{<<"rate">>,0},#012     {<<"cascade">>,true},#012     {<<"activation_charge">>,0},#012     {<<"account_db">>,<<"018...) in src/cb_apps_util.erl:172
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:668 (<0.15347.5>) as part of cb_user_auth:put/1
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {crossbar_util,load_apps,2,[{file,"src/crossbar_util.erl"},{line,657}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {crossbar_util,populate_resp,3,[{file,"src/crossbar_util.erl"},{line,641}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {crossbar_util,create_auth_token,3,[{file,"src/crossbar_util.erl"},{line,888}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {kazoo_bindings,fold_bind_results,5,[{file,"src/kazoo_bindings.erl"},{line,591}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {lists,foldl,3,[{file,"lists.erl"},{line,1197}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {kazoo_bindings,fold_processor,3,[{file,"src/kazoo_bindings.erl"},{line,709}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|kazoo_bindings:669 (<0.15347.5>) st: {api_util,execute_request,5,[{file,"src/api_util.erl"},{line,975}]}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_util:1063 (<0.15347.5>) push response content: {"page_size":1,"data":[{"id":"7913b8488bf11d9b2ce39c3e6a94a92d","key":"2c846f7fb1c90c3ba56bcccf5609beb1","value":{"owner_id":"7913b8488bf11d9b2ce39c3e6a94a92d","account_id":"SUBACCOUNT"}}],"revision":"automatic","request_id":"f1e4864c08f647d92912ef4d55b744ea","status":"success","auth_token":"undefined"}
Aug  8 16:34:19 kz 2600hz[1600]: |f1e4864c08f647d92912ef4d55b744ea|api_resource:149 (<0.15347.5>) PUT request fulfilled in 979 ms
Aug  8 16:34:19 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15375.5>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"user_auth">>,<<"PUT">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:19 kz 2600hz[1600]: |f50281e2ec24e385a14625bf90ae180d|crossbar:38 (<0.15344.5>) routing to version 2
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:105 (<0.15344.5>) OPTIONS: /v2/accounts/undefined/users/undefined?_=1439051609891 from IP
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:160 (<0.15344.5>) run: known_methods
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:180 (<0.15344.5>) run: allowed_methods
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_util:140 (<0.15344.5>) query string: <<"{\"_\":\"1439051609891\"}">>
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_util:156 (<0.15344.5>) undefined content type when getting req data, assuming application/json
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|kazoo_bindings:686 (<0.15344.5>) exact match for v2_resource.allowed_methods.users
Aug  8 16:34:19 kz 2600hz[1600]: |undefined|crossbar:38 (<0.15377.5>) routing to version 2
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:105 (<0.15377.5>) OPTIONS: /v2/accounts/undefined?_=1439051609890 from ip
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:160 (<0.15377.5>) run: known_methods
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:180 (<0.15377.5>) run: allowed_methods
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_util:140 (<0.15377.5>) query string: <<"{\"_\":\"1439051609890\"}">>
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_util:156 (<0.15377.5>) undefined content type when getting req data, assuming application/json
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|kazoo_bindings:695 (<0.15377.5>) matched [<<"accounts">>,<<"allowed_methods">>,<<"*">>] to [<<"accounts">>,<<"allowed_methods">>,<<"v2_resource">>]
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:222 (<0.15377.5>) adding cors headers
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:234 (<0.15377.5>) allowing OPTIONS request for CORS preflight
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_util:744 (<0.15377.5>) options requests are permitted by default
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:340 (<0.15377.5>) is CORS request
Aug  8 16:34:19 kz 2600hz[1600]: |8fbf057bfd46de6450417e90ff9332fb|api_resource:144 (<0.15377.5>) OPTIONS request fulfilled in 0 ms
Aug  8 16:34:19 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15378.5>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"accounts">>,<<"OPTIONS">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:222 (<0.15344.5>) adding cors headers
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:234 (<0.15344.5>) allowing OPTIONS request for CORS preflight
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_util:744 (<0.15344.5>) options requests are permitted by default
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:340 (<0.15344.5>) is CORS request
Aug  8 16:34:19 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|api_resource:144 (<0.15344.5>) OPTIONS request fulfilled in 27 ms
Aug  8 16:34:19 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15379.5>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"users">>,<<"OPTIONS">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:19 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15379.5>) matched [<<"users">>,<<"*">>,<<"finish_request">>,<<"v2_resource">>] to [<<"users">>,<<"OPTIONS">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:20 kz 2600hz[1600]: |dad5e06de1ba900f6c4c69011e1d9ab3|crossbar:38 (<0.15344.5>) routing to version 2
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_resource:105 (<0.15344.5>) GET: /v2/accounts/undefined/users/undefined?_=1439051609891 from ip
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_resource:160 (<0.15344.5>) run: known_methods
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_resource:180 (<0.15344.5>) run: allowed_methods
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:140 (<0.15344.5>) query string: <<"{\"_\":\"1439051609891\"}">>
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:176 (<0.15344.5>) application/json content type when getting req data
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|kazoo_bindings:686 (<0.15344.5>) exact match for v2_resource.allowed_methods.users
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_resource:222 (<0.15344.5>) adding cors headers
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:1149 (<0.15344.5>) halting execution here
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:1106 (<0.15344.5>) generating error 503 datastore fatal error response
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:1152 (<0.15344.5>) setting resp body: {"data":{},"error":"503","message":"datastore fatal error","status":"error","request_id":"cbd9e5cc24e7e111f51e8338630cfb7f","auth_token":""}
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:1156 (<0.15344.5>) ensured CORS headers are on the response
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_util:1158 (<0.15344.5>) setting status code: 503
Aug  8 16:34:20 kz 2600hz[1600]: |cbd9e5cc24e7e111f51e8338630cfb7f|api_resource:149 (<0.15344.5>) GET request fulfilled in 26 ms
Aug  8 16:34:20 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15382.5>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"users">>,<<"GET">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:20 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15382.5>) matched [<<"users">>,<<"*">>,<<"finish_request">>,<<"v2_resource">>] to [<<"users">>,<<"GET">>,<<"finish_request">>,<<"v2_resource">>]
Aug  8 16:34:20 kz 2600hz[1600]: |undefined|crossbar:38 (<0.15381.5>) routing to version 2
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_resource:105 (<0.15381.5>) GET: /v2/accounts/undefined?_=1439051609890 from ip
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_resource:160 (<0.15381.5>) run: known_methods
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_resource:180 (<0.15381.5>) run: allowed_methods
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:140 (<0.15381.5>) query string: <<"{\"_\":\"1439051609890\"}">>
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:176 (<0.15381.5>) application/json content type when getting req data
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|kazoo_bindings:695 (<0.15381.5>) matched [<<"accounts">>,<<"allowed_methods">>,<<"*">>] to [<<"accounts">>,<<"allowed_methods">>,<<"v2_resource">>]
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_resource:222 (<0.15381.5>) adding cors headers
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:1149 (<0.15381.5>) halting execution here
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:1106 (<0.15381.5>) generating error 503 datastore fatal error response
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:1152 (<0.15381.5>) setting resp body: {"data":{},"error":"503","message":"datastore fatal error","status":"error","request_id":"a8073a6f46809536fc3964a5d7cd05cd","auth_token":""}
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:1156 (<0.15381.5>) ensured CORS headers are on the response
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_util:1158 (<0.15381.5>) setting status code: 503
Aug  8 16:34:20 kz 2600hz[1600]: |a8073a6f46809536fc3964a5d7cd05cd|api_resource:149 (<0.15381.5>) GET request fulfilled in 1 ms
Aug  8 16:34:20 kz 2600hz[1600]: |undefined|kazoo_bindings:695 (<0.15383.5>) matched [<<"*">>,<<"*">>,<<"finish_request">>,<<"*">>] to [<<"accounts">>,<<"GET">>,<<"finish_request">>,<<"v2_resource">>]

James Aimonetti

unread,
Aug 8, 2015, 11:59:32 PM8/8/15
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Please file a ticket in JIRA with, at least:

1. The service plan(s) involved
2. The services doc of the account involved
3. The webhooks app doc from the master account (look in the
apps_store/crossbar_listing view), as this appears to be the breaking ap
p
4. The debug log from below.
5. Of course, the Kazoo version you're experiencing the issue on

You could try removing all the apps from the master account database
and reimport them (perhaps you installed them manually and something
is wrong?). See if that addresses the issue.

James
- --
James Aimonetti
Lead Systems Architect / Impressionable Scallywag
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJVxtAWAAoJENTKa+JPXCVgqy8IALIkNP5ehmBCZnDOEH7o+I+D
tPw8zce4USIyMy+VZXzd1EW+Jchzhpy/nNfPfouQQUuT0lQc33eI12k4e2rcy3CP
7F2D4Xy5IbL6DajWYOPWDzu8zbZQWymTFBiBwUUAgGM5bqTl3CdzJzMIiHxKfJAi
QzthgzYDXFkfXKmJ1dNbUdfTuONjz3uNppK1NVxSviH8mpF5zpvwLZ8nGeH9MHoS
7FVywOv8nXqd2S4HYjA5Nivwo565nuVlcwk3fgoJONQoHL8qq4bzyQ0u1a3ToTtH
P9maKmPQmmsXRXEYk1QVGPJ2d9vpu8QgMkDyvThPE5+jh16NhHpMsQtSdwb7azM=
=jwoK
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages