FreePBX distro install > Can Not Connect to Asterisk

I have use VirtualBox to create a VM on which I would like to run FreePBX.
The host system is a Ubuntu server, I use headless virtualbox.

From freepbx.org I downloaded the latest stable ISO file, FreePBX-64bit-10.13.66.iso .
The VM boots with the iso mounted in the discdrive, the installer starts fine. I choose to install with latest Asterisk version (13). I tried to install both the default and the without raid option; same results.
The installer runs fine, just as described in the docs, wiki.freepbx.org/display/FD/Installing+FreePBX+Official+Distro .
(however, the step that updates all FreePBX modules seems to run even longer than the 10-15 minutes that is advertised).

When installation is complete, I see the message that I should use the GUI in my webbrowser.
In the GUI on the top right there is a red box with a message that states “Can Not Connect to Asterisk”. Not good.
I can complete the wizards for choosing user/pass for the GUI and configuration of the firewall.

Slowly the disk is getting full. In the folder /tmp there are a lot of file (core dumps?)
like these:
core.localhost.localdomain-2016-04-24T11:05:38+0200 like 8 per minute.
I do not know how to read these files (seem to be binary; only strange chars in vim).

When the disk is full, I receive a lot of error messages both on cli as gui, because files cannot be written. When I remove some files I only see the message:
NOTICE! You have 8 notifications! Please log into the UI to see them!
Don’t know how I can see those.

Although I ran trough the firewall wizard, I get these messages in the cli twice per minute:
Broadcast message from [email protected] (Sun Apr 24 13:44:25 2016):

Firewall Rules corrupted! Restarting in 5 seconds

I feel very stupid, because according to the docs you just have to run the installer and everything is fine. The FAQ of the installer only contains one item about video not working. Also, I cannot find anyone with the same problem neither on this forum or on Google.

This thread came close Cannot connect to asterisk after first reboot (that links to wiki.freepbx.org/display/HTGS/Example+systemd+startup+script+for+FreePBX for a solution), but there isn’t even a folder /etc/systemd in my system…

I could also verify that Asterisk is running:
ps aux |grep asterisk
asterisk 1354 0.0 1.6 351300 8180 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1355 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1356 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1357 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1358 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1359 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1360 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
asterisk 1361 0.0 1.6 351300 8176 ? S 11:11 0:00 /usr/sbin/httpd
root 1566 0.2 0.2 110624 1420 ? S 11:12 0:18 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 2269 0.0 3.7 703332 18716 ? Ssl 11:13 0:01 /usr/bin/node /var/www/html/admin/modules/ucpnode/node/node_modules/forever/bin/monitor index.js
asterisk 30581 70.5 4.0 614376 20444 ? Rl 13:47 0:01 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
root 30597 0.0 0.1 103248 880 pts/0 S+ 13:47 0:00 grep asterisk

I tried to restart with /etc/init.d/asterisk restart , but that gave even more errors…
Machine rebooted several times.
Tried a second install with clean VM.
Nothing works.

Only thing left to try is to install FreePBX with Asterisk 11, but I would rather not use an older version.

What should I do?

(sorry, I have not enough rights to place links in my post. I removed the http parts)

I think this is related to your VM settings.
Could you connect to Asterisk CLI? (asterisk -cvvvvr)

That seems to work, although it shows some warnings:

