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 After upgrade 5.0 to 5.1 Error in scheduled downtime

  • After upgrade 5.0 to 5.1 Error in scheduled downtime

    Posted by EasyMan on July 10, 2014 at 12:08

    Hi,

    Someone else got this problem or a solution to the problem?

    When trying to add new scheduled downtime I get the following error message: “Not created. Error during data insertion. Start time is required to be higher than the current time.”

    Hope there is someone with a solution to my problem.

    Thanks in advance.

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

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

    Hi,

    Someone else got this problem or a solution to the problem?

    When trying to add new scheduled downtime I get the following error message: “Not created. Error during data insertion. Start time is required to be higher than the current time.”

    Hope there is someone with a solution to my problem.

    Thanks in advance.

    Hi,

    Found out this far, I’m not able to add new periodically down time. But if I go in and create a new scheduled downtime that occur once, I can then edit this one to be periodically.

    Suggestions?

    Thanks in advance!

  • ivo_yordanov

    Member
    July 11, 2014 at 18:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Have you executed the migrate scripts for the database schema?

    Regards
    Ivo

  • EasyMan

    Member
    July 11, 2014 at 19:43
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    Yes, all steps performed as in manual for upgrading. As I pointed out in my second post I can create new tasks that should be executed once, and then edit the to periodically. When I had a look at the code for creating scheduled tasks it seems, if I’m not wrong. That the If statement where I get this error is only used when creating periodically tasks. And it then seems as the start time is not fetched correct, but I will look in to this Monday, it seems odd I know.

    Regards

    Roland

  • ivo_yordanov

    Member
    July 14, 2014 at 15:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Can you set verbosity to 10 in the server configuration restart the server wait for a couple of minutes and send us a copy of the log file located in  /var/log/pandora/pandora_server.log

    Regards
    Ivo

  • EasyMan

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

    Hi,

    Just got your mail I arrange that if it’ still needed after the screendumps I have arranged with today. Sorry, but being new here where do you want me to send it, or do I post the server log here to?

    One for showing what changes I done in the PHP code, one for error and one for success. Theres seems to be a datetime issue in the periodically.

    Best regards

    Roland

  • EasyMan

    Member
    August 27, 2014 at 13:53
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Found what was wrong in the php code and did an adjustment. The IF statement didn’t consider if it was ‘once’ or ‘periodically’ when creating new scheduled downtime, so it assumed it was ‘once’ and in that case ‘$datetime_from’ was not changed.