Restore Problem

Hello All,

Running PBX Firmware:5.211.65-12, everything is up to date.
I execute a full backup and then copy the backup file over to a new physical server.
When I restore the backup to a new server I get a few errors with symlinks that I fixed, but when I go to test things, nothing is functioning properly.

  1. In rasterisk I get sip show peers
    No such command ‘sip show peers’ (type ‘core show help sip show’ for other possible commands)

  2. Calls codecs are not working so no voice/sound.

I restart asterisk and then the phones won’t register.
After playing with this, not seeing anything in the logs etc, I decided I would do another fresh install on the new server.

After a new install, I went to rasterisk and see information after typing in sip show peers, so I think OK, things are better.
I restore again and the same results.

I did pick EVERY option on the restore just for reference.

Any ideas/suggestions??

Thanks!

in Asterisk CLI:
module unload chan_sip.so
module load chan_sip.so
In Linux shell:
less +G /var/log/asterisk/full

Hi James,

Thanks for the response.

Asterisk results:
[2014-05-12 16:19:40] WARNING[3378]: loader.c:566 ast_unload_resource: Unload failed, ‘chan_sip.so’ could not be found
[2014-05-12 16:19:40] WARNING[3378]: loader.c:566 ast_unload_resource: Unload failed, ‘chan_sip.so’ could not be found
localhost*CLI> module load chan_sip.so
Unable to load module chan_sip.so
Command ‘module load chan_sip.so’ failed.
[2014-05-12 16:19:43] WARNING[3378]: loader.c:439 load_dynamic_module: Error loading module ‘chan_sip.so’: /usr/lib/asterisk/modules/chan_sip.so: cannot open shared object file: No such file or directory
[2014-05-12 16:19:43] WARNING[3378]: loader.c:439 load_dynamic_module: Error loading module ‘chan_sip.so’: /usr/lib/asterisk/modules/chan_sip.so: cannot open shared object file: No such file or directory
[2014-05-12 16:19:43] WARNING[3378]: loader.c:918 load_resource: Module ‘chan_sip.so’ could not be loaded.
[2014-05-12 16:19:43] WARNING[3378]: loader.c:918 load_resource: Module ‘chan_sip.so’ could not be loaded.

Asterisk Log file resutls:

[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_general_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_general_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_general_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_general_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] logger.c: Asterisk Queue Logger restarted
[2014-05-12 13:07:14] VERBOSE[2946] logger.c: Asterisk Queue Logger restarted
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_general_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_general_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_general_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_general_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_applicationmap_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_applicationmap_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_applicationmap_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_applicationmap_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_featuremap_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_featuremap_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_featuremap_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/features_featuremap_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] features.c: == Registered Feature ‘apprecord’
[2014-05-12 13:07:14] VERBOSE[2946] features.c: == Registered Feature ‘apprecord’
[2014-05-12 13:07:14] VERBOSE[2946] features.c: == Mapping Feature ‘apprecord’ to app ‘Macro(one-touch-record)’ with code ‘*1’
[2014-05-12 13:07:14] VERBOSE[2946] features.c: == Mapping Feature ‘apprecord’ to app ‘Macro(one-touch-record)’ with code ‘*1’
[2014-05-12 13:07:14] VERBOSE[2946] pbx.c: – Added extension ‘70’ priority 1 to parkedcalls
[2014-05-12 13:07:14] VERBOSE[2946] pbx.c: – Added extension ‘70’ priority 1 to parkedcalls
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/indications.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/indications.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] indications.c: – Setting default indication country to ‘us’
[2014-05-12 13:07:14] VERBOSE[2946] indications.c: – Setting default indication country to ‘us’
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel_general_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel_general_additional.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel_general_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel_general_custom.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel_custom_post.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] config.c: == Parsing ‘/etc/asterisk/cel_custom_post.conf’: Found
[2014-05-12 13:07:14] VERBOSE[2946] cel.c: – CEL logging enabled.
[2014-05-12 13:07:14] VERBOSE[2946] cel.c: – CEL logging enabled.
[2014-05-12 16:19:29] VERBOSE[1900] asterisk.c: – Remote UNIX connection
[2014-05-12 16:19:29] VERBOSE[1900] asterisk.c: – Remote UNIX connection
[2014-05-12 16:19:40] WARNING[3378] loader.c: Unload failed, ‘chan_sip.so’ could not be found
[2014-05-12 16:19:40] WARNING[3378] loader.c: Unload failed, ‘chan_sip.so’ could not be found
[2014-05-12 16:19:43] WARNING[3378] loader.c: Error loading module ‘chan_sip.so’: /usr/lib/asterisk/modules/chan_sip.so: cannot open shared object file: No such file or directory
[2014-05-12 16:19:43] WARNING[3378] loader.c: Error loading module ‘chan_sip.so’: /usr/lib/asterisk/modules/chan_sip.so: cannot open shared object file: No such file or directory
[2014-05-12 16:19:43] WARNING[3378] loader.c: Module ‘chan_sip.so’ could not be loaded.
[2014-05-12 16:19:43] WARNING[3378] loader.c: Module ‘chan_sip.so’ could not be loaded.
[2014-05-12 16:20:28] WARNING[3378] loader.c: Unload failed, ‘chan_sip.so’ could not be found
[2014-05-12 16:20:28] WARNING[3378] loader.c: Unload failed, ‘chan_sip.so’ could not be found
[2014-05-12 16:20:37] WARNING[3378] loader.c: Error loading module ‘chan_sip.so’: /usr/lib/asterisk/modules/chan_sip.so: cannot open shared object file: No such file or directory
[2014-05-12 16:20:37] WARNING[3378] loader.c: Error loading module ‘chan_sip.so’: /usr/lib/asterisk/modules/chan_sip.so: cannot open shared object file: No such file or directory
[2014-05-12 16:20:37] WARNING[3378] loader.c: Module ‘chan_sip.so’ could not be loaded.
[2014-05-12 16:20:37] WARNING[3378] loader.c: Module ‘chan_sip.so’ could not be loaded.
[2014-05-12 16:20:45] VERBOSE[3378] asterisk.c: – Remote UNIX connection disconnected
[2014-05-12 16:20:45] VERBOSE[3378] asterisk.c: – Remote UNIX connection disconnected

