How do upgrades work?

Status
Not open for further replies.

kfeen

New Member
May 20, 2020
26
0
1
23
So after installing FusionPBX the system was working great. However, it seems that after every time I "Upgrade" FPBX through Advanced > Upgrade something breaks. After the last upgrade my voicemails stopped working and now after upgrading it again none of my extensions will ring. Am I "upgrading" FPBX incorrectly? Is Advanced > Upgrade pulling from an unstable branch? I'm just very confused / frustrated.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
I am sorry you are feeling such pain with FusonPBX upgrades, it should not be this way.

Many people are using the Master branch at present as recommended by Mark sometime last year. Master is naturally unstable which is why we are all eagerly awaiting a new stable branch, I believe it will be 4.6 when it arrives.

The FusionPBX membership provides a good deal of information on upgrading and details any additional actions that may be required when upgrading between specific versions. In my opinion, membership has become almost essential these days for upgrading.

I do all of my upgrades at the command line, not in the GUI. I'm not saying this is the correct way to upgrade, but this is what I do:

Backup the database:
Code:
export PGPASSWORD="xxxxxxxxxxxxxxx"
pg_dump --verbose -Fc --host=127.0.0.1 --port=5432 -U fusionpbx fusionpbx --schema=public -f /var/backups/fusionpbx/postgresql/fusionpbx_pgsql_20200726.sql


Backup your exiting installation:
Code:
mv /var/www/fusionpbx /var/www/fusionpbx_20200726


Copy in a new version:
Code:
cd /var/www
git clone https://github.com/fusionpbx/fusionpbx.git
chown -R www-data:www-data /var/www/fusionpbx


Now run the upgrade script, run it at least twice, I tend to re-run it until it reports no more changes:
Code:
php /var/www/fusionpbx/core/upgrade/upgrade.php

I hope that helps a little.
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
177
43
49
Your voicemail problem I just responded to and it looks like things disappeared but it was just a permission was added in order to not have certain functionality hard coded to admin and super admin groups. If you want easiest upgrade then you need to default menus and permissions. If you want to deal with permissions yourself you need to realize if something disappears that you may need to add a permission.

Problems with upgrades are mostly to do with keeping informed on what is changing or at least knowing basics like permissions.
 

kfeen

New Member
May 20, 2020
26
0
1
23
I am sorry you are feeling such pain with FusonPBX upgrades, it should not be this way.

Many people are using the Master branch at present as recommended by Mark sometime last year. Master is naturally unstable which is why we are all eagerly awaiting a new stable branch, I believe it will be 4.6 when it arrives.

The FusionPBX membership provides a good deal of information on upgrading and details any additional actions that may be required when upgrading between specific versions. In my opinion, membership has become almost essential these days for upgrading.

I do all of my upgrades at the command line, not in the GUI. I'm not saying this is the correct way to upgrade, but this is what I do:

Backup the database:
Code:
export PGPASSWORD="xxxxxxxxxxxxxxx"
pg_dump --verbose -Fc --host=127.0.0.1 --port=5432 -U fusionpbx fusionpbx --schema=public -f /var/backups/fusionpbx/postgresql/fusionpbx_pgsql_20200726.sql


Backup your exiting installation:
Code:
mv /var/www/fusionpbx /var/www/fusionpbx_20200726


Copy in a new version:
Code:
cd /var/www
git clone https://github.com/fusionpbx/fusionpbx.git
chown -R www-data:www-data /var/www/fusionpbx


Now run the upgrade script, run it at least twice, I tend to re-run it until it reports no more changes:
Code:
php /var/www/fusionpbx/core/upgrade/upgrade.php

I hope that helps a little.
Thanks for the information. Do you have any information on when 4.6 may be coming out?
 
Status
Not open for further replies.