Migrated to v4, now appstore is frozen

76 views
Skip to first unread message

Anthony

unread,
Jun 28, 2017, 7:20:45 PM6/28/17
to 2600hz-dev
So I have built out a new v4 cluster and then migrated the v3 database via clone and ran the two commands after the clone that Darren mentioned in a past post. Everything seems to be ok except for the app store.

When I log in, the appstore is opened due to no apps be turned "on" on the account. When I select an app and flip the switch to on, kazoo just sits there spinning. It never turns on the app.

Am I missing something post migration? 


þGo Green. Please consider our Planet before printing your documents.P
-------------------------------------------
COMPANY CONFIDENTIAL: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please delete this message and notify the sender immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Opinions, conclusions and other information in this message that do not relate to the official business of the Company. or its subsidiaries shall be understood as neither given nor endorsed by it.
-------------------------------------------

Darren Schreiber

unread,
Jun 28, 2017, 7:21:17 PM6/28/17
to 2600h...@googlegroups.com

Did you run the init_apps command with a valid API? What’s in the browser’s console?

--
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.

Anthony

unread,
Jun 28, 2017, 7:31:24 PM6/28/17
to 2600hz-dev, dschr...@2600hz.com
Yes sir I did.

When I built the new v4 cluster, I created a super admin account and int the apps. Under that super account, the app store still works. It just doesn't work under any account that I moved over.

When I open console in Chrome, I get errors regarding whitelabel, logo, icon and braintree.


When I click on an app and switch to on and hit save, it just spins in the top right and nothing new in the console. 

Darren Schreiber

unread,
Jun 28, 2017, 7:31:57 PM6/28/17
to Anthony, 2600hz-dev

The Google Maps thing should be ignorable. There has to be something else. Error regarding Braintree MIGHT be relevant.

 

I’m not sure what else to look at, perhaps someone else on the list has ideas.

Anthony

unread,
Jun 28, 2017, 7:42:27 PM6/28/17
to 2600hz-dev, ant...@zellatech.com, dschr...@2600hz.com
Don't think it's braintree because the same error occurs with the orig super admin account for v4, but those apps work.

Darren Schreiber

unread,
Jun 28, 2017, 7:43:02 PM6/28/17
to Anthony, 2600hz-dev

Have you checked the Network tab as well for like 404s or similar errors? Past that I’m sort of out of ideas on what to check, can’t think of much that would make the UI just not show any apps at all unless they’re not initialized properly.

Anthony

unread,
Jun 28, 2017, 7:45:26 PM6/28/17
to 2600hz-dev, ant...@zellatech.com, dschr...@2600hz.com
I think I may be on to something.

So I looked at the account db for my migrated account. Under the app Account Manager, there is a api_url field and the value has the old api set. Should I update the value to new API and restart kazoo to see if it fixes that app? Or is there a way to run a sup command to remove all apps from an account and start fresh?

Darren Schreiber

unread,
Jun 28, 2017, 7:46:23 PM6/28/17
to Anthony, 2600hz-dev

Well the API import sup command should have  fixed that, can you show the complete output of that command?

Anthony

unread,
Jun 28, 2017, 7:52:33 PM6/28/17
to 2600hz-dev, ant...@zellatech.com, dschr...@2600hz.com
sup crossbar_maintenance init_apps /var/www/html/monster-ui/apps http://mypbxv4.domain:8000/v2
trying to init app from /var/www/html/monster-ui/apps/webhooks
 app webhooks already loaded in system
 not updating api_url, it is unchanged
   saved WebHooks_app.png to 7ced6d8c28f42051384d78715e0f1798
   saved webhooks1.png to 7ced6d8c28f42051384d78715e0f1798
   saved webhooks2.png to 7ced6d8c28f42051384d78715e0f1798
trying to init app from /var/www/html/monster-ui/apps/callflows
 app callflows already loaded in system
 not updating api_url, it is unchanged
   saved Callflows_app.png to cbc001229228328ce207dfcc99388776
   saved callflows_1.png to cbc001229228328ce207dfcc99388776
   saved callflows_2.png to cbc001229228328ce207dfcc99388776
   saved callflows_3.png to cbc001229228328ce207dfcc99388776
trying to init app from /var/www/html/monster-ui/apps/voip
 app voip already loaded in system
 not updating api_url, it is unchanged
   saved SmartPBX_app.png to b04d837a317a2ddcd72127d9da03948d
   saved smartpbx1.png to b04d837a317a2ddcd72127d9da03948d
   saved smartpbx2.png to b04d837a317a2ddcd72127d9da03948d
   saved smartpbx3.png to b04d837a317a2ddcd72127d9da03948d
   saved smartpbx4.png to b04d837a317a2ddcd72127d9da03948d
   saved smartpbx5.png to b04d837a317a2ddcd72127d9da03948d
trying to init app from /var/www/html/monster-ui/apps/fax
 app fax already loaded in system
 not updating api_url, it is unchanged
   saved Fax_app.png to 44f0501feb0186b311ee62e99c4203ae
trying to init app from /var/www/html/monster-ui/apps/accounts
 app accounts already loaded in system
 not updating api_url, it is unchanged
   saved Accounts_app.png to de3a3ad844d88b5ed6088519fc3805ec
   saved accounts_1.png to de3a3ad844d88b5ed6088519fc3805ec
   saved accounts_2.png to de3a3ad844d88b5ed6088519fc3805ec
   saved accounts_3.png to de3a3ad844d88b5ed6088519fc3805ec
