Error message 'impossible not to provision non-optional resource' when creating a subscription.
Modified on: Fri, 17 Nov 2023 12:07 PMOriginal Publishing Date:
2020-01-22
2020-01-22
Symptoms
I'm trying to create a subscription to test my APS package but an error is shown at the end of subscription creation wizard:
void Plesk::APS::ApplicationServiceInstanceProvider::provideServiceInstance(const Plesk::APS::ProvisioningPossibility&) : [APSC] impossible not to provision non-optional resource
Cause
POA tries to create a resource with 'autoprovision' flags and checks its relations to other services, one of the services with 'required: true' relation is not present in subscription
Resolution
Check resource schema for autoprovided resource, since it is main resource of application it should have 'required: true' relation only to POA core resources such as core/account, core/subscription etc.