FOP2 configuration

  1. 9 years ago

    I removed one tenant from the PBX but FOP keep on displaying this tenant (This tenant is no longer in the organization DB).
    This cause that selecting other tenant (2nd one) to display all parameters of the 3rd tenant.

    1. from where (exact file) the FOP reading the tenants?
    2. Can I, from this file, specify which tenant I want the fop to read/use (This till the tenant context configuration will be ready)
    3. How do I flush all fop information so it will be read again?

    log file show that fop is reading and using the deleted tenant context.

  2. admin

    24 Nov 2015 Administrator

    Hi,

    Tenant populate functions vary from backend to backend, what is the one you are using? Look at the functions-BACKEND.php in the /var/www/html/fop2/admin for the first function... that is the one that populates the tenant tables in FOP2. Perhaps they need adjusting to account for tenant removals, but it will depend on each backend in different ways.

    If you want to flush tenant config, you can try by truncating the fop2contexts table in mysql.

    The latest fop2 manager I am working on already has the option to enable/disable tenants. I have just updated fop2manager-1.1.0.tgz in the download section that includes that config page.

  3. deleted all from fop2contexts table and all configured tenants are being displayed.
    The problem is that I have no buttons nor users.
    Recreate users add nothing.
    debug log display-

    ** Executing config script /usr/local/fop2/autoconfig-buttons.sh mydmain.com

    ERROR 1052 (23000) at line 1: Column 'exclude' in where clause is ambiguous
    ** Done executing script /usr/local/fop2/autoconfig-buttons.sh mydomain.com of type buttons

  4. Edited 9 years ago by sbasan

    Also, on another two systems I've upgraded the fop manager from 1.0.8 and although I see all buttons in the manager, the user logged in see nothing.
    from the debug log - Same error as above.
    and "Flash Operator Panel 2 - Time limited version - Expires Fri Oct 23 12:59:58 2015" - I bought the license so why it's time limited and expires?

    In addition the chrome plugin is not display the extensions.
    It looks like some problem with the new manager version?
    Should I downgrade back to 1.0.8?

  5. 8 years ago

    admin

    30 Nov 2015 Administrator

    What is the output from

    /usr/local/fop2/fop2_server --test

    ?

    My guess is that you have a fop2_server version that is not matching the version on your license file. (that is unrelated to the fop2 manager).

  6. Edited 8 years ago by sbasan

    The result:
    Flash Operator Panel 2 - License file fop2.lic not found.
    Running in Demo Mode
    Connection to manager OK!

    As for all the systems that I've see no buttons the change in autoconfig-buttons.sh with the exclude made them appear again, but for those system I've seen the number of buttons in the admin panel.

    For one system, where you suggested to delete the fop2context from the mysql:

    1. From the admin panel I can see 0 buttons.
    2. Can't recreate users (Got 0 user added)

    FOP2 Server Status: OK - Version: 2.30.02

  7. admin

    2 Dec 2015 Administrator

    Ok, maybe you are mixing servers/questions on the same topic and becomes confusing. If you do not have a fop2.lic file, you won't ever see a message like "Time limited version - Expires Fri Oct 23 12:59:58 2015".

    So, that is my first confusion.

    As for the manager displaying no buttons, I made some changes for multi tenant selection, in order to enable/disable which contexts have access to FOP2. This change might have broken some systems, but it is not that hard to fix, not sure if Elastix MT was affected or not.. I have some success reports, so I am unsure if your issue has to do with those changes.

    If you can catch me on the live help I will be able to review your functions and see, if you want to do it yourself, you can enable DEBUG in config.php and look for warnings or similar.

or Sign Up to reply!