Symptoms
Running upgradeAPS1ToAPS2.py
script for a subscription to convert it from APS 1.2 to APS 2.0 mode, the following error appears:
HTTP Error 500: Internal Server Error(Day of month is not valid for year)
In /var/log/pa/core.log
the error appears as a result of a GET REST API call:
Feb 20 13:55:39.133 : ERR [rest:1546692 1:2320:845ffb70 SAAS ]: [ APSC] REST Error: GET //aps/2/resources/a43d4375-f7ab-4dfd-b270-a61c41d12bc4/licenses/ code=500: Day of month is not valid for year
Cause
Uncer certain circumstances, a race condition may occure in APS Controller processing the date/month during API calls. The issue is recognized as APS-39432 (APSC throws boost::gregorian::bad_day_of_month sporadically under load).
Resolution
Due to the nature of the issue, it is enough to re-run the operation again, the failure should not re-occur.