"Official" upgrade instructions ?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

"Official" upgrade instructions ?

Postby xoy74 » Tue Jan 21, 2025 4:34 pm

I have a silly request, which I haven't found an answer for. I am looking for some kind of "official" upgrade instructions.
Currently I have a setup with one DB server, one web server and 3 Asterisk servers. All were installed in 2022 from the ViciBox_v10.x86_64-10.0.1-md.iso. The Admin page shows
VERSION: 2.14-853a
BUILD: 220328-1420
I am not asking for handholding, just for any pointers to the proper documentation.
Thank you !
xoy74
 
Posts: 14
Joined: Thu Oct 04, 2018 11:26 am

Re: "Official" upgrade instructions ?

Postby carpenox » Tue Jan 21, 2025 6:18 pm

for a simple SVN update you can use these instructions: https://dialer.one/index.php/how-to-upd ... ubversion/

If you would like to upgrade the server OS's from 15.3 to 15.6, thats antoher story,
Alma Linux 9.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2584
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: "Official" upgrade instructions ?

Postby williamconley » Tue Jan 21, 2025 7:45 pm

BEFORE you start: Full backup of the database, the web files, and the configuration files. Preferably using the /usr/share/astguiclient/ADMIN_backup.pl script with the ftp option to push the backup off the server (just in case).

1) Note for reference your DB_schema and SVN version from admin->system settings and /etc/astguiclient.conf (these should agree with each other).

https://xx.xx.xx.xx/vicidial/admin.php? ... 1111111111

SVN Version: XXXX
DB Schema Version: XXXX


Code: Select all
grep ExpectedDBSchema /etc/astguiclient.conf -n


ExpectedDBSchema => XXXX


2) change directory into your svn folder of the original install and check the svn revision present

Code: Select all
cd /usr/src/astguiclient/trunk; svn info


Code: Select all
Revision: XXXX


* Should match previous. If it doesn't consider stopping if you're not sure what you're doing.

3) Upgrade your server's repository to the latest SVN revision

Code: Select all
cd /usr/src/astguiclient/trunk; svn up


4) Familiarize yourself with the upgrade document!

Code: Select all
cd /usr/src/astguiclient/trunk; cat UPGRADE


5) Advice:

Advice A: in the .sql files you are expected to upgrade with: Delete all the lines that have already been executed due to your present db schema.

EG: If you are at ExpectedDBSchema => 1662, delete all lines previous to this one in /usr/src/astguiclient/trunk/extras/upgrade_2.14.sql:

Code: Select all
UPDATE system_settings SET db_schema_version='1662',db_schema_update_date=NOW() where db_schema_version < 1662;


Perhaps copy it to upgrade_2.14X.sql before making changes.

Advice B: Record any manual changes to any .conf files you have made directly, such as "/etc/asterisk/sip.conf" => "externip = ????". Perhaps by saving a copy of the files themselves for reference.

Code: Select all
perl install.pl --help


I highly recommend you invoke the --copy_sample_conf_files option. Sometimes there are changes that make this a necessity, sometimes there are not. If you've made "unrecorded/unremembered" changes to any .conf files, this is a good time to test everything and find out ... so you can record those changes.

6) The UPGRADE document is the actual instructions, of course.

But running "perl install.pl" in the folder "/usr/src/astguiclient/trunk/" and answering the questions is how the upgrade works.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20415
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: "Official" upgrade instructions ?

Postby xoy74 » Thu Jan 23, 2025 2:35 pm

Thank you so much for the detailed instructions and suggestions.
I managed to do the upgrade but I must have done something wrong when I followed the advise #5 (skipping the schema updates lower than my current schema) and all the campaign settings showed blank after the upgrade. Thankfully I was able to restore the database and apply the unaltered db update script and everything looked OK after.
xoy74
 
Posts: 14
Joined: Thu Oct 04, 2018 11:26 am

Re: "Official" upgrade instructions ?

Postby williamconley » Thu Jan 23, 2025 3:50 pm

xoy74 wrote:Thank you so much for the detailed instructions and suggestions.
I managed to do the upgrade but I must have done something wrong when I followed the advise #5 (skipping the schema updates lower than my current schema) and all the campaign settings showed blank after the upgrade. Thankfully I was able to restore the database and apply the unaltered db update script and everything looked OK after.


Excellent postback. Odd, of course, as we've never experienced that ... but still good it worked out well for you and you solved it all on your own with the backup.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20415
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: "Official" upgrade instructions ?

Postby carpenox » Sun Jan 26, 2025 10:58 am

did you try my suggestion xoy?
Alma Linux 9.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2584
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: "Official" upgrade instructions ?

Postby xoy74 » Tue Jan 28, 2025 9:27 am

carpenox wrote:did you try my suggestion xoy?

Hi. I actually used a mix of instructions, so thank you both for replying. And I made my own document that I can reference in the future, because I will forget for sure :D .
xoy74
 
Posts: 14
Joined: Thu Oct 04, 2018 11:26 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 97 guests