SharePoint - Solution无法部署的解决方案

在SharePoint上部署Solution时遇到问题,无论是用Powershell还是直接SharePoint Central Admin deploy无法部署成功。提示下面错误:

Solution not deployed

但是同时能够看到在部分server还是可以部署成功的。

SharePoint - Solution无法部署的解决方案_第1张图片

 

对于没有部署成功的server,在查看ULS log也完全查不到部署solution的log信息。

经过排查主要原因是SharePoint Foundation Timer Job Instance没有在这台有问题的server上开启。

首先需要在有问题的server上执行下面script开启 Timer Job Instance.

Add-PSSnapin Microsoft.SharePoint.PowerShell

 

$farm = Get-SPFarm

$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne "Online"}

if ($disabledTimers -ne $null)

{

    foreach ($timer in $disabledTimers)

    {

        Write-Host "Timer service instance on server " $timer.Server.Name " is not Online. Current status:" $timer.Status

        Write-Host "Attempting to set the status of the service instance to online"

        $timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online

        $timer.Update()

    }

}

else

{

    Write-Host "All Timer Service Instances in the farm are online! No problems found"

}

 

执行完成后,重新部署Solution。

 

SharePoint - Solution无法部署的解决方案_第2张图片

部署成功,问题解决。

 

感谢阅读。

你可能感兴趣的:(SharePoint,2016,IT,Professional,SharePoint,2013,IT,Professional,SharePoint,Solution)