{"id":145,"date":"2018-03-09T07:22:04","date_gmt":"2018-03-09T07:22:04","guid":{"rendered":"http:\/\/4us2use.at\/?p=145"},"modified":"2018-03-09T12:14:28","modified_gmt":"2018-03-09T12:14:28","slug":"sharepoint-solution-deployment-stucks-in-retract-deploy-state","status":"publish","type":"post","link":"http:\/\/4us2use.at\/?p=145","title":{"rendered":"SharePoint Solution Deployment stucks in Retract \/ Deploy State"},"content":{"rendered":"<p>Problem Description:<\/p>\n<p>I tried to deploy \/ retract a solution on a SharePoint farm, but the process never finishes. It stucked in &#8220;Deploying \/ Retracting&#8221; state forever.<br \/>\nIn my case this was caused by disabled timer service instances.<\/p>\n<p>Workaround:<\/p>\n<p>I deployed the solutions with the parameter -Local on each server.<\/p>\n<p>Final Solution:<\/p>\n<p>$farm = Get-SPFarm<br \/>\n$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne &#8220;Online&#8221;}<br \/>\nforeach ($timer in $disabledTimers)<br \/>\n{<br \/>\n$timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online<br \/>\n$timer.Update()<br \/>\n}<\/p>\n<span id=\"post-ratings-145\" class=\"post-ratings\" data-nonce=\"dd1558ec64\"><img id=\"rating_145_1\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"1 Star\" title=\"1 Star\" onmouseover=\"current_rating(145, 1, '1 Star');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_145_2\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"2 Stars\" title=\"2 Stars\" onmouseover=\"current_rating(145, 2, '2 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_145_3\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"3 Stars\" title=\"3 Stars\" onmouseover=\"current_rating(145, 3, '3 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_145_4\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"4 Stars\" title=\"4 Stars\" onmouseover=\"current_rating(145, 4, '4 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_145_5\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"5 Stars\" title=\"5 Stars\" onmouseover=\"current_rating(145, 5, '5 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/> (No Ratings Yet)<br \/><span class=\"post-ratings-text\" id=\"ratings_145_text\"><\/span><\/span><span id=\"post-ratings-145-loading\" class=\"post-ratings-loading\"><img src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/loading.gif\" width=\"16\" height=\"16\" class=\"post-ratings-image\" \/>Loading...<\/span>\n","protected":false},"excerpt":{"rendered":"<p>Problem Description: I tried to deploy \/ retract a solution on a SharePoint farm, but the process never finishes. It stucked in &#8220;Deploying \/ Retracting&#8221; state forever. In my case this was caused by disabled timer service instances. Workaround: I deployed the solutions with the parameter -Local on each server. Final Solution: $farm = Get-SPFarm &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/4us2use.at\/?p=145\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SharePoint Solution Deployment stucks in Retract \/ Deploy State&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/145"}],"collection":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145"}],"version-history":[{"count":2,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":147,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions\/147"}],"wp:attachment":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}