Symptoms
Issue _1:
We upgraded our Test (Dev) K2 server to version 4.6.11 from version 4.6.10, we used 4.6.11 upgrade package.
The installation finished with errors. We rebooted and attempted the upgrade a second time but again the installation finished with errors. When we check in Control Panel > Programs and Features, we can see 4.6.11 has been installed.
After that we attempted to upgrade K2 for SharePoint on our Test WFE from 4.6.10 to 4.6.11 and received the following message:
K2 for blackpearl is not updated to the minimum required version. Update all K2 products to the latest 4.6.9 release before running the K2 update manager ( our WFE is running K2 for SharePoint 4.6.10).
We noticed the following error in the installertrace log:
Logged Error: Deployment Error: 30009 'K2:DomainService Account' does not have smartobject publish rights.
Issue _2: When trying to upgrade K2 for SharePoint app on the 2 main site, we received the following error:
“There was a problem accessing the file system on the server.. Details: There is an error during importing the Roles tag”
The app is upgraded fine on other sites.
I looked at the attached ULS log (DESPWB01-20151013-1229.log uploaded 10/13/15) and found the following error:
10/13/2015 12:28:37.60 OWSTIMER.EXE (0x56A8) 0x5280 SharePoint Foundation App Deployment mq70 Unexpected Exception while executing task aadb2a3b-c6ba-4e3f-a067-9f6f3b0bf275 of type Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup in job 03e7946b-dde9-4bae-9815-4ee15b54dede for instance 03267550-a625-4515-a6c3-29c91029de33 sitesubscription 00000000-0000-0000-0000-000000000000, rollback = False: Microsoft.SharePoint.SPException: There is an error during importing the Roles tag at Microsoft.SharePoint.Deployment.ReadAttribute.String(XmlReader xr, String strAttr, Stringand str, Boolean bRequired, String strDefault, String strError) at Microsoft.SharePoint.Deployment.RolesImport.ProcessSimpleElement(ImportStreamingContext context, XmlReader xr, SqlSession session, SqlCommand comm, Int32 iRow) at Microsoft.SharePoint.Deployment.SqlBatchImport.Run() at Microsoft.SharePoint.Deployment.SecurityObjectSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector) at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector) at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope) at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream) at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream) at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects() at Microsoft.SharePoint.Deployment.SPImport.Run() at Microsoft.SharePoint.Administration.SPAppWebCopy.ImportFromFile(SPSite site, SPWeb parentWeb, String targetWebName, String importFolder, String importFileName, Boolean preserveIds) at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.RestoreWeb(SPWeb parent, String webName, Boolean preserveIds) at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.RestoreFromBackupAndUpgradeAndRemove() at Mic
rosoft.SharePoint.Administration.SPAppTask.RestoreFromBackupAndUpgradeAndRemoveOperation() at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask() 03e7946b-dde9-4bae-9815-4ee15b54dede
Diagnoses
Issue _1 was caused by user does not have permission in SmartObject and SmartBox.
Issue _2 seems to be the issue with corrupt existing app in SharePoint.
Resolution
Issue _1: removing permission set on both SmartObject and SmartBox SmartObject from K2 Workspace resolved the issue.
Issue _2: removing and re-adding the K2 App allow the upgrade to be complete successfully.