Manager authentication failed. Check credentials!

  1. 12 years ago

    Hi everyone!

    I'm having an error while installing fop2 via yum install fop2 procedure.

    I have an elastix distro and everything works fine, until run "/usr/local/fop2/fop2_server --test" command.

    It looks like this:

    /usr/local/fop2/fop2_server --test
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "es_ES.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Flash Operator Panel 2 - Valid License (7)
    Manager authentication failed. Check credentials!

    This are my files:

    /etc/asterisk/fop2/fop2.cfg
    [general]
    ; AMI definitions
    manager_host=localhost
    manager_port=5038
    manager_user=admin
    #exec amipasswd.sh
    ;event_mask=agent,call,command,system,user,dialplan
    [more]

    /etc/asterisk/manager.conf

    ;
    ; AMI - Asterisk Manager interface
    ;
    ; 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 = Mysecret
    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
    write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

    #include manager_additional.conf
    #include manager_custom.conf

    /var/log/asterisk/full
    [Nov 26 18:47:07] NOTICE[23556] manager.c: 127.0.0.1 failed to authenticate as 'admin'

    I've been reading about the "password" I must configure on the files above, but they use an "exec" line recovering my configured password.

    I'm really lost on this one. I could use some help.

    Thank you very much for reading.

    Regards

    Joe

  2. admin

    30 Nov 2012 Administrator

    Hi Joe,

    Elastix saves the ami password escaping some characters and breaking the authentication when those characters are used in the password itself. The solution is to modify fop2.cfg and enter the password manually

    remove the line

    #exec amipasswd.sh

    and change it to

    manager_secret=your_password

    If you do not know the ami password, you can check it out in /etc/elastix.conf

    Best regards,

  3. 11 years ago

    Nicolás,

    It worked perfectly!

    Thank you.

    Joe

  4. I am having the same problem

    root@as4 js]# /usr/local/fop2/fop2_server --text -c /etc/asterisk/fop2
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Unknown option: text
    Flash Operator Panel 2 - White Label Version.

    Can't listen to port 4445

    can you help please

  5. admin

    1 Jul 2013 Administrator

    To test the command is "--test", not "--text"

    If the manager credentials are wrong, the solution is to *fix them*, I cannot help you much more, it is simple, put the correct credentials and be sure the manager in *asterisk* is enabled and working.

or Sign Up to reply!