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 Error on starting pandorafms after 5.0 to 5.1 update

  • Error on starting pandorafms after 5.0 to 5.1 update

    Posted by Jatii on July 3, 2014 at 13:12

    Hello!

    I am getting error below when starting pandora_server. Running pandora_server.conf gives:

    DBD::mysql::db do failed: Unknown column ‘ff_start_utimestamp’ in ‘field list’ at /usr/lib/perl5/PandoraFMS/DB.pm line 811.

    Does anyone know the solution for this?

    Mario replied 10 years, 6 months ago 2 Members · 4 Replies
  • 4 Replies
  • Jatii

    Member
    July 3, 2014 at 16:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello!

    Had to manually create ff_start_utimestamp and then run the migration script again. Now pandora works but I still have a problem with recon scripts. Running recon migration script gives an error of missing ‘macro’s column. Could someone Post updated verision of database table schema for find missing columns.

    One version (not up to date?) can be found from

    http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:PandoraFMS_Engineering#Pandora_FMS_Database_Design

    Thank you

  • Mario

    Administrator
    July 3, 2014 at 17:42
    1150 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi

    Have you followed these steps?

    http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Anexo_Upgrade#Upgrading_the_Database_Schemata_.28Major_Versions_only.29

    wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Anexo_Upgrade#Updating_from_Version_5.0_to_5.1

  • Jatii

    Member
    July 4, 2014 at 09:25
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi!

    Yes I followed the instructions but currently, how ever running “/usr/share/pandora_server/util/pandora_migrate_recon_scripts.pl ”  Gave an error about missing about missing ‘macros’ column in the database.

    I managed to fix the problem by examining the migrate_recon_scripts.pl and finding out that the missing column was in trecon_script table. I created the column manually on mysql console and after that I was able to run the migration script. Now everything works and I can create recon tasks again.

    Seems that the migration scripts wont work if some of the columns are missing. Maybe modifying the scripts to create the columns automatically if not found would have solved the problem. I don’t have any idea why those columns were missing. Main thing is that everything is up and running again!

    Thanks for all the readers and Mario’s reply

  • Mario

    Administrator
    July 4, 2014 at 11:08
    1150 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    OK

    The truth is that it is very strange, the field is in the migration script …

    ./extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql:ALTER TABLE `tagente_estado` ADD COLUMN `ff_start_utimestamp` bigint(20) default 0;