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. Starting the FOP2 Process - Error

Starting the FOP2 Process - Error

Scheduled Pinned Locked Moved Support
11 Posts 2 Posters 462 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.
  • A
    A
    arainero
    wrote on last edited by
    #1

    Hello,

    I had FOP2 setup on my clients PBX for over a month with no problems. My client notified me the other day that they can't log into FOP2. I tried to restart FOP2 and I was given this error message:

    root@pbx:~ $ service fop2 restart
    Shutting down Flash Operator Panel 2:                      [FAILED]
    Starting Flash Operator Panel 2: XSLoader.pm did not return a true value at -e line 344.
                                                               [FAILED]
    

    Do you know what is causing this and how to correct it? My client does not have root access so I know they didn't change anything.

    Thanks,

    -Alonzo

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

      Hi,

      Try removing the /tmp/par-root directory and try starting fop2 again:

      rm -rf /tmp/par-root
      service fop2 start
      
      1 Reply Last reply
      0
      • A
        A
        arainero
        wrote on last edited by
        #3

        That seems to let FOP2 start now. However, when I try to do:

        root@pbx:~ $ service fop2 restart
        Shutting down Flash Operator Panel 2:                      [FAILED]
        Starting Flash Operator Panel 2:                           [  OK  ]
        

        Shutting down FOP2 now fails. Also, when I try to log into FOP2 when it is running I am stuck at "Connecting to server, attempt number : 'X' "

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

          Perhaps you cannot stop it becuase it is not running, and perhaps it is not running because when you start it FOP1 is already running binding to port 4445 and then makes fop2 shut down.

          Try this:

          netstat -lnp | grep 444
          

          What is the output?

          1 Reply Last reply
          0
          • A
            A
            arainero
            wrote on last edited by
            #5
            root@pbx:~ $ netstat -lnp | grep 444 tcp        0      0 0.0.0.0:4445                0.0.0.0:*                   LISTEN 2085/perl
            
            1 Reply Last reply
            0
            • N
              N
              nicolas
              wrote on last edited by
              #6

              As I have guessed, you have FOP1 running. You must stop it in order to let FOP2 run. To stop it run

              amportal stop_fop
              

              To disable it, edit /etc/amportal.conf and set

              FOPRUN=false
              

              Also, be sure you do not have a line like amportal start_fop in /etc/rc.d/rc.local, if you do, remove it.

              After stopping FOP1 you will be able to start FOP2 normally:

              service fop2 start
              

              And check after 10 seconds or so that it is still running

              pgrep fop2
              

              Best regards,

              1 Reply Last reply
              0
              • A
                A
                arainero
                wrote on last edited by
                #7

                I had the FOP framework disabled in Module Admin. I thought that would stop FOP from running. I guess I was wrong. I don't know why everything worked as of recently? Do you have any idea why that may be so?

                Thanks for the help!

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

                  Perhaps something was updated via yum re-enabling FOP1, and upon the next reboot, FOP1 won the race by being started first.

                  1 Reply Last reply
                  0
                  • A
                    A
                    arainero
                    wrote on last edited by
                    #9

                    Hmm, this is odd. I made the change to amportal.conf as you suggest and when I do a 'amportal restart' I see that FOP is started up again and causes problems with FOP2.

                    Is there another way to disable FOP so when the server is restarted or the amportal restart command is issued there wont be a problem?

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

                      I have never seen the problems you are having. The drastic way is to edit /var/www/html/panel/op_server.pl and put on line 2:

                      exit;

                      Do the same to this file:

                      /var/www/html/panel/safe_opserver

                      Be sure to modify the correct amportal.conf file or search for other FOP parameters there might be. Anyways, the above change will just exit

                      1 Reply Last reply
                      0
                      • A
                        A
                        arainero
                        wrote on last edited by
                        #11

                        The reason why that kept happening is because the amportal.conf file was be regenerated. If I made changes directly to amportal.conf they would be discarded the next time the file was recreated. I believe I solved my problem by uninstalling FOP (not disabling) from Module Admin and rebooting the server. I did a fop2 restart and everything seems to be working now.

                        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