"Can not connect to asterisk"

Hello, new user to freePBX / Asterisk.

Install on Ubuntu 18.04.2 - all packages up to date

I went through the forum / google to find the iseu and I guess it is a very little miss.
I can login to freepbx console and have the top right red banner “can not connect to asterisk”

1 - Check, Asterisk is running ( checked as well with asterisk “asterisk -rvvv” ) → ok
2 - All ports are open ( no fw / iptables enabled )

In freebpx.log , I have
[2019-Apr-08 08:31:02] [CRITICAL] (admin/bootstrap.php:260) - Connection attmempt to AMI failed

searched for a related message in the forum :

But I did not changed any password, so do not seem applicable.

fwconsole restart --verbose

Thanks for your reply
here is the message I get :

Running FreePBX shutdown…

Stopping Chat Server
Stopped Chat Server

In php-asmanager.php line 489:

[Whoops\Exception\ErrorException (2)]
fclose(): 110 is not a valid stream resource

Exception trace:
() at /var/www/html/admin/libraries/php-asmanager.php:489
Whoops\Run->handleError() at n/a:n/a
fclose() at /var/www/html/admin/libraries/php-asmanager.php:489
AGI_AsteriskManager->disconnect() at /var/www/html/admin/libraries/Console/Stop.class.php:113
FreePBX\Console\Command\Stop->execute() at /var/www/html/admin/libraries/Console/Restart.class.php:32
FreePBX\Console\Command\Restart->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:953
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:248
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:138

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