Since it was a new install I did an updatedb so I could search for the module.
I could not locate “chain_sip.so” which also doesn’t exist on my current server.

It’s chan_sip.so

Is there anything in /usr/lib/asterisk/modules or usr/lib64/asterisk/modules

Sorry about the typo.
I did do the load and unload correctly as you can see, just when typing my results and my locate i went a little too quick.

I do find the module where expected (/usr/lib/asterisk/modules/chan_sip.so) but things are still not working.

Looks like you are trying to load 32 modules on a 64 bit system.

I did an upgrade from the 1.8xx.210.58 then went to FreePBX-Distro-2.210.62 and the full process from there.
Looking back now, I believe you hit it on the head, I verified and while I’m on the current 5.2xx branch I am running on the 32bit OS from my conversion.
The converted server is running virtually, I then installed from scratch 64bit 5.2xx on the former server so I could take the server back to a hardware install.

I have seen http://wiki.freepbx.org/display/FD/Updating+FreePBX+Official+Distro but no references for taking it from 32 to 64, do you have a reference I could use?

Thank you!

For reference, I’m not moving to 64bit for any specific reason, just getting everything current and to the latest. Would I be better off keeping it 32bit and simply re-install the 5.2xx distro in w/32bit?

Thanks again!

There is little to recommend a 64bit OS unless you are huge, look into Debian which is multiarch if you want and you would not have these problems.

With asterisk you would still have these problems because the asterisk.conf file is being restored from a backup with the modules= directive pointing to the old 32bit location when it should be updated to/for the new 64bit location.

unless you are huge >> My wife says I am huge.

Anyway, as tm1000 pointed out the only issue was the restored asterisk.conf. That was my next step for you.

As far as 64 bits, it’s heavy on the HD usage. If you don’t need above 4G DMA (do they even make a PAE Kernel anymore?) then I would not worry about it.

And my GF thinks I am too huge, damn!! :slight_smile:

Yes they do at least in Debian, but far more conveniently you can be multiarch and it will all works seemlessly.

(and all your network cards are supported also :slight_smile: go figure . . . )

Question - Have World Peace
Answer (Dicko) - Debian

It slices, it dices and it’s available at no charge from a mirror close to you.

I can’t learn how to type apt-get so I guess I am out

Thanks team schmooze, I think it makes sense to simply go Centos 6, 32 Bit.
I would ask for reference based on your responses, if I were to update the module locations, this would work correctly ( heavier resources usage for same load ).
Is that accurate?
Skyking, what would you consider huge? ( no pun intended ), 60 - 100 - 200 users?

