# VitalPBX 4 HA - SONATA SUITE Issues

**URL:** <https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550>\
**Category:** Reporting an Issue\
**Created:** [March 25, 2023, 3:57pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550 "2023-03-25T15:57:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [March 25, 2023, 3:57pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/1 "2023-03-25T15:57:23Z")

</div>

We have install VitalPBX 4 HA (running on Hyper-V) – No problem, so far everything is working. We try the Bascul command and no problem as well.

We proceed to install the add-ons SONATA Recording, SONATA Stats, SONATA Switchboard on both vm. When I try to configure SONATA Recording we setup the username and password (no problem) but when we try login it says that “user/password incorrect”

 ![Recording](https://forums.vitalpbx.org/uploads/default/original/2X/d/dccf4899900f900f5d32da8a9bf2ac69130d7146.png)

And for the SONATA Stats, we get the initial setup screen to configure the database, we click next and we get the failed to establish connection.

 ![Stats](https://forums.vitalpbx.org/uploads/default/original/2X/d/d7129d28b0e2157d2707c7c87fbaa9896642eb48.png)

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [March 25, 2023, 6:30pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/2 "2023-03-25T18:30:57Z")

</div>

Here a log from the sonata stats  
[stats-root-2023-03-25.txt](https://forums.vitalpbx.org/uploads/short-url/ezOjcXtFQud87m8rhG1xCETParF.txt) (1.5 MB)

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [March 25, 2023, 6:43pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/3 "2023-03-25T18:43:47Z")

</div>

I think I have solve the problem the SONATA Recording. In the initial setup, i though that name you setup it was the user, i try with admin and the password I setup and no problem.

But still have the problem with the SONATA Stats

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [March 28, 2023, 2:54pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/4 "2023-03-28T14:54:48Z")

</div>

Has anyone has seen this?

---

<div class="post-metadata">

**Author:** ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)\
**Post date:** [March 28, 2023, 4:45pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/5 "2023-03-28T16:45:15Z")

</div>

Hello Sir!

Are you getting the same issue on both servers?

Regards!!

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [March 28, 2023, 5:50pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/6 "2023-03-28T17:50:41Z")

</div>

Hi,

Yes, we are getting the same issue on both server. We try on our test environment and also on the client environment.

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [March 31, 2023, 4:04am UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/7 "2023-03-31T04:04:41Z")

</div>

Any comments? Anything that I can do ?

---

<div class="post-metadata">

**Author:** ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)\
**Post date:** [March 31, 2023, 4:36am UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/8 "2023-03-31T04:36:54Z")

</div>

Unfortunately, we haven’t thoroughly tested the add-ons on the HA environment.

IMHO, I do not recommend implementing HA until we get something more reliable.

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [April 26, 2023, 2:47am UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/9 "2023-04-26T02:47:30Z")

</div>

Just wondering if there any updates regarding the SONATA Stats add-on on an HA system?

---

<div class="post-metadata">

**Author:** ![admin](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/admin/32/3_2.png) [@admin](https://forums.vitalpbx.org/u/admin)\
**Post date:** [April 26, 2023, 2:36pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/10 "2023-04-26T14:36:32Z")

</div>

Did you install Sonata Stats on both Servers?  
It is always recommended to install everything first on both Servers separately and lastly run the Script for the HA.

There is a command to eliminate the HA without affecting the information of the Servers.  
./vpbxha.sh destroy  
Install the Add-ons on both servers and then run the Script again on Server 1  
./vpbxha.sh

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [April 26, 2023, 8:18pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/11 "2023-04-26T20:18:11Z")

</div>

Like you mention I did install the Sonata Stats, Recording, Swichboard before running the script, but only stats gave the problem.

I did what you recommendedm, but I saw something interesting

- I ran the ./vpbxha.sh destroy I did complete the process but when I check server 2, it has the floating ip and reports as the master.
- at this point I al try to uninstall stats add-on from both server and then install it on both server again.
- I ran the ./vpbxha.sh rebuild on server 1 at the end I gave me an error, so I ran it for a second time adn this time works. Server-1 is master and server-2 is slave. Everything seems to be running normal.

Sonata-stats remains with the same problem, but also the issue when I ran the ./vpbxha.sh destroy

---

<div class="post-metadata">

**Author:** ![admin](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/admin/32/3_2.png) [@admin](https://forums.vitalpbx.org/u/admin)\
**Post date:** [April 28, 2023, 12:27am UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/12 "2023-04-28T00:27:01Z")

</div>

We detected an Issue with access to mariadb, since it only allowed the server’s ip and not the localhost. This Issue was already corrected in the Script. However, if you want to correct it on your servers directly, we recommend editing the file:  
/etc/mysql/mariadb.conf.d/50-server.cnf and configure bin-addres as follows on both servers.  
bind-address = 0.0.0.0

After restart mariadb  
systemctl restart mariadb

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [April 28, 2023, 5:32am UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/13 "2023-04-28T05:32:46Z")

</div>

I have download the vpbxha.sh scripts again.

I ran ./vpbxha.sh destroy and it looks like it works just fine. I did procedure of unintalling sonata stats from both server and install it again.

 ![rebuild](https://forums.vitalpbx.org/uploads/default/original/2X/5/56ccab8900e3b3bd63bc7a32a55fb159a739292e.png)

I ran ./vpbxha.sh at the end it gave me communication error. It did not gave me before I download again the vpbxha.sh script. I also try ./vpbxha.sh rebuild but same result.

 ![rebuild 1](https://forums.vitalpbx.org/uploads/default/original/2X/3/36bec9df7499a6069b068e73857d62c2c1e706a4.png)

---

<div class="post-metadata">

**Author:** ![admin](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/admin/32/3_2.png) [@admin](https://forums.vitalpbx.org/u/admin)\
**Post date:** [April 28, 2023, 11:07am UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/14 "2023-04-28T11:07:42Z")

</div>

When there are authentication problems, it is because the firewall took some inappropriate temporary configuration. We recommend to reboot from both servers and try again.

---

<div class="post-metadata">

**Author:** ![mloaiza](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@mloaiza](https://forums.vitalpbx.org/u/mloaiza)\
**Post date:** [April 29, 2023, 9:33pm UTC](https://forums.vitalpbx.org/t/vitalpbx-4-ha-sonata-suite-issues/2550/15 "2023-04-29T21:33:01Z")

</div>

Thanks. After rebooting the server the script ran without any problema. And the sonata stats is working now, after installing the add-on before running the script.
