Why does the Install-SPSolution / Uninstall-SPSolution take exactly 8 hours to complete?

I asked this question
here before and didn't get a usable answer and I see other people are getting the same issue. I did some more testing, added a timer/t to my scripts and discovered that the Install-SPSolution / Uninstall-SPSolution always takes exactly
8 hours to the minute to complete, no matter when I start it. I verified this over several refreshes of my webpart and it is always exactly 8 hours. This applies to both Central Admin and farm solutions. I hope that the duration of 8 hours
to the minute does contain a clue to solve this issue.
This is the PS1 script I use to install the CA component:
param([string]$cadmin2010 = "", [string]$cadmin2013 = "")
Write-Output "Installing MySolution.CentralAdmin.wsp webpart"
Add-PsSnapin Microsoft.SharePoint.PowerShell
Write-Output "Loaded SharePoint environment"
$cadmin = $cadmin2010
if ($cadmin2013) {$cadmin = $cadmin2013}
Write-Output $("Installing webpart on " + $cadmin)
$sln = Add-SPSolution MySolution.CentralAdmin.wsp
Write-Output "Added solution"
Install-SPSolution -Identity MySolution.CentralAdmin.wsp -GACDeployment -Force
Write-Output "Installing solution"
while($sln.JobExists)
start-sleep -s 5
Write-Output "Solution installed"
Enable-SPFeature -Identity b2ff3a66-0f9d-4b4a-9b79-842aeca34d42 -url $cadmin -Force
Write-Output "Feature enabled"
It takes 8 hours before the "Solution Installed" message is printed. Once it completes, everything works fine, but with the uninstall of an old version and the install of a new version, 16 hours is a long wait. This is the output of my script:
C:\Program Files\Product\EFS>RefreshCAComponents.cmd
C:\Program Files\Product\EFS>time/t
04:55 PM
C:\Program Files\Product\EFS>"C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe" .\RemoveCaComponents.ps1 -cadmin2013 http://productionwfe1:6101/
Removing MySolution.CentralAdmin.wsp CA Customization
Loaded SharePoint environment
Removing CA Customization from http://productionwfe1:6101/
Disabled feature
Uninstalled feature
Uninstalling solution
Solution uninstalled <-- takes 8 hours since printing the previous line
Solution removed
C:\Program Files\Product\EFS>time/t
12:55 AM
C:\Program Files\Product\EFS>"C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe" .\InstallCaComponents.ps1 -cadmin2013 http://productionwfe1:6101/
Installing MySolution.CentralAdmin.wsp webpart
Loaded SharePoint environment
Installing webpart on http://productionwfe1:6101/
Added solution
Installing solution
Solution installed <-- takes 8 hours since printing the previous line
Feature enabled
C:\Program Files\Product\EFS>time/t
08:55 AM

Please use this code for waiting to deployment finish (it shouldnt take so long):
$solutionFileName = "something.wsp"
$timeout = 1000
$jobName = "*solution-deployment*$solutionFileName*"
$job = Get-SPTimerJob | ?{ $_.Name -like $jobName }
if ($job -eq $null)
Throw "Timer job for '$solutionFileName' not found"
$jobFullName = $job.Name
Write-host "Waiting to finish job '$jobFullName'..."
do
if($timeout -le 0)
Write-host "Failed: timeout"
Throw "Job '$jobFullName' not finished after "+ ($timeout * 2) + " seconds"
Start-Sleep -Seconds 2
Write-host . -NoNewLine
$timeout -= 1
} while ((Get-SPTimerJob $jobFullName) -ne $null)
Source: SharePoint Solution Deployer (codeplex)
Best regards,
Radovan
Please let me know if my post was helpful.

