Connecting to localhost:5038 (Server 0) failed

  1. 14 years ago

    Hi,
    I made an installation of fop2, the service start, the test pass /usr/local/fop2/fop2_server --test
    Flash Operator Panel 2 - No valid license found. Demo Mode
    Connection to manager OK!
    But when I try to login via web doesn't work (Could not connect to server)
    If I start the fop in debug mode I see MANAGER CONNECTION Connecting to localhost:5038 (Server 0) failed.
    fop2.cfg
    [general]
    ; AMI definitions
    manager_host=127.0.0.1
    manager_port=5038
    manager_user=admin
    manager_secret=amp111
    ;event_mask=call,agent

    manager.conf
    ;
    [general]
    enabled = yes
    port = 5038
    bindaddr = 127.0.0.1

    [admin]
    secret = amp111
    deny=0.0.0.0/0.0.0.0
    permit=127.0.0.1/255.255.255.0
    permit=172.23.1.50/255.255.255.255
    read = all,system,call,log,verbose,command,agent,user,originate
    write = all,system,call,log,verbose,command,agent,user,originate

    I Made the same config on another sercer and all works great.
    What can I check?
    thanks

  2. admin

    27 Aug 2010 Administrator

    That you cannot connect via web it does not mean that the server can connect to the manager or not. Fop2 uses port 4445 for web client connections, if you see attempts to connect to the server count and fail, then you have problems connecting to port 4445, either because it is blocked, you do not have the flash player installed or fop2_server is not running.

    Regarding the issue about connecting to the manager, on some machines localhost is not pointed to 127.0.0.1, so you might want to change the host in fop2.cfg to the ip address.

    However, as I said, it is not going to fix your client connection problems. If you are still running FOP(1), it uses port 4445 by default and you should change fop port to something else editing /var/www/html/panel/op_server.cfg or disable fop1 so you can safely start fop2.

    Best regards,

  3. Thanks for the reply,
    the fop1 service is stoped.
    If I make the following command "netstat -anp | grep 4445" the output is:
    tcp 0 0 0.0.0.0:4445 0.0.0.0:* LIST EN 13499/fop2_server

    in the fop.cfg i wrote manager_host=127.0.0.1

    Is not a browser plugin problem because I insalled the fop2 in the exactly same mode on another asterisk and it work.

    Other ideas?

  4. Ah I foud the problem, it was the firewall that deny the port 4445.
    Thanks

or Sign Up to reply!