PBX cannot connect to asterisk... Please help!

Hi my phone system works but I can’t reload, it says that asterisk is not connected, I tried a bunch of commands with fwconsole, nothing made it work…

I am running FreePBX v16.0.40.4

here are some dumps

OUT > [2023-06-25 12:34:20] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:20] [freepbx.INFO]: Call Trasnfer Event listener [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Call Trasnfer Event listener [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Call Trasnfer Event listener [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Call Trasnfer Event listener [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Phone Applications daemon started. [] []
OUT > [2023-06-25 12:34:21] [freepbx.INFO]: Call Trasnfer Event listener [] []
OUT > [2023-06-25 12:34:22] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:22] [freepbx.INFO]: Connection attmempt to AMI failed [] []
OUT > [2023-06-25 12:34:22] [freepbx.INFO]: Call Trasnfer Event listener [] []

Reload Started

In php-asmanager.php line 248:

[Exception]
Asterisk is not connected

Exception trace:
at /var/www/html/admin/libraries/php-asmanager.php:248
AGI_AsteriskManager->send_request() at /var/www/html/admin/modules/sangomartapi/Sangomartapi.class.php:459
FreePBX\modules\Sangomartapi->postReloadFreepbx() at n/a:n/a
call_user_func_array() at /var/www/html/admin/libraries/BMO/Hooks.class.php:212
FreePBX\Hooks->processHooksByClassMethod() at /var/www/html/admin/libraries/Console/Reload.class.php:486
FreePBX\Console\Command\Reload->reload() at /var/www/html/admin/libraries/Console/Reload.class.php:91
FreePBX\Console\Command\Reload->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:992
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:255
Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /var/lib/asterisk/bin/fwconsole:163

reload [–json] [–dry-run] [–skip-registry-checks] [–dont-reload-asterisk]

OUT > [2023-06-25 12:34:17] [freepbx.INFO]: Depreciated Function languages_list detected in /var/www/html/admin/modules/languages/functions.inc.php on line 49 [] []
OUT > [2023-06-25 12:34:17] [freepbx.INFO]: Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/ringgroups/functions.inc.php on line 75 [] []
OUT >
==> /var/log/asterisk/freepbx_dbug <==
[2023-06-25 12:34:17] [dbug.DEBUG]: 2023-Jun-25 12:34:17 /var/www/html/admin/libraries/BMO/DialplanHooks.class.php:90

[] []
[2023-06-25 12:34:17] [dbug.DEBUG]: HANDLED-ERROR: faxpro250_get_config should exist, but it doesn’t. This is a bug in faxpro250

[] []
OUT >
==> /var/log/asterisk/freepbx.log <==
[2023-06-25 12:34:17] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/core/functions.inc.php on line 1079 [] []
OUT > [2023-06-25 12:

OUT > [2023-06-25 12:34:16] [freepbx.INFO]: /var/lib/asterisk/agi-bin/areminder failed to copy from module directory [] []
OUT > [2023-06-25 12:34:16] [freepbx.INFO]: /var/lib/asterisk/agi-bin/calllimit failed to copy from module directory [] []
OUT > [2023-06-25 12:34:16] [freepbx.INFO]: /var/lib/asterisk/agi-bin/enc failed to copy from module directory [] []
OUT > [2023-06-25 12:34:16] [freepbx.INFO]: /var/lib/asterisk/agi-bin/enc failed to copy from module directory [] []
OUT > [2023-06-25 12:34:16] [freepbx.INFO]: Depreciated Function ivr_get_details detected in /var/www/html/admin/modules/ivr/functions.inc.php on line 513 [] []

[2023-06-25 12:34:23] [freepbx.INFO]: [NOTIFICATION]-[freepbx]-[RCONFFAIL] - ‘fwconsole reload’ failed, config not applied (Asterisk is not connected) [] []

Please help

Could I get help?

What was the last thing you did, before the problem occurred…

idk…

I even checked if the AMI passwords matched but they do… I don’t understand what is the problem…

What is the output of:

fwconsole restart
1 Like

so when I reload from freepbx gui this is what I get

Error!
There was an error during reload: Unknown Error. Please Run: fwconsole reload --verbose
Unknown Error. Please Run: fwconsole reload --verbose 

When I do fwconsole restart I get the following

Running FreePBX shutdown...

Running Asterisk pre from Core module
Stopping Call Transfer Monitoring Service
Stopping Core FastAGI Server
Stopped FastAGI Server
Running Asterisk pre from Iotserver module
SmartOffice Server is not running
Running Asterisk pre from Restapps module
Stopping RestApps Server
Stopped RestApps Server
Running Asterisk pre from Sangomaconnect module
SangomaConnect Server is not running
Running Asterisk pre from Sangomartapi module
Stopping Sangoma RT API Server...
Stopped Sangoma RT API Server
Running Asterisk pre from Ucp module
Stopping UCP Node Server
[>---------------------------] < 1 sec
Stopped UCP Node Server
Running Asterisk pre from Xmpp module
Stopping Chat Server
Stopped Chat Server
Running Asterisk pre from Zulu module
Zulu Server is not running
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] < 1 sec
Advanced Recovery service is not running
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Stopping DAHDi for Digium Cards
DAHDi Stopped
Queue Callback Server is not running
Queue Callback Event Server is not running
Running FreePBX startup...
Running Asterisk pre from Dahdiconfig module
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Starting DAHDi for Digium Cards
DAHDi Started
Running Asterisk pre from Firewall module
Running Asterisk pre from Oracle_connector module
Running Asterisk pre from Sysadmin module
Running Sysadmin Hooks
Firewall module detected.
Restarting fail2ban
fail2ban Restarted
Updating License Information for 91857860
Checking Vpn server
Starting Asterisk...
[============================] < 1 sec
Asterisk Started
Running Asterisk post from Adv_recovery module
Advanced Recovery is not licensed.
Running Asterisk post from Core module
Starting Call Transfer Monitoring Service
Starting Core FastAGI Server...
[>---------------------------] 1 sec
Started Core FastAGI Server. PID is 13593
Running Asterisk post from Dahdiconfig module
Running Asterisk post from Endpoint module
Running Asterisk post from Iotserver module
This product is not licensed
Running Asterisk post from Pagingpro module
Running Asterisk post from Restapps module
Starting RestApps Server...
[>---------------------------] 1 sec
Started RestApps Server. PID is 13685
Running Asterisk post from Sangomaconnect module
This product is not licensed
Running Asterisk post from Sangomartapi module
Starting Sangoma RT API Server...
[>---------------------------] < 1 sec
Started Sangoma RT API Server. PID is 13777
Running Asterisk post from Ucp module
Starting UCP Node Server...
[>---------------------------] < 1 sec
Started UCP Node Server. PID is 13885
Running Asterisk post from Vqplus module
Queues Pro is not licensed.
Running Asterisk post from Xmpp module
Starting Chat Server...
[>---------------------------] < 1 sec
Started Chat Server. PID is 13996
Running Asterisk post from Zulu module
This product is not licensed

I really don’t get what’s wrong

But you were originally advised to

Unknown Error. Please Run: fwconsole reload --verbose

You have lots of commercial modules enabled but not licensed, you are trying to load ‘dahdi’ but you don’t have any hardware, I suggest you fix these first.

1 Like

SOLVED

OMG thanks ! You are great… I don’t get how that would do that. I disabled every module that was under the commercial license. I can now do apply config and no errors.

You are a savior thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.