Yesterday,
I encountered one problem when I tried to retracting farm solution in
SharePoint Server.
. Here is the SharePoint Power Shell code to retract.
Uninstall-SPSolution –Identity
<Name of wsp file>.wsp –Webapplication “<your application name>”
But it
stuck the status with “
Retracting(Scheduled ….)”. Then I cancelled the job and retract with force
command
Uninstall-SPSolution –Identity
<Name of wsp file>.wsp –Webapplication “<your application name>” –force
-confirm:$false
It
still stucking. Then tried to cancelled the job and remove with force command
using following code.
Remove-SPSolution -identity <Name of wsp file>.wsp –Webapplication “<your
application name>” -force -confirm:$false
The solution
has been removed from server. Then tried to add the solution.
Add-SPSolution “File Location and File Name
(e.g D:\test.wsp)”.
Solution has been
successfully added. Then tried to install the solution to SharePoint Sever.
Install-SPSolution –Identity
<Name of wsp file>.wsp –Webapplication “<your application name>”.
But
still stuck. Then I restarted the sharepoint timer services.
Net stop sptimerv4.
When
I run this in command prompt, the service cannot stop and it stuck in Stopping.
Then
open Task Manager -> Processes Tab
-> Select Show Processes from all Users
Kill all process of
w3wp.exe and OWSTimer.exe.
After
that I reset IIS Server in command prompt
iisreset
/noforce
Then tried to stop and
start sharepoint timer services.
Net stop sptimerv4.
Net start sptimerv4.
SPTimer
services is restarted successfully.
Then
install spsolution to sharepoint server.
Now
SPSolution deployed successfully in sharepoint server. JJJ
No comments:
Post a Comment
If this post is useful, pls comment here.