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. Service stops for no reason (fixed)

Service stops for no reason (fixed)

Scheduled Pinned Locked Moved Support
13 Posts 2 Posters 362 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.
  • N
    N
    nicolas
    wrote on last edited by
    #4

    You cannot start it because it is already running or you have another application binding to port 4445, but that happens just after starting, it is not a crash after working for some time.

    Do you have fop1 running? Stop it and disable it, or change its listenting port so fop2 can bind to 4445.

    netstat -lnp | grep 444

    If you see 4445 taken by perl, then it is fop1, stop it:

    /usr/sbin/amportal stop_fop

    disable it editing /etc/amportal.conf and set FOPRUN=false

    or better yet, if you have a recent FreePBX, uninstall the FOP Framework.

    1 Reply Last reply
    0
    • J
      J
      jrecho
      wrote on last edited by
      #5

      I have been using this for years they are not set to the same port and when it crashes it does not allow
      Us to login yet it is already running I wi remove foo1 but that was set to a different port many years
      Ago when we bought fip2. You also seem to have new version should we aprudade

      Thanks for the help

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

        If you upgraded FreePBX or some of its modules FOP1 will be back to the default port unless you disable it, or change its port back. I recommend to disable it to avoid having issues if you upgrade or install some new freepbx version again.

        You might want to upgrade to the latest fop2 version as it works with the latest browsers using websockets, and it also has some new features, but you can continue using your version if you are happy with it.

        1 Reply Last reply
        0
        • J
          J
          jrecho
          wrote on last edited by
          #7

          it won't let me stop it but I did set it to sales
          [trixbox1.localdomain fop2]# netstat -lnp | grep 444
          tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 32230/perl
          [trixbox1.localdomain fop2]# service fop2 stop
          Shutting down Flash Operator Panel 2: [FAILED]
          [trixbox1.localdomain fop2]#

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

            You have to stop FOP1, NOT FOP2.

            /usr/sbin/amportal stop_fop

            edit /etc/amportal.conf and set

            FOPRUN=false

            Then start fop2

            service fop2 start

            And if you can , uninstall the fop framework from freepbx using the module manager to avoid issues on your next freepbx upgrade.

            1 Reply Last reply
            0
            • J
              J
              jrecho
              wrote on last edited by
              #9

              I did that and I gave thou the error I got

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

                contact me via the live help, you are not following the instructions correctly. The problem is REALLY simple, you have to stop whatever you have listening in port 4445, after that fop2 will work.

                I am on the live help, this post is of no use because I already told you what to do , and it seems you are missing a command at some point.

                1 Reply Last reply
                0
                • J
                  J
                  jrecho
                  wrote on last edited by
                  #11

                  AS i said the service works fine for a while then we no longer can login to FOP2. When we try to restart the service it tell sme that the port is already in use when i try to stop the service it won't stop. I did try you on chat but you were off line before will try you tomorow

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

                    If you say the service stops, I understand is because fop2_server is not running. So if you cannot login, check if its running with the command

                    pgrep fop2

                    If that command returns empty, then it is in fact not running. But if it is not running, you should not get the "Cannot listen to port 4445"

                    If the service is stopped, then do what I typed in the 1st reply EXACTLY to start fop2 and capturing output, so you can catch the error.

                    Again, I am on the live help if you still cannot follow the directions I wrote.

                    Best regards,

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

                      To avoid other people hijacking this post, and give a response to the "NO REASON" of the subject.

                      The REASON was that this user configuration involved multiple server monitoring (something he never stated in the post), and a firewall was set by him to prevent connections to the AMI port from the fop2 server to that 2nd server he had configured in fop2.cfg

                      So the NO REASON was actually someone that changed firewall rules and breaking his setup.

                      Doing exactly the commands I stated on the FIRST reply on this post via live help, the error popped out really clearly and was easily fixed then.

                      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