Thanks again to everyone.

and don’t wait for any third person repo to support ‘out of allowed’ and no longer legit repos on your brand spanking new non centos box :wink:

If you updated the module locations to match your Asterisk, yes.

Do a uname -r and a yum list | grep asterisk and post the results.

As far as huge, it’s more complicated than just registrations. I have over 400 analog lines at a hotel on an Atom box. You have to look at transcoding, call volume, queue usage, statistics collection etc.

Results from new server:

[[email protected] ~]# uname -r
2.6.32-431.el6.x86_64

[[email protected] ~]# yum list | grep -i asterisk
asterisk-sounds-core-en-alaw.noarch 1.4.25-94_centos5 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-sounds-core-en-gsm.noarch 1.4.25-94_centos5 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-sounds-core-en-ulaw.noarch 1.4.25-94_centos5 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-sounds-extra-en-alaw.noarch 1.4.14-100_centos5 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-sounds-extra-en-gsm.noarch 1.4.14-100_centos5 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-sounds-extra-en-ulaw.noarch 1.4.14-100_centos5 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-version-switch.noarch 1.0.0.0-4_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-addons.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-addons-bluetooth.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-addons-core.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-addons-mysql.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-addons-ooh323.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-core.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-curl.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-dahdi.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-doc.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-flite.x86_64 11.9.0-46 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-flite-debuginfo.x86_64 11.9.0-46 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-odbc.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-res_digium_phone.x86_64 1.0.1_centos6-46 @anaconda-PBX-201403180405.x86_64/6.5
asterisk11-voicemail.x86_64 11.9.0-46_centos6 @anaconda-PBX-201403180405.x86_64/6.5
asterisk-sounds-core-en_AU-alaw.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-en_AU-gsm.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-en_AU-ulaw.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-es-alaw.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-es-gsm.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-es-ulaw.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-fr-alaw.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-fr-gsm.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-core-fr-ulaw.noarch 1.4.25-94_centos5 pbx
asterisk-sounds-moh-opsound-alaw.noarch 0.0-4_centos5 pbx
asterisk-sounds-moh-opsound-ulaw.noarch 0.0-4_centos5 pbx
asterisk-sounds-moh-opsound-wav.noarch 0.0-4_centos5 pbx
asterisk11-alsa.x86_64 11.9.0-46_centos6 pbx
asterisk11-configs.x86_64 11.9.0-46_centos6 pbx
asterisk11-debuginfo.x86_64 11.9.0-46_centos6 pbx
asterisk11-devel.x86_64 11.9.0-46_centos6 pbx
asterisk11-ogg.x86_64 11.9.0-46_centos6 pbx
asterisk11-pgsql.x86_64 11.9.0-46_centos6 pbx
asterisk11-resample.x86_64 11.9.0-46_centos6 pbx
asterisk11-snmp.x86_64 11.9.0-46_centos6 pbx
asterisk11-speex.x86_64 11.9.0-46_centos6 pbx
asterisk11-sqlite3.x86_64 11.9.0-46_centos6 pbx
asterisk11-tds.x86_64 11.9.0-46_centos6 pbx
asterisk11-voicemail-imapstorage.x86_64 11.9.0-46_centos6 pbx
asterisk11-voicemail-odbcstorage.x86_64 11.9.0-46_centos6 pbx
asterisk18.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-addons.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-addons-bluetooth.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-addons-core.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-addons-mysql.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-addons-ooh323.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-alsa.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-configs.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-core.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-curl.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-dahdi.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-debuginfo.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-devel.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-doc.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-flite.x86_64 1.8.27.0-40 pbx
asterisk18-flite-debuginfo.x86_64 1.8.27.0-40 pbx
asterisk18-odbc.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-ogg.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-pgsql.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-resample.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-snmp.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-speex.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-sqlite3.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-tds.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-voicemail.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-voicemail-imapstorage.x86_64 1.8.27.0-40_centos6 pbx
asterisk18-voicemail-odbcstorage.x86_64 1.8.27.0-40_centos6 pbx
distro-motd-asterisknow.noarch 1.0.0.0-35.shmz_el6 pbx

Ok so you have a 64 bit Kernel and 64 Bit Asterisk. Just update asterisk.conf module directory and you will be back in business.