1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Bug report: Expiration date of subscriptions is not changed

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by Thomas Becker, May 4, 2012.

  1. Thomas Becker

    Thomas Becker Basic Pleskian

    22
     
    Joined:
    Sep 11, 2009
    Messages:
    81
    Likes Received:
    0
    Bug report: Limits (e.g. expiration date) of subscriptions are not changed

    This is serious issue!

    ---------------------------------------------------------------
    PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
    10.4.4 Update #27, CentOS 6.2 x64

    PROBLEM DESCRIPTION
    Expiration date of a subscription is not changed.

    STEPS TO REPRODUCE
    Create a service plan with expiration of 1 month then add it to a subscription. After that create a service plan with expiration of 1 year and change the subscription to use the new service plan with expiration of 1 month.

    ACTUAL RESULT
    The expiration date is not changed in MySQL table psa --> Limits --> [Limits-ID of domain] --> expiration

    EXPECTED RESULT
    Expiration date should be changed.

    ANY ADDITIONAL INFORMATION
    Other users having this problem too.
    See also:
    http://forum.parallels.com/showthread.php?t=259110
    http://forum.parallels.com/showthread.php?t=259179
    --------------------------------------------------------------
     
    Last edited: Jul 1, 2012
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Thank you for report. I have forwarded it to developers. I will update thread with results of investigation.
     
  3. Thomas Becker

    Thomas Becker Basic Pleskian

    22
     
    Joined:
    Sep 11, 2009
    Messages:
    81
    Likes Received:
    0
    Hey guys,
    still no fix out!?

    We do have to manually edit the limits every time when changing the service plan of a subscription. That causes a lot of trouble. That is a basic function of Plesk and should work all the time, so why do I have to manually edit the limits in the Database?

    The expiration date and some other limits are still not changed in PSA database when changing the service plan of a subscription!

    Am I the only one with that problem? Please provide an update of the state of that case.

    Thanks
    Thomas
     
    Last edited: Jul 1, 2012
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    From Plesk documentation:
    As you can see it should be performed manually and it is not necessary to change Service Plan to watch this behaviour. Expiration date will not be changed during Service Plan changing.
    This behaviour was changed in Plesk 11. Now after synchronization new expiration date = creation data + expiration period. So, I suggest you upgrade to Plesk 11 if it is critical for you.
     
  5. Ehsana

    Ehsana New Pleskian

    10
    30%
    Joined:
    Oct 28, 2012
    Messages:
    5
    Likes Received:
    0
    Any update?

    When I unlock & sync the subscription, expiration date will changed unfortunately!
     
  6. Jose AlbertoH

    Jose AlbertoH New Pleskian

    10
     
    Joined:
    Nov 29, 2012
    Messages:
    1
    Likes Received:
    0
    Script to set all domains to unlimited

    Hi, to solve this bug, I use this script (in Plesk 10 on Debian):

    Code:
    vhosts="/var/www/vhosts/"
    httpdocs="/httpdocs"
    find /var/www/vhosts -type d -wholename "*/httpdocs" | while read file;
    do
        domain_temp=${file%$httpdocs}
        domain=${domain_temp#$vhosts}
        /usr/local/psa/bin/subscription_settings -u $domain -expiration -1
    done
    
    I hope this can help.
     
  7. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,564
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Other possible script:
     
Loading...