Updating to latest version

Status
Not open for further replies.

alexko

Free User
Joined
Jul 14, 2017
Messages
24
Reaction score
2
I have two linux installations.

Both are running the same version 3cx version 15.5.634.2.
Their maintance has been renewed but in the dashboard it shows up as expired.
Also by going at the Settings->License I get this message

3CX failed to establish a TCP connection to activation.3cx.com.
Ensure that the local or border firewalls are configured to allow outbound traffic to activation.3cx.com

From what I have found in the forums I must upgrade the installation using this procedure

https://www.3cx.com/blog/news/pbx-upgrade-update-6/

For the linux version it just mentions these two commands

apt-get update
apt-get upgrade

The installation was done by using the debian netinstall iso and not some sort of distro or image officially distributed from 3cx.

Running uname -r this is the kernel version that pops up

3.16.0-4-amd64

Also checking the apt sources I get this

root@3cx:~# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 8.9.0 _Jessie_ - Official amd64 NETINST Binary-1 20170723-11:47]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.9.0 _Jessie_ - Official amd64 NETINST Binary-1 20170723-11:47]/ jessie main

deb http://ftp.gr.debian.org/debian/ jessie main
deb-src http://ftp.gr.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.gr.debian.org/debian/ jessie-updates main
deb-src http://ftp.gr.debian.org/debian/ jessie-updates main

Do I have to check anything else?
Will simply updating the distro, update also the 3cx although no official 3cx repos are present in my source list?
Do I need to add them and then run the update?
Will also update the debian version from 8.9.0 to 9.x?

The specific version of debian was chosen because the new Debian 9.0 version that was just released back then didn't support the nvme drive and the ethernet port that are on the two machines.
I don't want to issue the commands and then brick the two systems.
 
Hello @alexko

The only thing you need to do is run the 2 commands. Nothing else should be required.
Make sure you have a current backup of the installation and then go ahead with the upgrade.
 
Thank you Yannis for your response.
Is there a way to download version 15.5.634.2 (or any old 15.5 version) to install it on a test vm to try out the procedure?
 
Even if you could download a previous version you would not be able to complete the installation as the PBX would not be able to contact the activation server and authenticate the licence. So i am afraid there is no way to do this.
 
Hehe you are right, dumb question! :p
 
Heh I found from the command history that I have added the 3cx repos.

16 wget -O- http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add -
17 echo "deb http://downloads.3cx.com/downloads/3cxpbx/ /" | tee /etc/apt/sources.list.d/3cxpbx.list

Checking the mentioned directory I see the file that I have created but also a second one mentioned as testing

root@3cx-ath:~# cat /etc/apt/sources.list.d/3cxpbx.list
deb http://downloads.3cx.com/downloads/debian jessie main
root@3cx-ath:~# cat /etc/apt/sources.list.d/3cxpbx-testing.list
deb http://downloads.3cx.com/downloads/debian jessie-testing main

Should I remove the testing list and then upgrade?

Also do the mentioned urls work?

From the download page I see that the download path has changed

https://downloads-global.3cx.com/downloads/debian9iso/debian-amd64-netinst-3cx.iso

Now has a flag in the url path.

---2nd edit---

Now I see that the new commands include the new url
https://www.3cx.com/docs/manual/installing-debian-linux-pbx/

wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | apt-key add -

echo "deb http://downloads-global.3cx.com/downloads/debian stretch main" | tee /etc/apt/sources.list.d/3cxpbx.list

apt-get update

apt-get install 3cxpbx

apt-get install net-tools

Using the update commands in my installation will request for a jessie directory from the 3cx repo.
Do 3cx provide the update for jessie installations or only stretch?

---3rd edit---

Ok I made a new install, I issued these commands

wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | apt-key add -

echo "deb http://downloads-global.3cx.com/downloads/debian jessie main" | tee /etc/apt/sources.list.d/3cxpbx.list

apt-get update

apt-get install 3cxpbx

and for some reason everything worked fine but now I have an older version installed.
From the dashboard I see this version 15.5.15502.6.

Is this version the latest?
 
Last edited:
Ok so please verify me this

I must change the url in my apt sources and then hit the commands. I didn't try with the old url.

Also should I remove the test source?

Finally now if I check my test installation it says that there is an OS upgrade to Debian 9.
If I want to update keeping the same linux version do I have to run the same commands or I can upgrade through the web interface also?
 
Ok so please verify me this

I must change the url in my apt sources and then hit the commands. I didn't try with the old url.

Also should I remove the test source?

Finally now if I check my test installation it says that there is an OS upgrade to Debian 9.
If I want to update keeping the same linux version do I have to run the same commands or I can upgrade through the web interface also?

I believe the web interface OS upgrade option is only for installs done using a 3CX ISO.
 
Well no it is not, my installs are based on the netinstall iso of debian 8.9.0.
3cx detects the system version and offers you to upgrade the distro but this without considering any custom changes that are in place in each installation.
This is something that I would like to avoid.
 
You should not have to do any of this. Since the PBX was installed in the system the sources should already be there. The only thing you need to do is to run the 2 commands. There is no need to remove the testing source as that is present to all installations.

Finally now if I check my test installation it says that there is an OS upgrade to Debian 9.
If I want to update keeping the same linux version do I have to run the same commands or I can upgrade through the web interface also?
SP5 was designed and built on Debian 9 so it is good to upgrade your OS also. Since you did not use the 3CX ISO however do not attempt it through the management console. You can upgrade to SP5 however even if you are on Debian 8.
The management console will detect that you are running Debian 8 even if you did not use the 3CX ISO but i am pretty sure it has a warning that you should not do it if you did not install the 3CX ISO.
Instead you can upgrade using this guide:
https://www.3cx.com/blog/docs/upgrading-debian/
 
Well no it is not, my installs are based on the netinstall iso of debian 8.9.0.
3cx detects the system version and offers you to upgrade the distro but this without considering any custom changes that are in place in each installation.
This is something that I would like to avoid.

It may well offer the upgrade but it won't work.
 
Aha good thought I will try it and see what happens.
 
Status
Not open for further replies.

Forum statistics

Threads
111,912
Messages
589,705
Members
164,780
Latest member
JoeMiller