Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. FOP2 not logging in

FOP2 not logging in

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 67 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    shimbob
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      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,

      1 Reply Last reply
      0
      • S
        S
        shimbob
        wrote on last edited by
        #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"

        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          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,

          1 Reply Last reply
          0
          • S
            S
            shimbob
            wrote on last edited by
            #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.

            1 Reply Last reply
            0
            • N
              N
              nicolas
              wrote on last edited by
              #6

              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..

              1 Reply Last reply
              0
              • S
                S
                shimbob
                wrote on last edited by
                #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.

                1 Reply Last reply
                0
                • N
                  N
                  nicolas
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups