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 Update DB Pandora FMS v5.1SP2 to Pandora FMS v6.0SP3

  • Update DB Pandora FMS v5.1SP2 to Pandora FMS v6.0SP3

    Posted by willian-medeiros on November 4, 2016 at 22:54

    Hello,

    When i exec SQL to Update DB “pandoradb_migrate_5.1_to_6.0.mysql.sql”

    I receive this error: ERROR 1048 (23000) at line 28: Column ‘id_policy_module’ cannot be null

    antonio replied 8 years ago 2 Members · 5 Replies
  • 5 Replies
  • antonio

    Member
    November 21, 2016 at 18:56
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello William,

    Can you paste here the command you are using? What is your current version?

    Kind regards,
    Antonio.

  • willian-medeiros

    Member
    November 23, 2016 at 15:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    Command: cat pandoradb_migrate_5.1_to_6.0.mysql.sql | mysql -uroot -p -D pandora

    Version: Pandora FMS v5.1SP2
    New Version:  Pandora FMS v6.0SP3

  • antonio

    Member
    December 12, 2016 at 14:24
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    We need more details about your setup. What is the distribution you are using? Is it an appliance ISO installation or manual installation? What is your MySQL version?

    Regards,
    Antonio.

  • willian-medeiros

    Member
    January 5, 2017 at 16:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    SO: CentOS Linux release 7.2.1511 (Core)
    MySQL: mysql-community-server-5.6.34-2.el7.x86_64

    Manual installation

  • antonio

    Member
    January 9, 2017 at 14:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello William,

    It looks like some line of the pandoradb_migrate is incorrect. What is the console version you installed to get it? I would suggest you to manually update your console with rpm -Uvh with the packages you can find here: https://sourceforge.net/projects/pandora/files/Pandora%20FMS%206.0/SP4Final/RHEL_CentOS/
    And then try to apply the database update.

    Is your environment a new fresh installation or are you updating from an older installation that has already data on it?

    Kind regards,
    Antonio.