Asterisk version change failed?

On FreePBX 10.13.66-1 I ran asterisk-version-switch and it failed, but the only error I find is when it attempts to retrieve the mirror list. The output at the console is below. Why did the upgrade fail?

[[email protected] ~]# cat /etc/schmooze/pbx-version
[[email protected] ~]# asterisk-version-switch
Each time you run this script we create a new log file at
/var/log/pbx/asterisk-switch-version which will include the date and time
and what version of Asterisk you had and what version you switched to
Pick the Asterisk Version you would like to change to.
Press 1 and the Enter key for Asterisk 11
Press 2 and the Enter key for Asterisk 13
Press 3 and the Enter key for Asterisk 14 (Currently in beta)
Press 9 and the Enter key to exit and not change your Asterisk Version

You picked asterisk13

Clearing yum cache
Loaded plugins: fastestmirror, kmod
Cleaning repos: base extras pbx schmooze-commercial updates
Cleaning up Everything
Cleaning up list of fastest mirrors

Switching to asterisk13

Loaded plugins: fastestmirror, kmod
Setting up Yum Shell

Setting up Remove Process
Determining fastest mirrors
Could not retrieve mirrorlist error was
14: PYCURL ERROR 22 - “The requested URL returned error: 502 Connection refused”
base | 2.0 kB 00:00
base/primary | 2.6 MB 00:00
base 6520/6520
extras | 1.3 kB 00:00
extras/primary | 15 kB 00:00
extras 38/38
pbx | 2.9 kB 00:00
pbx/primary_db | 2.2 MB 00:00

–> Running transaction check
—> Package asterisk11.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-bluetooth.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-core.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-mysql.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-ooh323.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-core.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-curl.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-dahdi.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-doc.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-flite.x86_64 0:11.25.2-1.shmz65.1.53 will be erased
—> Package asterisk11-flite-debuginfo.x86_64 0:11.25.2-1.shmz65.1.53 will be erased
—> Package asterisk11-odbc.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-res_digium_phone.x86_64 0:2.1.1-1.shmz65.1.36 will be erased
—> Package asterisk11-voicemail.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
–> Finished Dependency Resolution
Success resolving dependencies
–> Running transaction check
–> Finished Dependency Resolution

Package Arch Version Repository

asterisk11 x86_64 11.25.3-1.shmz65.1.123 @pbx1 0.0
asterisk11-addons x86_64 11.25.3-1.shmz65.1.123 @pbx1 0.0
asterisk11-addons-bluetooth x86_64 11.25.3-1.shmz65.1.123 @pbx1 97 k
asterisk11-addons-core x86_64 11.25.3-1.shmz65.1.123 @pbx1 77 k
asterisk11-addons-mysql x86_64 11.25.3-1.shmz65.1.123 @pbx1 119 k
asterisk11-addons-ooh323 x86_64 11.25.3-1.shmz65.1.123 @pbx1 1.9 M
asterisk11-core x86_64 11.25.3-1.shmz65.1.123 @pbx1 10 M
asterisk11-curl x86_64 11.25.3-1.shmz65.1.123 @pbx1 52 k
asterisk11-dahdi x86_64 11.25.3-1.shmz65.1.123 @pbx1 966 k
asterisk11-doc x86_64 11.25.3-1.shmz65.1.123 @pbx1 8.6 k
asterisk11-flite x86_64 11.25.2-1.shmz65.1.53 @pbx1 12 k
asterisk11-flite-debuginfo x86_64 11.25.2-1.shmz65.1.53 @pbx1 32 k
asterisk11-odbc x86_64 11.25.3-1.shmz65.1.123 @pbx1 208 k
asterisk11-res_digium_phone x86_64 2.1.1-1.shmz65.1.36 @pbx1 1.3 M
asterisk11-voicemail x86_64 11.25.3-1.shmz65.1.123 @pbx1 244 k

Transaction Summary

Remove 15 Package(s)

