Share via

wsp stuch while deplying

qasimidl 106 Reputation points
2023-08-11T07:46:28.67+00:00

Hi,

I am using SharePoint 2019 on prem.

3 machines are being for Sharepoint2019 FARM

  1. App server
  2. WFE
  3. Database

Problem:

as i try to deploy "wsp" on App server, it gets stuck (PFA) StuckWsp1.png, keep showing Deploying status.

Tried:

i have restarted both app and wfe machines even timer and SharePoint admin services are also restarted nothing work.

Note: it's in deploying state then automatically convert into not-deployed state.

Solution Required:

Please help me to resolve this error to deploy wsp ( with deployed status)

Thanks

Microsoft 365 and Office | SharePoint | Development

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2023-08-14T07:47:57.8133333+00:00

    Hi @qasimidl,

    You could check SharePoint Timer Service is running on All servers, with following script we can get the status of Internal SharePoint Foundation Timer Job.

    $farm = get - spfarm  
    $ss = $farm.Servers | ? {  
        $_.Role - notlike "Invalid"  
    }  
    foreach($s in $ss) {  
        $s.name  
        Write - host "........................."  
        $is = $s.ServiceInstances  
        foreach($i in $is) {  
            if ($i.TypeName - eq "Microsoft SharePoint Foundation Administration") {  
                $i.Typename  
                $i.status  
            }  
            if ($i.TypeName - eq "Microsoft SharePoint Foundation Timer") {  
                $i.Typename  
                $i.status  
            }  
        }  
    }  
    
    
    

    If Internal SharePoint Foundation Timer job instance is disabled. We can change the status via PowerShell only. Please run the below PowerShell to bring all the Service Instances Online.

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

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.