Login Failed to Asterisk (bad auth)
FreePBX 13.0.153
Asterisk 13.9.1
New FreePBX install. Installation was smooth except for HTTPS creating self sign. Other than that everything was configured with default setting.
I install FOP2 and when I did the test /usr/local/fop2/fop2_server --test
I got an error message:
Failed to connect to asterisk - localhost:5038
Error Message: Login Failed to Asterisk (bad auth) at localhost:5038. Check your manager credentials!
The asterisk manager username is admin but the default password is not amp111. It was automatically populated with 16 character password.
I modify fop2.cfg and replace the secret with the 16 character password. Still the same error.
help - What should I do next.
Asterisk 13.9.1
New FreePBX install. Installation was smooth except for HTTPS creating self sign. Other than that everything was configured with default setting.
I install FOP2 and when I did the test /usr/local/fop2/fop2_server --test
I got an error message:
Failed to connect to asterisk - localhost:5038
Error Message: Login Failed to Asterisk (bad auth) at localhost:5038. Check your manager credentials!
The asterisk manager username is admin but the default password is not amp111. It was automatically populated with 16 character password.
I modify fop2.cfg and replace the secret with the 16 character password. Still the same error.
help - What should I do next.
Comments
After u changes secret manager pls run command
asterisk -rx "manager reload"
Then restart fop2
service fop2 restart
Thanks
[root@pbx2 ~]# asterisk -rx "manager reload"
[root@pbx2 ~]# service fop2 restart
Shutting down Flash Operator Panel 2: [FAILED]
Starting Flash Operator Panel 2: [ OK ]
[root@pbx2 ~]# /usr/local/fop2/fop2_server --test
Flash Operator Panel 2 - License file fop2.lic not found.
Running in Demo Mode
Failed to connect to asterisk - localhost:5038
Error Message: Login Failed to Asterisk (bad auth) at localhost:5038. Check your manager credentials!
The only place I changed the secret manager is under /usr/src/fop2/server/fop2.cfg
[general]
; AMI definitions
manager_host=localhost
manager_port=5038
manager_user=admin
manager_secret=0xxxxxxxxxxxxxxxxxxxxxxxxxxxxx5
;event_mask=agent,call,command,system,user,dialplan
Restart fop2 then it works. Thanks