Installed size: 15 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : asterisk11-addons-11.25.3-1.shmz65.1.123.x86_64 1/15
Erasing : asterisk11-addons-mysql-11.25.3-1.shmz65.1.123.x86_64 2/15
Erasing : asterisk11-addons-core-11.25.3-1.shmz65.1.123.x86_64 3/15
Erasing : asterisk11-addons-bluetooth-11.25.3-1.shmz65.1.123.x86_6 4/15
Erasing : asterisk11-addons-ooh323-11.25.3-1.shmz65.1.123.x86_64 5/15
Erasing : asterisk11-odbc-11.25.3-1.shmz65.1.123.x86_64 6/15
Erasing : asterisk11-flite-11.25.2-1.shmz65.1.53.x86_64 7/15
Erasing : asterisk11-11.25.3-1.shmz65.1.123.x86_64 8/15
Erasing : asterisk11-dahdi-11.25.3-1.shmz65.1.123.x86_64 9/15
Erasing : asterisk11-doc-11.25.3-1.shmz65.1.123.x86_64 10/15
Erasing : asterisk11-voicemail-11.25.3-1.shmz65.1.123.x86_64 11/15
Erasing : asterisk11-curl-11.25.3-1.shmz65.1.123.x86_64 12/15
Erasing : asterisk11-flite-debuginfo-11.25.2-1.shmz65.1.53.x86_64 13/15
Erasing : asterisk11-core-11.25.3-1.shmz65.1.123.x86_64 14/15
Erasing : asterisk11-res_digium_phone-2.1.1-1.shmz65.1.36.x86_64 15/15
Verifying : asterisk11-curl-11.25.3-1.shmz65.1.123.x86_64 1/15
Verifying : asterisk11-core-11.25.3-1.shmz65.1.123.x86_64 2/15
Verifying : asterisk11-res_digium_phone-2.1.1-1.shmz65.1.36.x86_64 3/15
Verifying : asterisk11-flite-debuginfo-11.25.2-1.shmz65.1.53.x86_64 4/15
Verifying : asterisk11-addons-mysql-11.25.3-1.shmz65.1.123.x86_64 5/15
Verifying : asterisk11-addons-ooh323-11.25.3-1.shmz65.1.123.x86_64 6/15
Verifying : asterisk11-flite-11.25.2-1.shmz65.1.53.x86_64 7/15
Verifying : asterisk11-11.25.3-1.shmz65.1.123.x86_64 8/15
Verifying : asterisk11-odbc-11.25.3-1.shmz65.1.123.x86_64 9/15
Verifying : asterisk11-doc-11.25.3-1.shmz65.1.123.x86_64 10/15
Verifying : asterisk11-addons-11.25.3-1.shmz65.1.123.x86_64 11/15
Verifying : asterisk11-voicemail-11.25.3-1.shmz65.1.123.x86_64 12/15
Verifying : asterisk11-addons-core-11.25.3-1.shmz65.1.123.x86_64 13/15
Verifying : asterisk11-dahdi-11.25.3-1.shmz65.1.123.x86_64 14/15
Verifying : asterisk11-addons-bluetooth-11.25.3-1.shmz65.1.123.x86_6 15/15

asterisk11.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-bluetooth.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-core.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-mysql.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-ooh323.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-core.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-curl.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-dahdi.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-doc.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-flite.x86_64 0:11.25.2-1.shmz65.1.53
asterisk11-flite-debuginfo.x86_64 0:11.25.2-1.shmz65.1.53
asterisk11-odbc.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-res_digium_phone.x86_64 0:2.1.1-1.shmz65.1.36
asterisk11-voicemail.x86_64 0:11.25.3-1.shmz65.1.123

Finished Transaction

Leaving Shell

asterisk13 had an issue being installed and did not complete
Review the console logs and resolve the RPM conflict first
echo and rerun this script to try again.
[[email protected] ~]#

There appears to be a problem with the way asterisk-version-switch is accessing the mirrorlist. If I paste the link “” in a browser it returns “” which in turn opens fine as well. I never see a 502 Connection Refused unless I am accessing the site from the script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.