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 startup problem

fop2 startup problem

Scheduled Pinned Locked Moved Support
9 Posts 2 Posters 95 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.
  • C
    C
    conduitguy
    wrote on last edited by
    #1

    Well, I seem to have messed things up pretty good this time.

    I muddled my way through installing fop2 and had it basically working (phonebook error, but I see there are instructions for that). I THINK my troubles started when I installed fop2admin. Now when I try starting fop2_server I get the following:

    Modification of non-creatable array value attempted, subscript -1 at script/fop2_server.pl line 1505, <CONFIG> line 5.

    I have been poking around and trying different configuration changes, but it still won't start. At this point, I have diasbled fop2admin in freepbx and I'm kind of lost here.

    Any insight would be appreciated.

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

      Run the autoconfig-users-freepbx.sh and autoconfig-buttons-freepbx.sh script and look for errors when doing so. That might give us a hint on what is wrong.

      1 Reply Last reply
      0
      • C
        C
        conduitguy
        wrote on last edited by
        #3

        I'm not sure if there's a log file I'm missing, but there doesn't appear to be any kind of error, or I don't see it. Here's what I have:

        [root@asterisk fop2]# /usr/local/fop2/fop2_server
        Modification of non-creatable array value attempted, subscript -1 at script/fop2_server.pl line 1505, <CONFIG> line 5.

        [root@asterisk fop2]# /usr/local/fop2/autoconfig-users-freepbx.sh
        group=Office:ZAP/1,ZAP/2,SIP/500,SIP/503,CONFERENCE/8000,SIP/callcentric,ZAP/15,ENUM/,PARK/default
        user=500:123:all:Office
        buttonfile=autobuttons.cfg

        [root@asterisk fop2]# /usr/local/fop2/autoconfig-buttons-freepbx.sh

        [CONFERENCE/8000]
        type=conference
        extension=8000
        label=general
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*

        [ZAP/1]
        type=extension
        extension=400
        label=Bobs Desk
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none
        group=Office

        [ZAP/2]
        type=extension
        extension=401
        label=Smurf
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none
        group=Office

        [ZAP/7]
        type=extension
        extension=409
        label=Spirit-Horse-Ext
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [ZAP/8]
        type=extension
        extension=410
        label=House Phone
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [IAX2/499]
        type=extension
        extension=499
        label=Wolcott Electric Fax
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/500]
        type=extension
        extension=500
        label=Snom-1
        mailbox=500@default
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*500@default
        privacy=none
        group=Office

        [SIP/501]
        type=extension
        extension=501
        label=Bobs Laptop
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/502]
        type=extension
        extension=502
        label=Bobs Desktop PC
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/503]
        type=extension
        extension=503
        label=BobMode Cordless
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none
        group=Office

        [SIP/504]
        type=extension
        extension=504
        label=SmurfModeCordless
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/510]
        type=extension
        extension=510
        label=Bobs Cell on Snom
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/511]
        type=extension
        extension=511
        label=Bobs Laptop for house num
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/512]
        type=extension
        extension=512
        label=Snom as house
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/513]
        type=extension
        extension=513
        label=Snom as Fax
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [SIP/514]
        type=extension
        extension=514
        label=Snom as Spirit Horse
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*
        privacy=none

        [PARK/default]
        type=park
        extension=70
        context=parkedcalls
        queuecontext=from-queue
        extenvoicemail=*

        [SIP/callcentric]
        type=trunk
        label=SIP/callcentric
        queuecontext=from-queue
        extenvoicemail=*

        [ZAP/15]
        type=trunk
        label=ZAP/15
        queuecontext=from-queue
        extenvoicemail=*

        [ZAP/16]
        type=trunk
        label=ZAP/16
        queuecontext=from-queue
        extenvoicemail=*

        [ZAP/17]
        type=trunk
        label=ZAP/17
        queuecontext=from-queue
        extenvoicemail=*

        [ZAP/18]
        type=trunk
        label=ZAP/18
        queuecontext=from-queue
        extenvoicemail=*

        [ENUM/]
        type=trunk
        label=ENUM/
        queuecontext=from-queue
        extenvoicemail=*

        [IAX2/demo]
        type=trunk
        label=IAX2/demo
        queuecontext=from-queue
        extenvoicemail=*

        [root@asterisk fop2]#

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

          Hello,

          I believe the problem is with the ENUM/ in the group definition. Try removing that group, or the enum button from it, and restart fop2.

          1 Reply Last reply
          0
          • C
            C
            conduitguy
            wrote on last edited by
            #5

            I don't seem to know how to do that. :oops:

            I even tried deleting the ENUM trunk and restarting Asterisk, but when I run /usr/local/fop2/autoconfig-buttons-freepbx.sh, it's still there. I looked at the various config files in /usr/local/fop2. What am I missing?

            I very much appreciate the help.

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

              Hello,

              You can do it from the web gui, go to tools, fop2 groups, and remove the group. Then go to users, and let your user with no groups assigned (so it can see all buttons). That should take care of it..

              1 Reply Last reply
              0
              • C
                C
                conduitguy
                wrote on last edited by
                #7

                I deleted the group. I even deleted the user and re-created it. I went in to buttons and removed any references to the deleted group. And I still have:

                [root@asterisk bobw]# /usr/local/fop2/fop2_server restart
                Modification of non-creatable array value attempted, subscript -1 at script/fop2_server.pl line 1505, <CONFIG> line 5.

                I'm afraid that in my trying to fix things before I posted my problem, I may have changed something I shouldn't have.
                For instance, in fop2.cfg, should I have buttonfile=buttons.cfg commented out? I've tried both ways.

                1 Reply Last reply
                0
                • C
                  C
                  conduitguy
                  wrote on last edited by
                  #8

                  Alright, I think I might have it. After my last post, I went back and reviewed some of the config files and found that at some point, thinking I was following directions in some tutorial or something, I changed manager_host=127.0.0.1 to manager_host=192.168.0.16 which is the asterisk server's IP address. So I changed it back and things started working.

                  The only strange thing was that when I issued the fop2_server restart command, I never got my cursor back.

                  Otherwise, it looks as if things are working now.

                  Thank you so much for your help!!

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

                    great you found the problem. Regarding the restart, the fop2_server binary is not an init script. If you run it from the command line without the -d option it will never return back. The init script is usually installed as /etc/rc.d/init.d/fop2 and its that script that accepts the start,stop,restart,reload commands.

                    Best regards

                    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