Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Advanced troubleshooting database broken after recent update

  • database broken after recent update

    Posted by stevenkay-ukprotonmail-com on May 2, 2018 at 10:56

    Hi All, I’m in a pickle now after the recent update. I get this error:

    SQL error: Table ‘pandora.tagent_secondary_group’ doesn’t exist (‘SELECT DISTINCT count(DISTINCT id_agente) as total_agents FROM tagente LEFT JOIN tagent_secondary_group ON tagent_secondary_group.id_agent=tagente.id_agente WHERE tagent_secondary_group.id_group IN (“12”, “8”, “4”, “9”, “2”, “10”, “13”, “11”) OR `id_grupo` IN (“12”, “8”, “4”, “9”, “2”, “10”, “13”, “11”) AND 1 = 1 AND ( 1 = 1) AND disabled = 0 ‘) in /var/www/html/pandora_console/include/db/mysql.php on line 93.
    The latest version of package installed is:

    180430

    If you can help I’d be very thankful!

    fraguas replied 6 years ago 6 Members · 7 Replies
  • 7 Replies
  • mkconsulting

    Member
    May 8, 2018 at 23:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I have the same issue. What Minor Release are you on? Mine is on MR 2. I have tried manually applying the updates and the file just have errors.

  • mkconsulting

    Member
    May 9, 2018 at 00:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Found that the 14.sql file is the one that creates the tagent_secondary_group table. Even though the files have errors when I apply them I did them all anyways and now my console works properly.

  • djungle

    Member
    June 27, 2018 at 18:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I also get this error and it’s messing with the console display. I upgraded the 7.0NG Windows version from 719 to 724 using the update option in the installer. The upgrade went through without errors but when viewing the console, the database error message precedes most of the screen graphics.

    I don’t have access to any separate install files. Any fix?

  • vic

    Administrator
    June 28, 2018 at 16:38
    1516 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi all,

    You need to insert the MRs from the folder /var/www/html/pandora_console/extras/mr/X.sql (Insert it in order).

    cat X.sql | mysql -u root -p

    Then move these files (X.sql) to the folder /var/www/html/pandora_console/extras/mr/updated

    Lastly ejecute this command to modify the footer of the console.

    update tconfig set value=17 where token=’MR’;

    Best regards,
    vic.

  • djungle

    Member
    July 4, 2018 at 22:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Is there an equivalent set of commands for Windows setup?

    thx Don

  • bartvanleeuwen

    Member
    July 4, 2018 at 23:37
    1 Karma
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Tried this,
    still ‘all systems down’

    Thx Bart

  • fraguas

    Member
    November 2, 2018 at 17:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello djungle , annomatik , bartvanleeuwen:

    Remember that if you apply the MR , they must be in sequential order , that is, first 1.sql,2.sql..until arriving at the last one, since if for example, we pass a mr 15 before the mr 10 , possibly it will give us failure sql.

    Anyway, I would like you to send me the server log, to see what may be causing your problems. Also you can make in the terminal a “”pandora_server -h””, and see if it throws some error.

    I’m waiting for your answers.

    Cordial greetings, and excuse the inconvenience,

    Fraguas