问题描述
您好,
我们已经创建了一个应用程序,并且它在很长一段时间内都运行良好。所以,现在我们想再次安装在同一环境中的另一台服务器上,但由于某种原因它永远不会安装完毕。
We have created an application and it is working very fine since a lot of time. So, now we wanted to install again in an another server in the same environment, but for some reason it never ends to be installed.
因此,我们看到日志与开发者机器相比,我们无法安装服务器:
So, we saw the logs comparing with a developer machine againist the server we cannot install:
来自服务器的日志我们无法安装应用程序
Logs from Server we cannot install the app
09/11/2018 17:20:59.97 w3wp.exe(0x0A3C)                    
0x2970 SharePoint Foundation      
应用程序部署              
aumsd 中
SPApp:CommitJob - 使用JobId'3cbb2cf7-b979-4ec9-85bf-199e5707ee8c'为具有InstanceId的应用程序提交作业'安装':'e0e88398- 407a-4846-8146-44d0f07f613c',ProductId:'36a32b20-5e18-47ca-acef-4f4898f9a610',标题:'MetierProjectApp',来源:'CorporateCatalog',
ContentMarket:''在SiteId上:'59a01ec7-c39b -4e2c-9a41-d1e3b9b2a0ce'
58b68d9e-0157-c036-35f6-a6c2d10714ca
09/11/2018 17 :20:59.97 w3wp.exe(0x0A3C)                    
0x2970 SharePoint Foundation      
应用程序部署              
mq74 高  
在网站59a01ec7-c39b-4e2c-9a41-d1e3b9b2a0ce上使用Id 3cbb2cf7-b979-4ec9-85bf-199e5707ee8c提交作业。 jobId将是异步工作的correlationId。
58b68d9e-0157-c036-35f6-a6c2d10714ca
09/11/2018 17:20:59.97 w3wp.exe (0x0A3C) 0x2970 SharePoint Foundation App Deployment aumsd Medium SPApp: CommitJob - Committing Job 'Install' with JobId '3cbb2cf7-b979-4ec9-85bf-199e5707ee8c' for App with InstanceId: 'e0e88398-407a-4846-8146-44d0f07f613c', ProductId: '36a32b20-5e18-47ca-acef-4f4898f9a610', Title: 'MetierProjectApp', Source: 'CorporateCatalog', ContentMarket: '' on SiteId : '59a01ec7-c39b-4e2c-9a41-d1e3b9b2a0ce'58b68d9e-0157-c036-35f6-a6c2d10714ca
09/11/2018 17:20:59.97 w3wp.exe (0x0A3C) 0x2970 SharePoint Foundation App Deployment mq74 High Committing job with Id 3cbb2cf7-b979-4ec9-85bf-199e5707ee8c on site 59a01ec7-c39b-4e2c-9a41-d1e3b9b2a0ce. The jobId will be the correlationId for the asynchronous work.58b68d9e-0157-c036-35f6-a6c2d10714ca
安装工作的开发人员机器的日志
Logs from Developer machine that installation works
09/11/2018 17:21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
应用程序部署              
adbrj 中等
开始操作部署任务类型为Microsoft的项目0c5d43c7-5c7d-4327-9d0f-c7d178e13429.Lifecycle.SPAppRuntimeMetadataManagementTask重试0 IsRollback False sitesubscription 00000000-0000 -0000-0000-000000000000
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation App Deployment adbrj Medium Starting operation Deploy task 0c5d43c7-5c7d-4327-9d0f-c7d178e13429 of type Microsoft.SharePoint.Lifecycle.SPAppRuntimeMetadataManagementTask retry 0 IsRollback False sitesubscription 00000000-0000-0000-0000-0000000000003cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11 / 2018 17:21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
监控                  
nasq 中等
输入受监控的范围(MonitoredTaskExecution - ExecuteTaskOperation - Microsoft.SharePoint.Lifecycle.SPAppRuntimeMetadataManagementTask - Deploy)。 Parent =无
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Monitoring nasq Medium Entering Monitored Scope (MonitoredTaskExecution - ExecuteTaskOperation - Microsoft.SharePoint.Lifecycle.SPAppRuntimeMetadataManagementTask - Deploy). Parent=None3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17: 21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
开发事件                  
ajol5 中等
将EventExceptionTrackingEnabled设置为[True]。 堆栈跟踪:[ at Microsoft.SharePoint.SPEventExecutionScope..ctor(Nullable`1 eventFiringEnabled,Nullable`1 eventExceptionTrackingEnabled)   at
Microsoft.SharePoint.SPEventExecutionScope.CreateEventExecutionExceptionTrackingScope(Boolean eventExceptionTrackingEnabled)   at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTaskCore()   at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback,Object state,Boolean preserveSyncCtx)   at System.Threading.ExecutionConte ...
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Dev Events ajol5 Medium Set EventExceptionTrackingEnabled to [True]. Stack trace: [ at Microsoft.SharePoint.SPEventExecutionScope..ctor(Nullable`1 eventFiringEnabled, Nullable`1 eventExceptionTrackingEnabled) at Microsoft.SharePoint.SPEventExecutionScope.CreateEventExecutionExceptionTrackingScope(Boolean eventExceptionTrackingEnabled) at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTaskCore() at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionConte...3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 * OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
开发事件                  
ajol5 中等
... xt.Run(ExecutionContext executionContext,ContextCallback callback,Object state)   在System.Threading.ThreadHelper.ThreadStart() ]
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31* OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Dev Events ajol5 Medium ...xt.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() ]3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09 / 11/2018 17:21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
开发事件                  
ajol6 中等
创建的SPEventExecutionScope,eventFiringEnabled = [],eventExceptionTrackingEnabled = [True]
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Dev Events ajol6 Medium Created SPEventExecutionScope, eventFiringEnabled = [], eventExceptionTrackingEnabled = [True]3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
开发事件                  
ajol7 中等
将SPEventExecutionScopeData添加到线程上下文。
3cbb2cf7-b979- 4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Dev Events ajol7 Medium Added SPEventExecutionScopeData to thread context.3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
网站缓存                  
az4z8 中等
在内存中查找ID为59a01ec7-c39b-4e2c-9a41-d1e3b9b2a0ce的SPSite。
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Site Cache az4z8 Medium Looking up SPSite by ID 59a01ec7-c39b-4e2c-9a41-d1e3b9b2a0ce in memory.3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE(0x17B4)                
0x26C0 SharePoint Foundation      
拓扑                    
aeayb 中等
SecurityTokenServiceSendRequest:RemoteAddress:'http:// localhost:32843 / SecurityTokenServiceApplication / securitytoken.svc'Channel:'Microsoft.IdentityModel.Protocols.WSTrust。 IWSTrustChannelContract'动作:'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue'
MessageId:'urn:uuid:27cf201f-98b9-4ac1-96df- b01424b607d7'
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 OWSTIMER.EXE (0x17B4) 0x26C0 SharePoint Foundation Topology aeayb Medium SecurityTokenServiceSendRequest: RemoteAddress: 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc' Channel: 'Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustChannelContract' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' MessageId: 'urn:uuid:27cf201f-98b9-4ac1-96df-b01424b607d7'3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe(0x225C)                    
0x45EC SharePoint Foundation      
拓扑                    
aeax9 中等
SecurityTokenServiceReceiveRequest:LocalAddress:'http:// url_deleted:32843 / SecurityTokenServiceApplication / securitytoken.svc'Channel:'System.ServiceModel.Channels.ServiceChannel'行动:'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue'
MessageId:'urn:uuid:27cf201f-98b9-4ac1-96df-b01424b607d7'
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe (0x225C) 0x45EC SharePoint Foundation Topology aeax9 Medium SecurityTokenServiceReceiveRequest: LocalAddress: 'http://url_deleted:32843/SecurityTokenServiceApplication/securitytoken.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' MessageId: 'urn:uuid:27cf201f-98b9-4ac1-96df-b01424b607d7'3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09 / 11/2018 17:21:00.31 w3wp.exe(0x225C)                    
0x45EC SharePoint Foundation      
监控                  
nasq 中等
输入受监控的范围(ExecuteSecurityTokenServiceOperationServer)。 Parent =无
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe (0x225C) 0x45EC SharePoint Foundation Monitoring nasq Medium Entering Monitored Scope (ExecuteSecurityTokenServiceOperationServer). Parent=None3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe(0x225C)                    
0x45EC SharePoint Foundation      
声明身份验证      
arhor 中
STS调用:创建适用于Uri的声明操作范围:'http:// url_deleted'
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe (0x225C) 0x45EC SharePoint Foundation Claims Authentication arhor Medium STS Call: Creating Claims Operations Scope for Applies To Uri: 'http://url_deleted'3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe(0x225C)                    
0x45EC SharePoint Foundation      
声明身份验证      
arhon 中
不创建SPClaimsOperationContext,因为线程上已有一个。 Uri:'http:// url_deleted'
3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe (0x225C) 0x45EC SharePoint Foundation Claims Authentication arhon Medium Not creating SPClaimsOperationContext since there is one on the thread already. Uri: 'http://url_deleted'3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe(0x225C)                    
0x45EC SharePoint Foundation      
声明身份验证      
av3jn 中等
构建cookie签名。 3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
09/11/2018 17:21:00.31 w3wp.exe (0x225C) 0x45EC SharePoint Foundation Claims Authentication av3jn Medium Building cookie signature. 3cbb2cf7-b979-4ec9-85bf-199e5707ee8c
因此,我们不确定问题是SharePoint或CU的版本(从7月开始)还是其他任何事情。
So, we are not sure if the problem is the version of SharePoint or CU (from July) or anything else.
如何解决?
推荐答案
请尝试使用PowerShell安装应用程序。
Please try to install the app using PowerShell.
https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/install-spapp?view=sharepoint-ps
并检查开发人员计算机和服务器之间的SharePoint版本和配置。
And check the version of SharePoint and configuration between developer machine and server.
并在ULS日志中提供更多错误消息以供进一步研究。
And provide more error messages in the ULS log for further research.
最诚挚的问候,
丹尼斯
这篇关于无法在SharePoint Server 2016上安装应用程序。它正在安装,但永远不会结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!