FOP2 not logging in

  1. 13 years ago

    I have a freshly installed FOP2 setup on a Centos5.6+Asterisk1.8.5.0+FreePBX2.7.0.10 but I cannot get the clients to log in.

    I've disabled FOP1 and the FOP2 servers starts up just fine with no noticeable error messages. But when I point a client browser to http://blah/fop2 and enter known extension credentials to log in, nothing happens and it prompts for credential again.

    Here's the output when running fop2_server -X 15 and attempting to connect several times from another machine:

    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xa685260)
    ** CLEAN SOCKET  flash client connection lost
    No flash clients connected
    
    192.168.1.104   => <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*" secure="false" to-ports="4445" />
    </cross-domain-policy>
    
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0x84ca090)
    ** CLEAN SOCKET  flash client connection lost
    No flash clients connected
    
    192.168.1.104   <= <msg data="GENERAL|contexto|1|" />
    192.168.1.104   => { "btn": "0", "cmd": "key", "data": "lcfgME5Me2vwcjyGW", "slot": "" }
    
    192.168.1.104   => { "btn": "0@GENERAL", "cmd": "version", "data": "2.21!!1", "slot": "" }
    
    192.168.1.104   <= <msg data="1|auth|102|7ee91cb5d3cc01e6e858150b50de47bd" />
    192.168.1.104   => { "btn": "0", "cmd": "incorrect", "data": "0", "slot": "" }
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xa68543c)
    ** CLEAN SOCKET  flash client connection lost
    No flash clients connected
    
    192.168.1.104   <= <msg data="GENERAL|contexto|1|" />
    192.168.1.104   => { "btn": "0", "cmd": "key", "data": "E5NqiQdHMOEbnCBLFD", "slot": "" }
    
    192.168.1.104   => { "btn": "0@GENERAL", "cmd": "version", "data": "2.21!!1", "slot": "" }
    
    192.168.1.104   <= <msg data="1|auth|102|eaf64aacb19a53dce9173091fa718b24" />
    192.168.1.104   => { "btn": "0", "cmd": "incorrect", "data": "0", "slot": "" }
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xa3f51a4)
    ** CLEAN SOCKET  flash client connection lost
    No flash clients connected
    
    192.168.1.104   <= <msg data="GENERAL|contexto|1|" />
    192.168.1.104   => { "btn": "0", "cmd": "key", "data": "IBXsbkzggRGv96OgDOvKpkdP4RoEk7l", "slot": "" }
    
    192.168.1.104   => { "btn": "0@GENERAL", "cmd": "version", "data": "2.21!!1", "slot": "" }
    
    192.168.1.104   <= <msg data="1|auth|102|2cdb2205ef72b1560d55603bd5ac3d2f" />
    192.168.1.104   => { "btn": "0", "cmd": "incorrect", "data": "0", "slot": "" }

    Any help/hints greatly appreciated!

  2. admin

    10 Aug 2011 Administrator

    Something *is* happening: Fop2 is rejecting the credentials you are sending, to see the list of available users and password, you can run:

    /usr/local/fop2/autoconfig-users-freepbx.sh

    look at the user=xxx lines

    You are not passing the correct credentials for 102.

    Best regards,

  3. Running autoconfig-users-freepbx.sh only returns a single line with buttonfile=autobuttons.cfg.

    If it's associated, I havent been able to install the freepbx module. The module admin will upload the module, but when I try to install it, it just sits there with the orange box saying "Please wait while module actions are performed"

  4. admin

    11 Aug 2011 Administrator

    What freepbx version are you using? If you do not have fop2admin installed, the autoconfiguration script will read your voicemail.conf file to add the users and passwords. If you do not have valid voicemail.conf entries the script will fail.

    Or perhaps you have a broken fop2admin install and instead of reading voicemail.conf it reads the fop2admin database that is probably empty. In that case you should uninstall fop2admin or remove the fop2admin tables from the asterisk database (all the fop2XXXXX tables, like fop2users, fop2buttons, etc).

    Best regards,

  5. This is Freepbx 2.7.0.10.
    I just tried nuking the database entries along with reinstalling the tarball to start over. No luck. The fop2admin module wont get installed. I do have a valid voicemail entry.

  6. admin

    12 Aug 2011 Administrator

    You might want to look at your server logs when you try to install the module. There are thousands of working installations, you should not be an exception.

    If you are still out of luck you can configure things manually, but you will have to work it out a little bit: If autoconfig-buttons-freepbx.sh does output some valid configs, you can create users manually in fop2.cfg and set buttonfile=autobuttons.cfg

    But I think it will be better to troubleshot your fop2admin problem, look at the apache error logs for clues..

  7. You're right, there are errors in the logs. Doh me for not checking first.
    Here's what /var/log/httpd/error_log reports when I try to install fop2admin module:

    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  500 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  501 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  502 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  503 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  504 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  500 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  501 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  502 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  503 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Notice:  Undefined offset:  504 in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 427, referer: http://miniliz/admin/config.php
    [Fri Aug 12 13:03:13 2011] [error] [client 192.168.1.9] PHP Fatal error:  Call to undefined function queues_list() in /var/www/html/admin/modules/fop2admin/functions.inc.php on line 1310, referer: http://miniliz/admin/config.php

    These numbers, 500 to 504, represent Ring Groups I have defined.

    A search for the queues_list function returns only one instance of it:

    [root@ddnpbx html]# find /var/www/html | xargs grep queues_list
    /var/www/html/admin/modules/fop2admin/functions.inc.php:        $results = queues_list(true);
    [root@ddnpbx html]#

    I installed the Queues module and now the fop2admin module installs! Hum, so you may want to put a note in the documentation that the Queues module must be installed to install fop2admin module. This particular system doesnt have Queues, nor does a stock install of AsteriskNow include the Queues module.

  8. admin

    12 Aug 2011 Administrator

    Perhaps I can update fop2admin so it does not use the queues_list function at all if it is not available. I will see what can I do.

or Sign Up to reply!