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. ERROR ... line 17: [: too many arguments

ERROR ... line 17: [: too many arguments

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 231 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.
  • P
    P
    panikovskij
    wrote on last edited by
    #1

    Hello,
    I tried to install demo of the fop2 (2.27-centos-i386, Asterisk 11.6.0, FreePBX 2.11.0.14). After installation, configuring of /usr/local/fop2/fop2.cfg , /etc/asterisk/manager.conf and execute of

    #> /usr/local/fop2/fop2_server --test
    

    I received following error message:

    # /usr/local/fop2/fop2_server --test
    Flash Operator Panel 2 - License file fop2.lic not found.
    Running in Demo Mode
    /usr/local/fop2/autoconfig-buttons-freepbx.sh: line 17: [: too many arguments
    Connection to manager OK!
    

    I'm not able to connect to fop2-panel at http://mydomain/fop2 and the "FOP2"-line did not appear in the FreePBX menu "Reports".

    What may be a reason of this error?

    Thanks in advance for your support.

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

      The reason for the error is that the autoconfig script included in fop2 tries to determine the FreePBX version number, and the latest FreePBX version includes a duplicate line in their xml info page. The error is a problem , but it does not prevent fop2 from working. You can fix it by changing line 15 of /usr/local/fop2/autoconfig-buttons-freepbx.sh from this:

      AMPVERSION=`cat $AMPDIR | grep "<version>" | sed -e 's/<[^>]*>//g' | cut -d\. -f 1,2 | sed 's/\s//g' | sed 's/\.//g'`
      

      to this:

      AMPVERSION=`cat $AMPDIR | grep "<version>" | head -n 1 | sed -e 's/<[^>]*>//g' | cut -d\. -f 1,2 | sed 's/\s//g' | sed 's/\.//g'`
      

      If you want to see a FOP2 menu in freePBX, you also need to install the fop2admin manager module, you can download version 1.2.15 from http://www.fop2.com/download.php, here you have instructions to install it (just upload it via module admin):

      http://www.fop2.com/documentation-insta ... module.php

      And finally, be sure fop2 is started. In the server, run this to start it:

      service fop2 start
      

      wait a while and then check that is running with the following command (that must return a number):

      pgrep fop2
      

      If it returns a number, then fop2 is running so you might want to try to log in with your browser.

      Best regards,

      1 Reply Last reply
      0
      • P
        P
        panikovskij
        wrote on last edited by
        #3

        Thank you very much! I'll try it right now. 🙂

        1 Reply Last reply
        0
        • P
          P
          panikovskij
          wrote on last edited by
          #4

          FOP2 installed and everything is OK. Thanks again!

          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