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. Can not login to FOP2 Panel after server restart

Can not login to FOP2 Panel after server restart

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 787 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.
  • K
    K
    kiziuk
    wrote on last edited by
    #1

    Hallo,
    we are building a new small call-center based on FreePBX. I've been looking for convenient WebUI panel for it and FOP2 looks great for our needs - so we decided to give it a try (I have demo mode installed on my test server).
    I can see following issue. I can normally login to both the Manager and Agent panels.
    However, if I reboot FreePBX server, I can not login to the Agent panel (it says "Invalid credentials").
    But if I log in to Manager panel first and choose to reload panel, I can then successfully login to Agent panel. Therefore, in case of server restart due to maintenance, power loss, etc. there is manual intervention needed to allow agents to work again.
    I have looked through the forum but I haven't found a similar issue.
    I'm using FOP2 version 2.31.27 on FreePBX 15.0.16.49 (on stable distro 12.7.6-2002-2.sng7).
    Any hint will be much appreciated.

    1 Reply Last reply
    0
    • K
      K
      kiziuk
      wrote on last edited by
      #2

      No idea?

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

        I found out through trial and error that after a server restart, you manually need to restart the FOP2 panel service via the FOP2 Panel Manager before FOP2 can be logged into. The URL is http://FreePBXIP/fop2/admin/ (change the FreePBXIP to your pbx IP address). There is a lightning bolt icon at the top, click it and click to restart the panel manager.

        1 Reply Last reply
        0
        • K
          K
          kiziuk
          wrote on last edited by
          #4

          Yes, I came to the same conclusion and had to write a script to reload FOP2 server service after the system is booted up.
          But even if I consider this thing workarounded, it shouldn't be like this in the first place.

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

            Hi,
            Problem might be related to FOP2 being started before mariadb/asterisk. I am attaching a quick and dirty modification to the init file that will wait for the asterisk process to be up. If you want to try it out, copy it over as /etc/rc.d/init.d/fop2 replacing the original one (note that I have to use extension .txt in order to attach the file, but the init itself has no extension, so rename the file or copy it over.

            Please try it out and if it fixes the issue let me know so I can updated it.. or perhaps in the next few days I will try to write a proper systemd unit file targeted for the FreePBX distro.

            1 Reply Last reply
            0
            • K
              K
              kiziuk
              wrote on last edited by
              #6

              Hi Nicolas,
              I replaced /etc/rc.d/init.d/fop2 script with provided one on my test machine. It seems the issue was solved.
              Therefore, having a proper systemd script would be very nice 🙂

              1 Reply Last reply
              0
              • K
                K
                kiziuk
                wrote on last edited by
                #7

                Just to note that I've recently put a new FOP2 installation. Looks like the issue still exists and the same hack needs to be put into action. How about the systemd unit file?

                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