Skip Ribbon Commands
Skip to main content
Sign In

Solution is still listed as 'deployed to: none' after manually solution deployment

Solution is still listed as 'deployed to: none' after manually solution deployment


Question

I have tried deploying the solution manually but the process returns without error but the solution is still listed as “deployed to: none”. What do I do?

Answer

The issue may happened If the Timer Service or any of its instances on servers begins to malfunction. Please try the scripts below:

Set Timer job status Online in Multiserver Farm

$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" 
}

Timer job restart in Multiserver farm

Use powershell script to restart timer services of all servers in a farm. Run below script in any server of a farm.      

 

$farm = Get-SPFarm
$farm.TimerService.Instances | foreach {$_.Stop();$_.Start();}
You can get this job done in more interactive way by running below bunch of lines in SharePoint Management Shell
[array]$servers= Get-SPServer | ? {$_.Role -eq "Application"}
foreach ($server in $servers)
{
    Write-Host "Restarting Timer Service on $server"
    $Service = Get-WmiObject -Computer $server.name Win32_Service -Filter "Name='SPTimerV4'"
 
    if ($Service -ne $null)
    {
        $Service.InvokeMethod('StopService',$null)
        Start-Sleep -s 8
        $service.InvokeMethod('StartService',$null)
        Start-Sleep -s 5
        Write-Host -ForegroundColor Green "Timer Job successfully restarted on $server"
    }
    else
    
        Write-Host -ForegroundColor Red "Could not find SharePoint Timer Service on $server"
    }
}

 

Created at 7/4/2022 12:12 AM by Igor Goldshtaub (UTC-05:00) Eastern Time (US and Canada)
Last modified at 7/4/2022 12:29 AM by Igor Goldshtaub (UTC-05:00) Eastern Time (US and Canada)
Total Views: 308

Tags

Article Type: How-To
Recent Discussions
There are no items to show in this view.