I’m having an issue with fwconsole starting asterisk in that it won’t. I can start it with systemd
I’ve tried to make sure all my modules are good I’m using asterisk 16.18.0
[root@server1 ~]# fwconsole start --skipchown --verbose
Running NL startup…
Starting Asterisk…
[--------------->------------] 31 secs
In Start.class.php line 193:
[Exception]
Unable to connect to Asterisk. Did it start?
Exception trace:
() at /var/www/html/admin/libraries/Console/Start.class.php:193
FreePBX\Console\Command\Start->startAsterisk() at /var/www/html/admin/libraries/Console/Start.class.php:131
FreePBX\Console\Command\Start->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:960
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
Your manager.conf file should look like this, with the only difference being that your password will match what fwconsole is reporting. Ignore the default settings that fwconsole shows:
# cat /etc/asterisk/manager.conf
;
; AMI - Asterisk Manager interface - Generated at 2020-07-15T15:03:34+00:00
;
; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need
; to assure that this can't be reached from un-authorized hosts with the ACL settings (permit/deny).
; Also, remember to configure non-default port or IP-addresses in amportal.conf.
;
; The AMI connection is used both by the portal and the operator's panel in FreePBX.
;
; FreePBX assumes an AMI connection to localhost:5038 by default.
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no ;only effects 1.6+
[admin]
secret = <redacted>
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
writetimeout = 5000
#include manager_additional.conf
#include manager_custom.conf
i believe i had to fix the AMP User manually in the sql…
THIS MAY BREAK YOUR SYSTEM, AND I DO NOT ACCEPT RESPONSIBILITY IF IT DOES SO.
but yeah. on one of my installs, the “config files” did not have the same password as the database itself did.
for me, it was the below in command line.
again, your mileage may vary, and Dont do this if you dont understand it. (replace REDACTED with what you think your admin password should be)
mysql show databases; connect asterisk;' select * from ampusers; update ampusers set password_sha1 = SHA1('REDACTED') where username='admin';