[[email protected] tmp]# asterisk -cvvvvr
Asterisk 13.7.1, Copyright © 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer
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.1 currently running on localhost (pid = 13730)
== Parsing ‘/etc/asterisk/http_custom.conf’: Found
[2016-04-24 15:21:05] WARNING[13730]: http.c:2190 __ast_http_load: Ignoring unknown option ‘tlsbindport’ in http.conf
[2016-04-24 15:21:05] WARNING[13730]: http.c:2173 __ast_http_load: Invalid sessionlimit ‘’ at line 20 of http.conf
Bound HTTP server to address [::]:0
== Parsing ‘/etc/asterisk/indications.conf’: Found
– Registered indication country ‘us’
– Setting default indication country to ‘us’
== Parsing ‘/etc/asterisk/cdr.conf’: Found
[2016-04-24 15:21:05] NOTICE[13730]: cdr.c:4162 cdr_toggle_runtime_options: CDR simple logging enabled.
== Parsing ‘/etc/asterisk/udptl.conf’: Found
== Parsing ‘/etc/asterisk/udptl_custom.conf’: Found
Asterisk PBX Core Initializing
== Registering builtin applications and functions:
== Registered custom function ‘EXCEPTION’
== Registered custom function ‘TESTTIME’
== Registered application ‘Answer’
== Registered application ‘BackGround’
== Registered application ‘Busy’
== Registered application ‘Congestion’
== Registered application ‘ExecIfTime’
== Registered application ‘Goto’
== Registered application ‘GotoIf’
== Registered application ‘GotoIfTime’
== Registered application ‘ImportVar’
== Registered application ‘Hangup’
== Registered application ‘Incomplete’
== Registered application ‘NoOp’
== Registered application ‘Proceeding’
== Registered application ‘Progress’
== Registered application ‘RaiseException’
== Registered application ‘Ringing’
== Registered application ‘SayAlpha’
== Registered application ‘SayAlphaCase’
== Registered application ‘SayDigits’
== Registered application ‘SayNumber’
== Registered application ‘SayPhonetic’
== Registered application ‘Set’
== Registered application ‘MSet’
== Registered application ‘SetAMAFlags’
== Registered application ‘Wait’
== Registered application ‘WaitExten’
== Manager registered action ShowDialPlan
== Manager registered action ExtensionStateList
== Registered channel type ‘Local’ (Local Proxy Channel Driver)
== Manager registered action LocalOptimizeAway
== Parsing ‘/etc/asterisk/cel.conf’: Found
== Parsing ‘/etc/asterisk/cel_general_additional.conf’: Found
== Parsing ‘/etc/asterisk/cel_general_custom.conf’: Found
== Parsing ‘/etc/asterisk/cel_custom_post.conf’: Found
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Login
== Manager registered action Challenge
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action GetConfig
== Manager registered action GetConfigJSON
== Manager registered action UpdateConfig
== Manager registered action CreateConfig
== Manager registered action ListCategories
== Manager registered action Redirect
== Manager registered action Atxfer
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action PresenceState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Manager registered action SendText
== Manager registered action UserEvent
== Manager registered action WaitEvent
== Manager registered action CoreSettings
== Manager registered action CoreStatus
== Manager registered action Reload
== Manager registered action LoggerRotate
== Manager registered action CoreShowChannels
== Manager registered action ModuleLoad
== Manager registered action ModuleCheck
== Manager registered action AOCMessage
== Manager registered action Filter
== Manager registered action BlindTransfer
== Registered custom function ‘AMI_CLIENT’
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager registered action BridgeList
== Manager registered action BridgeInfo
== Manager registered action BridgeDestroy
== Manager registered action BridgeKick
== Parsing ‘/etc/asterisk/enum.conf’: Found
== Registered application ‘CallCompletionRequest’
== Registered application ‘CallCompletionCancel’
== Parsing ‘/etc/asterisk/ccss.conf’: Found
== Parsing ‘/etc/asterisk/ccss_general_additional.conf’: Found
== Parsing ‘/etc/asterisk/ccss_general_custom.conf’: Found
== Parsing ‘/etc/asterisk/ccss.conf’: Found
== Parsing ‘/etc/asterisk/ccss_general_additional.conf’: Found
== Parsing ‘/etc/asterisk/ccss_general_custom.conf’: Found
Asterisk Dynamic Loader Starting:
== Parsing ‘/etc/asterisk/modules.conf’: Found
[2016-04-24 15:21:05] NOTICE[13730]: loader.c:1364 load_modules: 300 modules will be loaded.
[2016-04-24 15:21:05] WARNING[13730]: loader.c:553 load_dynamic_module: Error loading module ‘res_ari_events.so’: /usr/lib64/asterisk/modules/res_ari_events.so: undefined symbol: stasis_app_register_all
[2016-04-24 15:21:05] WARNING[13730]: loader.c:553 load_dynamic_module: Error loading module ‘res_monitor.so’: /usr/lib64/asterisk/modules/res_monitor.so: undefined symbol: __ast_beep_start
Loading res_statsd.so.
[2016-04-24 15:21:06] ERROR[13730]: config_options.c:642 aco_process_config: Unable to load config file 'statsd.conf’
Loading res_odbc.so.
== Parsing ‘/etc/asterisk/res_odbc.conf’: Found
== Parsing ‘/etc/asterisk/res_odbc_custom.conf’: Found
== Parsing ‘/etc/asterisk/res_odbc_additional.conf’: Found
[2016-04-24 15:21:06] NOTICE[13730]: res_odbc.c:1528 odbc_obj_connect: Connecting asteriskcdrdb
[2016-04-24 15:21:06] NOTICE[13730]: res_odbc.c:1567 odbc_obj_connect: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2016-04-24 15:21:06] NOTICE[13730]: res_odbc.c:923 load_odbc_config: Registered ODBC class ‘asteriskcdrdb’ dsn->[MySQL-asteriskcdrdb]
== Registered application ‘ODBC_Commit’
== Registered application ‘ODBC_Rollback’
== Registered custom function ‘ODBC’
[2016-04-24 15:21:06] NOTICE[13730]: res_odbc.c:1907 load_module: res_odbc loaded.
== res_odbc.so => (ODBC resource)
Loading res_sorcery_config.so.
== Sorcery registered wizard ‘config’
== res_sorcery_config.so => (Sorcery Configuration File Object Wizard)
Loading res_sorcery_realtime.so.
== Sorcery registered wizard ‘realtime’
== res_sorcery_realtime.so => (Sorcery Realtime Object Wizard)
Loading res_sorcery_memory_cache.so.
== Sorcery registered wizard ‘memory_cache’
== Manager registered action SorceryMemoryCacheExpireObject
== Manager registered action SorceryMemoryCacheExpire
== Manager registered action SorceryMemoryCacheStaleObject
== Manager registered action SorceryMemoryCacheStale
== Manager registered action SorceryMemoryCachePopulate
== res_sorcery_memory_cache.so => (Sorcery Memory Cache Object Wizard)
Loading res_pjsip_config_wizard.so.
== res_pjsip_config_wizard.so => (PJSIP Config Wizard)
Loading res_sorcery_astdb.so.
== Sorcery registered wizard ‘astdb’
== res_sorcery_astdb.so => (Sorcery Astdb Object Wizard)
Loading res_sorcery_memory.so.
== Sorcery registered wizard ‘memory’
== res_sorcery_memory.so => (Sorcery In-Memory Object Wizard)
Loading res_pjsip_log_forwarder.so.
== res_pjsip_log_forwarder.so => (PJSIP Log Forwarder)
Loading res_pjsip.so.
localhost*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[[email protected] tmp]#

