Skip to main content

We are having a strange issue when deploying the SharePoint App to our on premises environment (works fine in one of our demonstration environments).  The app says its installing  but says that for several minutes.  During this time, you can actually access/conifgure the app.  However, SharePoint never seems to think it is installed and about 20 minutes later it rolls it back and deletes everything.


I have not found anything in the SharePoint logs indicating why SharePoint doesn't think the install is complete.   Has anyone seen this behavior before?  Anything specifically I should look for in the logs?



Hi,


 


Can you confirm as to whether you have the necessary permissions needed to install the App on SharePoint and whether you are installing the App on the main site and not sub site?


 


Also have a look at the following links if you have not done so already:


K2 For SharePoint

Enabling SharePoint Apps


 


K2 For SharePoint Help


 


http://help.k2.com/kb001443


 


Regards,


I am a site collection adminsitrator.  I have tried on both a subsite and at the root site level.   I have found what seems to be the issue int he SharePoint logs.

 

It starts with:

SPAppPrincipalAccessTokenTask: Try to get access token for app 45647ec3-7acf-44bc-a73b-826b8433b849 installed at https://intranet.eourcompany].com

 

THen several:

Error when try to get access token when deploy AppInstanceId 45647ec3-7acf-44bc-a73b-826b8433b849 with AppPrincipalId i:0i.t|ms.sp.ext|3308eaff-d056-4a32-9b1d-563f81bf06f9@2e6be444-17f2-4118-a5f9-df667940fda9. Exception=System.ArgumentNullException: Value cannot be null.  Parameter name: applicationRealm 

 

Then finally:

Updating app instance 45647ec3-7acf-44bc-a73b-826b8433b849 in site e501466e-4969-4e2f-8ccf-bfeed92d0463 to have error <SPAppInstanceErrorDetails xmlns="http://schemas.datacontract.org/2004/07/Microsoft.SharePoint.Administration" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CorrelationId>90264646-0ff1-4c14-8c0e-356fda68188b</CorrelationId>  <ErrorDetailToken>AppLifecycleError_Timeout</ErrorDetailToken><ErrorType>Transient</ErrorType><Source>Common</Source><exceptionDetailedMessage i:nil="true"/><exceptionMessage i:nil="true"/></SPAppInstanceErrorDetails>

 

SharePoint then rolls it back, trys again a few times and then just fails.  Again, the wierd part is that the app seems to work until it is rolled back.

 

I believe we are behind on CUs and there was a reference to the following in the getting started guide:

The SharePoint 2013 March Public Update (or later) is required if: You are using web apps or site collections with host headers (domain names / 'friendly' url's)

You have other server software installed on the SharePoint server that is using the Default Web Site (i.e. port 80/443) 

 

I'm working with my SharePoint team to see if we can get those installed, but they are not installed on another environment and it is working fine.

 

Thanks for the help.  I'll report back if we resolve the issue.

 

 


Hi,

 

Use the powershell script to check if your SharePoint is set up correctly.

 

http://help.k2.com/SPHealthCheck.aspx

 

Also make sure that your SharePoint and smartforms site are on either HTTP or HTTPS, not mixed.

 

 

JK.

 

 


Everything seems to be reporting fine.  There is a warning about not having app domains for each web application, but that is not enabled on our farm and works for other apps.

 

The test deploy deploys the app but then gets an unauthorized error downloading a string.  But it is deployed.


Hi cjk,

 

You need to make sure app domain and app catalog are configured properly first. It is a SharePoint 2013 requirement to run 3rd party apps on it. Make sure your SharePoint environment passes all the tests in the powershell healthcheck script too.

 

http://technet.microsoft.com/en-us/library/fp161236(v=office.15).aspx

 

 

JK.

 

 


Its configured. Apps from the store work fine.

Hi cjk,

 

In your previous reply, you did mentioned that there's a warning on the app domain check from the healthcheck powershell script. Is it resolved now?

 

 

JK.


Below is the warning I get.   I looked into the scripts and it is running this check because the March 2013 updates are applied.   I was under the impression that this configuration is only needed if you need multiple app domains based on this article: http://technet.microsoft.com/en-us/library/dn144963(v=office.15).aspx.    Is that not correct?  Other store applications are working fine.  Also the test app from the healthcheck get's deployed as well.

 

I verified that the setting SupportMultipleAppDomains is still set to 'false'.

 

--- Verify app domain configured for web application ---
SP web application app domain not found for web application @: https://helpdesk.mpspartners.com/ Port: 80
SP web application app domain not found for web application @: https://helpdesk.mpspartners.com/ Port: 443
SP web application app domain not found for web application @: https://intranet.sprcompanies.com/ Port: 80
SP web application app domain not found for web application @: https://intranet.sprcompanies.com/ Port: 443
SP web application app domain not found for web application @: https://mysites.sprcompanies.com/ Port: 80
SP web application app domain not found for web application @: https://mysites.sprcompanies.com/ Port: 443
SP web application app domain not found for web application @: https://projects.sprcompanies.com/ Port: 80
SP web application app domain not found for web application @: https://projects.sprcompanies.com/ Port: 443
SP web application app domain not found for web application @: https://pwreset.sprcompanies.com/ Port: 443
SP web application app domain not found for web application @: https://pwreset.sprcompanies.com/ Port: 80
SP web application app domain not found for web application @: https://test.sprcompanies.com/ Port: 443
SP web application app domain not found for web application @: https://test.sprcompanies.com/ Port: 80

Warning : No SharePoint web application app domain found for default app domain: : apps.mpspartnersapps.com

AppDomainTask : WARNING


Hi cjk,

 

I think you are missig this step:

 

New-SPWebApplicationAppDomain -AppDomain apps.mpspartnersapps.com -WebApplication https://projects.sprcompanies.com -Zone default -Port 443 -SecureSocketsLayer

 

When you get the error in the health check script, look at the links provided. I remember one of them will point you to this:

http://technet.microsoft.com/en-us/library/dn144963(v=office.15).aspx

 

 

JK


So you were correct.   I tried running the New-SPWebApplicationAppDomain initially and it said SharePoint was already configured on that port.  Prior to the March 2013 updates we had to create a web application to allow us to deploy apps.  Works really well on our server that doesn't have those updates.

 

So I deleted the web application and then command ran successfully.  The Healthcheck then also ran successfully (There were still warnings for other web applications during the app domain check, but the one I want it to deploy on was green).  Also, the app deploy test worked without any error at all.  I was able to access the app before allowing the health check script to uninstall it.

 

I thought for sure it was solved, but I still get the same error when trying to add the app.  I tried uninstalling K2 for SharePoint and reinstalling completely.  I also tried rebooting.  Still the same error (applicationRealm is null).  The app is deployed and accessible until SharePoint rolls it back after its normal retries.

 

I'm going to log a support ticket tomorrow.  Thanks for all the help.


Reply