A developer reported that they were having an issue promoting their application. The logs shown in the SOC were the following:
Timestamp: 09/10/2014 02:12:53 PM
Application: Developer Portal Version 1 316b32db-e812-40b8-9be0-9a4292bc95cc
SessionId: 5c24ee62-1e39-e411-b137-0050568b3f17
SessionActive: false
ProviderName: Apprenda, Inc 00000000-0000-4000-0000-000000000001
Error event created by Apprenda.SaaSGrid.ProviderPortal.PublishingVersionLifecycleStrategy from machine .
-----------------LogMessage-----------------
DeployDataModel(): An unanticipated error occurred while asynchronously processing datamodel deployment
-----------------EndLogMessage-----------------
-----------------SurfaceException (System.Exception)-----------------
An error occurred while attempting to locate a storage manager for the creation of an application data partition on behalf of application with id 'b70d8c8d-3b38-e411-b137-0050568b3f17'
at Apprenda.SaaSGrid.Data.IsolatedDatabaseStorageLocatorStrategy.FindApplicationDataPartitionTarget(PartitionType partitionType, Boolean forPublishedStage)
at Apprenda.SaaSGrid.Data.PersistenceController.CreateApplicationPartition(PersistenceModel persistenceModel, Boolean forPublishedStage, ApplicationCreateInstruction instruction, Dictionary`2 tableNameMappings, FileSystemUri provisionedSchema)
at Apprenda.SaaSGrid.ProviderPortal.PublishingVersionLifecycleStrategy.DeployDataModel(IVersionStage proposedStage)
-----------------EndSurfaceException-----------------
-----------------DeepestException (System.ApplicationException)-----------------
Error selecting storage target for the application with id 'b70d8c8d-3b38-e411-b137-0050568b3f17'. Unable to find a host that meets the requirements for the storage quota with id '2' and the resource allocation policy '58302807-5ec4-40a9-97ce-59d580f638d3'.
at Apprenda.SaaSGrid.Data.StorageLocatorStrategy.SelectTarget(IList`1 allServerInstances, Boolean forPublishedStage)
at Apprenda.SaaSGrid.Data.IsolatedDatabaseStorageLocatorStrategy.FindApplicationDataPartitionTarget(PartitionType partitionType, Boolean forPublishedStage)
-----------------EndDeepestException-----------------
Cause
The issue was caused because the platform could not find a database server that met the resource requirements selected by the developer (storage and resources).
Resolution
There are two possible solutions based on the approach that IT wants to take:
- Add more database capacity to the platform. Instructions can be found here: http://docs.apprenda.com/current/Managing-Apprenda-Infrastructure#database
- Add more capacity to the existing servers and update the information reported to Apprenda using the SOC's server details page. Instructions above.
- Advise to the developer that he/she should select a smaller resource/storage policy. Instructions can be found here: http://docs.apprenda.com/current/resource-policies-redesign
IT should determine what resource is lacking, whether RAM and CPU capacity or storage. You can use the SOC's resource pie charts for guidance.
Comments