Jump to content

Upgrading from 4.3.0.5021 to 4.5.1.1107


Kahele Nakaahiki

Recommended Posts

Hi!

 

Any help would be greatly appreciated. I'm trying to upgrade our Snom one system, running on CentOS32, from 4.3.0.5021 to 4.5.1.1107. I've downloaded the binary, made it executable, stopped the service, renamed both old and new files (we don't used a symbolic link file) but when I attempt to restart the service I get 'Segmentation Fault'.

Link to comment
Share on other sites

First off i need to thank you for replying to me! :)

 

Yeah that threw me for a loop as well. I didn't originally install this instance of the PBX and as far as i can tell they just renamed the binary with a .exe at the end and that is the file mentioned in the startup script.

 

#!/bin/sh
# description: PBX startup
# chkconfig: 2345 99 00
case "$1" in
'start')
/usr/local/PBX/pbxctrl.exe --dir /usr/local/PBX/ --config /usr/local/PBX/pbx.xml
touch /var/lock/subsys/PBX
;;
'stop')
echo -n "Stopping PBX:"
kill $(pgrep pbxctrl.exe)
echo
RETVAL=1
rm -f /var/lock/subsys/PBX
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
I attempt to use a symbolic link instead but i still got a segfault error.
[root@srpbx01 PBX]# /etc/init.d/snomONE start
Starting snom ONE daemon/etc/init.d/snomONE: line 7: 7319 Segmentation fault ./$PBXEXE --dir $PBXDIR
Also i'm not following on your suggestion to try the image with pbxctrl --version. Truthfully i've forgotten most linux i knew, and that wasn't much. I tried <binary name> --version but that came back with unknown command.
Link to comment
Share on other sites

If you want to ever be able to upgrade the PBX from the web interface, the executable name must be pbxctrl (hack, hack). I would suggest just renaming (mv in Linux) the exe to pbxctrl and edit the script accordingly. I suspect that there are several pbxctrl* files, and you end up using the wrong one. A "ls" would show the picture.

Link to comment
Share on other sites

Okay, i'll rename the the exe and edit the script and see how that goes.

 

Here's the ls and ls -l

 

[root@srpbx01 PBX]# ls
accesslist colines hunts provisioning
acds conferences ivrnodes recordings
adrbook dial_plan login registrations
attendants dial_plan_entry logs schedules
audio_en domain_alias messages spool
audio_moh domains mohs srvflags
button_lists email_templates pbxctrl tftp
buttons expired-1223.txt pbxctrl-centos32-4.5.1.1107 trunks
callingcards expired-229.txt pbxctrl.exe user_alias
cdr extensions pbxctrl.exe.5020 users
cdre ftp pbx_startup_err.txt webpages
cdri generated pbx.xml wipers
cdrt hoots pbx.xml.bak
certificates html pnp_parms
[root@srpbx01 PBX]# ls -la
total 33840
drwxr-xr-x 47 root root 4096 Feb 23 01:22 .
drwxr-xr-x 15 root root 4096 Feb 22 22:55 ..
drwxr-xr-x 2 root root 4096 Feb 23 02:21 accesslist
drwxr-xr-x 2 root root 4096 Jan 18 2011 acds
drwxr-xr-x 2 root root 12288 Feb 5 11:23 adrbook
drwxr-xr-x 2 root root 4096 Jan 18 2011 attendants
drwxr-xr-x 3 root root 20480 Jan 18 2011 audio_en
drwxr-xr-x 2 root root 4096 Jan 18 2011 audio_moh
drwxr-xr-x 2 root root 4096 Feb 27 2012 button_lists
drwxr-xr-x 2 root root 4096 May 9 2012 buttons
drwxr-xr-x 2 root root 4096 Jan 18 2011 callingcards
drwxr-xr-x 2 root root 69632 Jan 18 2011 cdr
drwxr-xr-x 2 root root 24576 Feb 23 12:22 cdre
drwxr-xr-x 2 root root 45056 Feb 23 12:26 cdri
drwxr-xr-x 2 root root 57344 Feb 23 12:26 cdrt
drwxr-xr-t 2 root root 4096 Jun 30 2011 certificates
drwxr-xr-x 2 root root 4096 Jan 18 2011 colines
drwxr-xr-x 2 root root 4096 Feb 7 08:52 conferences
drwxr-xr-x 2 root root 4096 Feb 28 2011 dial_plan
drwxr-xr-x 2 root root 4096 Aug 28 2013 dial_plan_entry
drwxr-xr-x 2 root root 4096 Mar 1 2012 domain_alias
drwxr-xr-x 2 root root 4096 Jan 18 2011 domains
drwxr-xr-x 2 root root 4096 Jan 18 2011 email_templates
-rw-r--r-- 1 root root 509 Oct 11 2012 expired-1223.txt
-rw-r--r-- 1 root root 517 Aug 14 2012 expired-229.txt
drwxr-xr-x 2 root root 4096 Dec 17 14:09 extensions
drwxr-xr-x 2 root root 4096 Jan 18 2011 ftp
drwxr-xr-x 22 root root 4096 Mar 1 2012 generated
drwxr-xr-x 2 root root 4096 Apr 27 2014 hoots
drwxr-xr-x 2 root root 4096 Jan 18 2011 html
drwxr-xr-x 2 root root 4096 Feb 28 2012 hunts
drwxr-xr-x 2 root root 4096 Jan 18 2011 ivrnodes
drwxr-xr-x 2 root root 4096 Feb 27 2014 login
drwxr-xr-x 2 root root 4096 Feb 23 00:00 logs
drwxr-xr-x 2 root root 20480 Feb 23 10:46 messages
drwxr-xr-x 2 root root 4096 Jan 18 2011 mohs
lrwxrwxrwx 1 root root 11 Feb 23 01:04 pbxctrl -> pbxctrl.exe
-rwxr-xr-x 1 root root 11471726 Feb 11 16:10 pbxctrl-centos32-4.5.1.1107
-rwxr-xr-x 1 root root 11663772 Nov 29 2011 pbxctrl.exe
-rwxr-xr-x 1 root root 10715472 Nov 10 2011 pbxctrl.exe.5020
-rw-r--r-- 1 root root 48 Sep 28 2011 pbx_startup_err.txt
-rw-r--r-- 1 root root 9439 Feb 23 02:44 pbx.xml
-rwxr--r-- 1 root root 9325 Dec 12 2011 pbx.xml.bak
drwxr-xr-x 2 root root 4096 Mar 1 2012 pnp_parms
drwxr-xr-x 2 root root 4096 Jan 18 2011 provisioning
drwxr-xr-x 634 root root 57344 Feb 23 11:44 recordings
drwxr-xr-x 2 root root 4096 Sep 10 14:04 registrations
drwxr-xr-x 2 root root 4096 Feb 7 08:52 schedules
drwxr-xr-x 2 root root 4096 Feb 23 11:52 spool
drwxr-xr-x 2 root root 4096 Jul 14 2011 srvflags
drwxr-xr-x 4 root root 4096 May 6 2013 tftp
drwxr-xr-x 2 root root 4096 Jul 23 2013 trunks
drwxr-xr-x 2 root root 4096 Feb 7 08:52 user_alias
drwxr-xr-x 2 root root 4096 Feb 7 08:52 users
drwxr-xr-t 2 root root 4096 Mar 2 2012 webpages
drwxr-xr-x 2 root root 4096 Feb 23 11:44 wipers
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...