Re: http://issues.freepbx.org/browse/FREEPBX-11503
Works fine on the distro. This is a user misconfiguration. Please bring this up in the forums.
Did you actually try to build a FreePBX 13 + Asterisk 13 system on Debian?
I’ve made no changes to my install scripts/procedure in many weeks, but a recent update to FreePBX 13 or Debian has resulted in FreePBX 13 reporting “Can Not Connect to Asterisk”. During FreePBX 13 installation, the following is reported, even though Asterisk was successfully installed and is running:
STARTING ASTERISK
Asterisk Started
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
No /etc/asterisk/asterisk.conf file detected. Installing…Writing /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Done
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…Yes (No /etc/amportal.conf file detected)
Database Root installation checking credentials and permissions…Connected!
Empty asterisk Database going to populate it
Empty asteriskcdrdb Database going to populate it
Initializing FreePBX Settings
.
.
.
Installing framework…
No directory /var/www/html/admin/modules/framework/amp_conf/htdocs, install script not needed
Generating CSS…Done
Module framework successfully installed
Updating Hooks…Done
Done
Generating default configurations…
Exception: Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting in file /var/lib/asterisk/bin/retrieve_conf on line 13
Stack trace:
- Exception->() /var/lib/asterisk/bin/retrieve_conf:13
Finished generating default configurations
Trusting FreePBX…Trusted
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
.
.
.
Module voicemail successfully installed
Updating Hooks…Done
Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 1
Exception: Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting in file /var/lib/asterisk/bin/retrieve_conf on line 13
Stack trace: - Exception->() /var/lib/asterisk/bin/retrieve_conf:13
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
No other errors are reported during the FreePBX 13 / Asterisk 13 installation.
Asterisk is definitely running:
root@freepbx:~# asterisk -rvvvvv
Asterisk 13.7.2, Copyright © 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Connected to Asterisk 13.7.2 currently running on freepbx (pid = 1602)
freepbx*CLI> core show sysinfo
System Statistics
System Uptime: 0 hours
Total RAM: 948140 KiB
Free RAM: 669576 KiB
Buffer RAM: 23844 KiB
Total Swap Space: 102396 KiB
Free Swap Space: 102396 KiB
Number of Processes: 159
and
root@freepbx:~# fwconsole restart
Running FreePBX shutdown…
Checking Asterisk Status…
Run Pre-Asterisk Shutdown Hooks
Shutting down Asterisk Gracefully…
Press C to Cancel
Press N to shut down NOW
Stopping Asterisk…
120/120 [============================] 100%
Asterisk Stopped Successfuly
Running Post-Asterisk Stop Scripts
Running FreePBX startup…
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
18319/18319 [============================] 100%
Finished setting permissions
Checking Asterisk Status…
Run Pre-Asterisk Hooks
Starting Asterisk…
100/100 [============================] 100%
Asterisk Started on 1798
Running Post-Asterisk Scripts