Just off hand, it looks like your distribution files were either bad or they got corrupted somewhere along the way. You shouldn’t be seeing modules symbol table errors like this.

Ever.

There is definitely something wrong with your installation.

Thanks for the replies.

I installed the 32bit version, which works fine.

Before that I tried several other things, without success.
VM with os_type linux_64 or redhat_64, no difference.
Downloaded the ISO again, but no differences between the files, nor any differences after install.
I ran the command psdk suggested, “asterisk -cvvvvr” BEFORE I went through the wizard and it showed that Asterisk was not running.

The (or another, not sure) firewall issue also occured on the 32bit version. In the /tmp/firewall log it said:
rfw rule 2 not valid (Is ‘-m recent --rcheck --seconds 86400 --hitcount 1 --name ATTACKER --rsource -j fpbxattacker’, should start with ‘-m recent --rcheck --seconds 10 --hitcount 50 --name REPEAT --rsource’)
THIS MAY BE A KERNEL ISSUE. IF THIS KEEPS OCCURRING REBOOT YOUR MACHINE URGENTLY.
1462007175: Wall: 'Firewall Rules corrupted! Restarting in 5 seconds
More information available in /tm

A reboot of the machine solved that…

Thanks for the support, I am not sure why the 64bit version did not work for me. But I’m fine with the 32bit.