TIPS Wable OpenVZ Restore Fails

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Just tried migrating a Wable VPS with PBXIAF over to Dallas (using the snapshot/restore snapshot to a new VPS method), which changed the IP address, and Asterisk won't start.
I'm getting this error: Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting
I'm guessing that something changed once I restored the VM, but does anyone have any idea where to look, or what might have changed?
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Thanks Ward, will try that.
Already did the DNS fix.
Also, any idea which PBXIAF patches need to be re-applied (assuming I can delete the file in /etc/pbx and re-run the updates)?
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Seems like people have had issues connecting to localhost, wondering if that might be an issue somewhere...
 
Last edited:

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,206
Reaction score
5,228
What's in your old and new /etc/hosts file??
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Compared it to another system still up in NY (I shut my other VPS down for now), this is what the file has:

127.0.0.1 localhost.localdomain localhost IncrediblePBX.local localhost4.localdomain4 localhost4 pbx.local
# Auto-generated hostname. Please do not remove this comment.
x.x.x.x pbx.domain.com pbx
::1 pbx.local localhost IncrediblePBX.local localhost.localdomain localhost6 localhost6.localdomain6

New VPS (after doing everything per this post: http://pbxinaflash.com/community/threads/wable-openvz-platform.17140/page-5#post-113321):

127.0.0.1 localhost.localdomain localhost IncrediblePBX.local localhost4.localdomain4 localhost4 pbx.local
# Auto-generated hostname. Please do not remove this comment.
x.x.x.x pbx.domain.com pbx
::1 pbx.local localhost IncrediblePBX.local localhost.localdomain localhost6 localhost6.localdomain6

Looks the same to me...
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Just tested running this on each server:

telnet localhost 5038

On the machine still up in NY, I can connect:

Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/2.8.0

On the machine I migrated, seeing this:

Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

Ran netstat -pnlt | grep ':5038', which shows this on the first VPS:

tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN 2073/asterisk

But doesn't show anything on the second VPS.

Does that mean that Asterisk Manager isn't running?
 
Last edited:

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Going to try a reinstall and then restore from a FreePBX backup for now.
 

Members online

Forum statistics

Threads
25,825
Messages
167,853
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top