It appears that the first error message is due to the fact that “/etc/asterisk/pbx-version” does not exist. I just checked a new install of the latest distro and that file indeed does not exist. The only two files that contain the word “version” are listed below.
# ls -la /etc/asterisk/*ver*
-rw-rw-r-- 1 asterisk asterisk 13 Oct 7 00:33 /etc/asterisk/freepbxdistro-version
-r--rw-r-- 1 asterisk asterisk 16 Oct 7 00:30 /etc/asterisk/version
I looked at the source code for the upgrade you are running and can’t find any instance of the string “pbx-version”. It is possible that the upgrade script is corrupt. Have you tried downloading a fresh copy of the upgrade script?
I can confirm the same issue as reported by kerensen is happening on my system as well. Here is the output of /var/log/pbx/upgrade/1.8.2.0-1 and /var/log/pbx/upgrade/sa4.32.6.2-7 showing how far into the script each file is getting…
1.8.2.0-1:
Wed Nov 2 20:17:32 MST 2011 Your FreePBX Distro System is being upgraded to 1.8.2.0-1. Please standby…
Wed Nov 2 20:17:32 MST 2011 STAGE 1 STARTING - GUI Modules
VARIABLES SET FOR UPGRADE
asterisk=Asterisk 1.8.6.0 built by root @ freepbxdev1.schmoozecom.net on a i686 running Linux on 2011-09-02 01:58:28 UTC
kernel=Linux 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:51:33 EDT 2010 i686 i686 i386 GNU/Linux
version=1.8.1.4-3
host=
upgradeversion=1.8.2.0-1
virtual=0
sa4.32.6.2-7:
Wed Nov 2 21:20:45 MST 2011 Your PBXact System is being upgraded to sa4.32.6.2-7. Please standby…
Wed Nov 2 21:20:45 MST 2011 STAGE 1 STARTING - GUI Modules
VARIABLES SET FOR UPGRADE
asterisk=No such command ‘show version’ (type ‘core show help show version’ for other possible commands)
kernel=Linux 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:51:33 EDT 2010 i686 i686 i386 GNU/Linux
version=Asterisk 1.8.3.2
host=
upgradeversion=sa4.32.6.2-7
virtual=0
The output to the screen after executing 1.8.2.0-1.sh is as follows:
Your FreePBX Distro System is being upgraded to 1.8.2.0-1. Please standby…
)
running http://upgrades.schmoozecom.net/pbxact-upgrades/sysadminUpgrade-4.32.6.2-7.sh
mkdir: cannot create directory /usr/tmp/sa4.32.6.2-7': File exists mkdir: cannot create directory/usr/tmp/sa4.32.6.2-7’: File exists
mkdir: cannot create directory /usr/tmp/sa4.32.6.2-7': File exists mkdir: cannot create directory/usr/tmp/sa4.32.6.2-7’: File exists
[The mdkir error line will continue until I hit Ctrl-C.]
The error above in the sa4.32.6.2-7 output file which shows, “asterisk=No such command ‘show version’” seems interesting to me. In the sysadminUpgrade-4.32.6.2-7.sh file, the asterisk variable is set to, “asterisk=/usr/sbin/asterisk -rx "show version"” [Note “core show version” is correct syntax]. The “1.8.2.0-1.sh” file sets the “asterisk” variable correctly.
I hope all this info helps. Any suggestions/edits please let me know.