License was not automatically updated in Plesk: KeyUpdate Result code: 2 Network failure

Follow

Comments

4 comments

  • Avatar
    B Pfleging

    The expression as explained in Option 1 seems to be the easiest solution. Why isn't this single line of code included by default? As the solution is already clear, that should be part of the next microupdate!

    In addition, the article might let the reader assume that you should shift the task exactly by +/- 1 hour or +/-30 minutes (first sentence in Option 1). But since that basically brings the server to the next/previous time zone, the problem might appear again. Using a random time seems more appropriate.

    For option 2: is there a reason why you gave the time range of +/- 30 minutes? Would it hurt if the job starts much earlier/later?

    0
    Comment actions Permalink
  • Avatar
    Nikolay Zhmuk

    @b_p , solution in Option 1 is not a proper one, the recommended way to change execution time for Daily Maintenance is through task scheduler like cron or anacron.

    About random time for DailyMaintenance task there is a feature request https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/18978205 and I assume you have voted for this already.

    > For option 2: is there a reason why you gave the time range of +/- 30 minutes? Would it hurt if the job starts much earlier/later?
    The main requirement for the start time is to run DailyMaintenance task when the server load is minimal.

    Thank you for the input, the article has been updated.

    0
    Comment actions Permalink
  • Avatar
    turgut kalfaoglu (Edited )

    Didn't help.. Although I get frequent email warnings about key being expired and some features are now not available.... I wonder if that email is wrong..

    # rm /etc/sw/keys/registry.xml
    # /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/DailyMaintainance/task-script.php UpdateKeys --period=daily
    [2022-09-21 12:14:40.527] 18456:632ad5f97a3d8 ERR [panel] KeyUpdate Result code: 2 Unspecified error
    [2022-09-21 12:14:40.527] 18456:632ad5f97a3d8 ERR [panel] KeyUpdate Result desc: License key is not prolongated yet
    #

    0
    Comment actions Permalink
  • Avatar
    Anastasia Zyrianova

    Hello turgut kalfaoglu, 

    According to the error message, your key has expired. Consider contacting our Customer Success Team for further clarification of the issue: https://www.plesk.com/licensing-and-purchase-support/.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request