trying to init app from /var/www/html/monster-ui/apps/numbers
 app numbers already loaded in system
 not updating api_url, it is unchanged
   saved NumberManager_app.png to f8c44c80f8039b75ba7801c6d7e758e9
  failed to find screenshots in f8c44c80f8039b75ba7801c6d7e758e9
trying to init app from /var/www/html/monster-ui/apps/pbxs
 app pbxs already loaded in system
 not updating api_url, it is unchanged
   saved PBXconnector_app.png to d0cc6e45c403aa8ce3b48b12e7071b6b
   saved pbxconnector1.png to d0cc6e45c403aa8ce3b48b12e7071b6b
   saved pbxconnector2.png to d0cc6e45c403aa8ce3b48b12e7071b6b
trying to init app from /var/www/html/monster-ui/apps/voicemails
 app voicemails already loaded in system
 not updating api_url, it is unchanged
   saved Voicemail_app.png to 8b9f5dc136cf9ef756d56afbd2a48907
ok

Darren Schreiber

unread,
Jun 28, 2017, 7:59:42 PM6/28/17
to 2600hz-dev
 not updating api_url, it is unchanged

Seems like it's using the right api already?



Sent from my 2600Hz Galaxy S7.

Amit Nir

unread,
Jun 28, 2017, 8:08:54 PM6/28/17
to 2600h...@googlegroups.com
Perhaps your DNS cache is resolving mypbxv4.domain to the old IP?

____________________
Amit Nir, MBA
www.ITLevel3.com

Anthony

unread,
Jun 28, 2017, 8:08:54 PM6/28/17
to 2600hz-dev, dschr...@2600hz.com
It has the correct one under the orig v4 account, but all of the v3 accounts has the old api. Even after updating it manually on a v3 account, it still doesn't work. I'm going to blow up the database and start over. I'll keep you posted! 

Anthony J. Manzella III

unread,
Jun 28, 2017, 8:11:32 PM6/28/17
to 2600h...@googlegroups.com
I wish that was the case, but no, it's resolving correctly. 
You received this message because you are subscribed to a topic in the Google Groups "2600hz-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/2600hz-dev/FafJhIWxRlo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 2600hz-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Anthony

unread,
Jun 28, 2017, 9:09:19 PM6/28/17
to 2600hz-dev, dschr...@2600hz.com
Darren,

So I have it working. Maybe we can document this somewhere regarding migrating?

This was the only way I was able to make it work.

Setup the v4 cluster, but do NOT create any accounts and do NOT int apps.

Start Kazoo and let it create the 20+ databases and import the audio.

Once that is complete, clone your database from v3 to v4.

Once completed, run sup kapps_maintenance migrate_to_4_0 and sup kazoo_number_manager_maintenance migrate 

After that, int your apps.


I was then able to login with my account and all worked fine with the app store.

Not sure if this happened with anyone else, but this was my problem :)

Now time to test v4 :) :)

Anthony

unread,
Jun 29, 2017, 4:12:25 PM6/29/17
to 2600hz-dev, dschr...@2600hz.com
Darren,

One issue so far. On one of my kazoo/kamailio servers, the kamailio service won't start... fails due to

● kazoo-kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server Configured for Kazoo
   Loaded: loaded (/usr/lib/systemd/system/kazoo-kamailio.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2017-06-29 01:56:58 UTC; 14s ago
  Process: 5245 ExecStop=/usr/sbin/kazoo-kamailio stop (code=exited, status=127)
  Process: 5231 ExecStart=/usr/sbin/kazoo-kamailio start (code=exited, status=255)
  Process: 5221 ExecStartPre=/usr/sbin/kazoo-kamailio prepare (code=exited, status=0/SUCCESS)
 Main PID: 5231 (code=exited, status=255)

Jun 29 01:56:58  kamailio[5231]: INFO: <core> [udp_server.c:150]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
Jun 29 01:56:58  kamailio[5231]: INFO: <core> [udp_server.c:200]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Jun 29 01:56:58  kamailio[5231]: ERROR: <core> [tcp_main.c:2798]: tcp_init(): bind(2a, 0x7efd84b9197c, 16) on IP:5060 : Address already in use
Jun 29 01:56:58  kamailio[5231]: ERROR: nat_traversal [nat_traversal.c:1635]: save_keepalive_state(): failed to open keepalive state file for writing: Permission denied
Jun 29 01:56:58  kamailio[5231]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Jun 29 01:56:58  systemd[1]: kazoo-kamailio.service: main process exited, code=exited, status=255/n/a
Jun 29 01:56:58  kazoo-kamailio[5245]: /usr/sbin/kazoo-kamailio: line 59: killall: command not found
Jun 29 01:56:58  systemd[1]: kazoo-kamailio.service: control process exited, code=exited status=127
Jun 29 01:56:58 systemd[1]: Unit kazoo-kamailio.service entered failed state.
Jun 29 01:56:58  systemd[1]: kazoo-kamailio.service failed.

Luis Azedo

unread,
Jun 29, 2017, 4:30:24 PM6/29/17
to 2600h...@googlegroups.com, dschreiber
ERROR: <core> [tcp_main.c:2798]: tcp_init(): bind(2a, 0x7efd84b9197c, 16) on IP:5060 : Address already in use
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+unsubscribe@googlegroups.com.

Anthony

unread,
Jun 30, 2017, 4:48:46 PM6/30/17
to 2600hz-dev, dschr...@2600hz.com
Luis,

Yes, but not sure how/why the address is already in use. 

Te Matau

unread,
Jun 30, 2017, 9:23:52 PM6/30/17
to 2600hz-dev
netstat -tulnp
Reply all
Reply to author
Forward
0 new messages