Similar Messages

  • Why does the CS6 Master Collection Suite take up so much RAM on a computer??

    so, if, i brought the CS6 Master Collection Suite i would need more RAM on my computer right?
    because, my apple computer only has 4GB of memory and that program needs 4GB of RAM.
    I would need to add more memory to my apple computer say upgrade it to maybe 8GB of RAM??
    But, i don't understand why does that suite need so much memory or RAM on a computer??
    could i just only download the programs i really need onto my apple laptop and maybe that
    would free up some memory or RAM so that the program wouldn't  end up using all of the memory
    on my computer could i just do that??
    Message was edited by: mzpretty3

    Mzpretty3 you can find the system requirements for CS6 Master Collection at http://helpx.adobe.com/x-productkb/policy-pricing/cs6-system-requirements.html#CS6_Master_ Collection_system_requirements.  For Mac OS we recommend a minimum of 4 GB of RAM and if you are going to do heavy photo or video editing then you will want to have at least 8 GB of RAM available.
    Please also be aware that the installation will require at least 15.5 GB of hard drive space.  This is separate from the amount of RAM which you have installed.

  • HT1560 If diagnostics says appletv is working properly, why does the install keep getting stuck on pairing with the computer then back to select resolution over and over.

    First gen Appletv suddenly stopped working from one night to the next. This has happened in the past once and the usual restore, reboot, etc, tinkering finally snapped it back into working quite unexpectadly. The symptom is, after restore when it gets to the screen to pair with itunes by entering the numbers in itunes, the number is briefly up on the tv screen and then quickly is gone returning to the select resolution page. This happens over and over with each try while the Appletv never shows up in itunes and the number box never appears either to pair the computer with the Appletv. It does the same thing with my intel macbook so I don't think it's the Imac. I have dumped itunes 10 and reloaded itunes 9 with no change in the problem. My IP scanner picks up that the Appletv is on our network as soon as it turns on. I have used wireless, which it finds and logs into, and ethernet which also has it finding my network. I can't test whether it is actually on the network by trying to play a trailer or something because it will not go past that pairing screen in the initial setup. Are the built in diagnostics reliable when they say your appletv is working correctly. The hard drive isn't making any exceptionally loud noise as it spins up. I am stuck with this unit because I use it with a G4 Imac running Tiger 10.4 for a video/audio jukebox at the bar. New ATV won't work with the Imac unless it's running leopard I believe. The thing runs like molasses already so attempting leopard which I don't have anyway would really make it crawl. I love a good mystery/problem but this thing is driving me crazy. If I just could know for sure what component inside was shot I would replace it. Could a hard drive boot up to a degree and then get stuck at one part of the install, or would it have to be the logic board, or something else. Bad juju in the house or something

    Had same problem this finally stopped it for me.
    FINDER
    APPLICATIONS
    UTILITIES
    DISK UTILITY.app
    select your main hardrive
    REPAIR DISK PERMISSIONS
    Message said repairing estimated time 1minute, yeah okay we all know how accurate those are process took about 5 minutes with nothing showing then all of a sudden printer permission repaired notations were flying onto screen in actions box. Do restart for heck of it sign on and so far no message has apeared where it did regularly. I hope this is indeed the fix. In meantime it never hurts to fix permissions so give it a try.
    George in NY

  • Why does the map app say it takes 8 hours to travel 25 miles?

    The map app says it takes 8 hours and 17 minutes to drive from Naperville, IL, to Midway Airport.  An alternate route only takes 49 minutes.

    If I selected walking, why would a longer alternate route only take 59 minutes.
    I just got directions for the same route and got reasonable results.  Whatever the problem was it appears to have been corrected.
    Thank you all for your comments.

  • Why does the Firefox Update that I accessed keep running and not complete its task?

    The routine updates that Firefox sends to me have always worked just fine. Now though the latest update I have been trying to access just keeps running and never completes the task. The motion bar that shows the user that the update is running never stops. I have come back minutes later to find the motion bar still running. I have tried to access this particular update several times now and it always does the same thing; just keeps running and never stops.

    see https://support.mozilla.com/en-US/questions/836550

  • Why does the Finder in Mountain Lion take over 50% of my RAM?

    On a supported MacBook Air, Mountain Lion takes up over 50% of the available RAM accounding to every app and even the activity monitor. I only have enough RAM to open one app at a time. Open another and I've run out of memory and the entire Mac freezes up.
    !0.6 and 10.7 didn't have this problem, only Mountain Lion does. Anyone else see this problem or have a solution?
    Thanks

    Kappy,
    No, that made things worse. Now the MacBook Air is frozen completely in Safe Mode. I had to hold down the power button until I shut down hard. Bringing it back up in normal mode, now there's under 200M of RAM left, a fraction of what was available. I can't even open Safari, it keeps running out of memory.
    Never had this problem with Snow Leopard and Lion. I opened the App Store where both versions of the operating system are and tried to load each. Neither one would load to let me downgrade. I paid for them, how come I can't use them?!
    Apple's gone to **** since Steve Jobs passed away. I've been a Loyal Apple user for 8 years now and ever since Jobs' passed away, nothing is working right with the latest upgrades. I'm ready to install Ubuntu on every Mac in the house.

  • Why does the music from my CDs take up so much memory?

    I'm new to itunes, and having just recieved an ipod (an 8 GB nano) for Christmas I started uploading my CDs to itunes yesterday.
    I've uploaded 15 albums, containing 205 songs, which is 12.4 hours of playing time. According to the information at the bottom of my itunes, it takes up 7.38 GB of memory. 8 GB of memory is supposed to hold 2000 songs, so I don't understand why 205 songs have nearly filled the memory. Can anyone help?
    Thanks,
    Kate

    Maybe it has to do with the encoder you used to import your CDs to the computer. If you use a lower encoding (for example, mp3 or aac at 128 kbps) your iPod should be able to contain approximately 2000 songs. If you use a higher encoding (like mp3 or aac at 192 kbps or higher bit rates) , your songs will take much more space but the sound quality will be higher. To check what encoding you're using you can select a file, right-click, and click on "get info". More instructions on how to choose a new bit rate can be found at these links: http://www.ehow.com/how2019280set-import-itunes.html or http://www.dummies.com/how-to/content/how-to-choose-an-itunes-encoder.navId-3232 15.html. After doing that, you'll have to import your cd's again using the new encoder.

  • Why does the music on my iPhone take bigger than in iTunes

    As topic, I'm not really sure why. On my iPhone the music take up 11.3 Gb but in iTunes it is 10.34 Gb.

    I found out that my iTunes Media folder is a few gigs bigger than in iTunes.
    Is it possible to overwrite the iTunes media folder with the music that is in iTunes itself?

  • Why does the itunes update 11.4 get denied at about 90% completion of installation

    When I try to install update 11.4 the installation proceeds until about 90% complete and then I get a "access denied" box.

    For "Object already exists" or "Access denied" errors when installing try opening Control Panel > Programs and Features > View installed updates then checking for Security Update for Microsoft Windows (KB2918614). Uninstall if you have it, then reboot, and try installing iTunes again.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Why doesn't flash player stay installed and why does the saved file disappear.

    Why doesn't flash player stay installed and why does the saved file disappear.  I have downloaded and installed flash player several times on my Win7 Vaio laptop. I have uninstalled and deleted all versions.  I am the administrator and I have also turned off my Security Software, but the same thing keeps happening over and over.  The Java Script is enabled and I have tried both downloading via IE and firefox.  It is rediculous that it keeps disappearing and I keep getting messages that the newest version is needed.  I am downloading directly from adobe and they say it is the latest.  Getting very frustrated.  They ask if we have any problems when we go to the finish line, but there is no place for comments.  I guess they don't really care if it works or not.

    So is it actually installed, or is it not?  If not, download and run the offline installers:
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    If it still does not work correctly, check
    http://forums.adobe.com/thread/885448
    http://forums.adobe.com/thread/867968
    In Firefox also check if the Shockwave Flash plugin is enabled.

  • Why does the Flash player update push me to install McAfee Security Scan Plus?

    When Flash asks me if I want to update, it takes me to an Adobe page to update it, but there is a checkbox already checked to install McAfee Security Scan Plus. I already have an anti-virus program installed. Why does the flash update page assume that I want to install this software?

    Generally this occurs because there's a third-party plug-in that affects how the JavaScript on the page got executed.  Ghostery, AdBlock Pro and NoScript are common candidates.
    Under normal operating conditions, you should see an opt-out dialog like the one below.  While cost-recovery measure are a reality for a product that is tremendously expensive to develop and distribute free of charge, the intent is absolutely to allow you to opt out.
    If you want to avoid the download and installation experience for Flash altogether, switch to a browser that includes Flash Player as a built-in component, like Google Chrome or Internet Explorer on Windows 8 and higher.

  • Why does the clone stamp work when I go from a darker colour to a lighter colour but not the other way around. How can I lighten up a dark area? Lasso tool takes from the wrong area too.

    Why does the clone stamp work when I go from a darker color to a lighter color but not the other way around? How can I lighted a dark area? The Lasso tool takes from the wrong area.

    c.pfaffenbichler wrote:
    Why do you use the Blend Modes Lighter and Darker at all in this case and not simply Normal?
    And what kept you from posting a screenshot?
    I borrowed the image below for an HDR workshop I ran at the 2010 PSNZ National Convention, to demonstrate a method of removing halos.  You'll remember that halos were a serious problem with early HDR, and while the halos in this image were caused by over sharpening, they are perfect for demonstrating this technique.
    It relies on the fact that halos so often tend to put a lighter tone between the two areas where sharpening is being applied. Whether that is the sky abutting a dark line of hills, or the rock and little tower as in this image.  I've uploaded it at the size it was supplied to me at (about 2700 pixels wide).  So
    Click to open the full image, right click and copy, and paste into Photoshop.
    Select the clone tool, and set its blend mode to Darken.
    Try to sample on a line horizontal to where you want to clone, to give the best tonal match, and start cloning.
    Because the sky is darker than the halo, it overwrites it. But the rock is darker than the sky, so it has no affect.
    It works even better if you clone on a new layer also set to Darken.  No masking, just Photoshop blend mode magic.
    You can also fix the little tower. Use a great big brush — just remember to sample horizontal to match the horizon.
    Back then I was using the same trick with CAs after forgetting to fix them in ACR, and having done too much work to start again after spotting the problem.

  • Why does the charger not charge my battery?  I just bought and installed a new battery from Apple (direct) today

    Why does the charger not charge my battery?  I just bought and installed a new battery from Apple (direct) today

    yes, the charger was working before. 
    so far i have:
    1.  updated my software
    2.  updated to battery 1.2
    3.  took off the "duck" plug and used the macbook pro cord that was provided
    4.  checked and cleaned the pins on the magsafe
    5. checked and cleaned the magsafe port
    any ideas?  i appreciate your response!

  • Why does the old iphoto library still remain after the upgrade? Takes up HUGE space on my laptop

    Why does the old iphoto library still remain after the upgrade? Takes up HUGE space on my laptop

    Why does the old iphoto library still remain after the upgrade? Takes up HUGE space on my laptop
    Actually, it only looks like it takes up additional space. The file size shown is misleading.  When you migrate an iPhoto library to Photos, both libraries will show the media files using hard links. The actual file content of the image files and videos is shared by hard links:
    See this linked document:   Photos saves disk space by sharing images with your iPhoto or Aperture libraries - Apple Support
    You will gain no free storage at all by deleting either the iPhoto Library or the Photos library.  So keep both libraries until you are very sure, that Photos is working well  on your Mac and your iPhoto library has been migrated correctly. Also, check, if you like the workflow in Photos. It is very different from iPhoto and some iPhoto features are not supported.
    There will be no easy way back to iPhoto, if you delete your iPhoto library or the iPhoto application. Apple does not sell it any more.

  • Why does the iTunes 10.4.1 update take me to Apple's download webpage instead of the usual Safari/Quicktime dialog box?

    Why does the iTunes 10.4.1 update take me to to Apple's download webpage (to download a full version of iTunes) instead of the usual Safari/Quicktime pop-up/dialog box where I usually perform the updates?

    iTunes 10.4 and Safari 5.1 contain more than 'just' the OSX Lion-release but stability and security improvements as well.
    For example, here is http://support.apple.com/kb/DL1070 what the Safari 5.1 contains.
    In here http://www.apple.com/macosx/uptodate/ I can't find an "end-date" for the download of the Lion installer.
    Nonetheless, personaly I would download the Lion installer and then copy it (from your Apllications folder) to a secure place (backup harddisk, external hardisk etc.).
    When your IT gives it a go you can then use te Lion installer from inside the Applications folder, but I would also say to make a bootable clone of your current OSX Snow Leopard before starting the Lion installation.
    Stefan

Maybe you are looking for