remove service app through powershell recieve timer job error
-
2010년 8월 9일 월요일 오후 2:30
Good Day,
I am having issue with a Service Application I created so I tried to delete it thru central admin, but it didn't delete it just says it is 'stopping'. And it has been stopping for several days. So I decided to run the powershell command "Remove-SPServiceApplication ab609cca-f141-42a7-8810-9582db74a898 -removedata" (I selected A for Yes to all) and it sat there and sat there and after leaving it for the weekend it eventually returned:
Remove-SPServiceApplication : The timer job did not complete running within the allotted time.
At line:1 char:28
+ remove-spsperviceapplication <<<<< ab609cca-f141-42a7-8810-9582db74a898 -removedata
+ CategoryInfo : InvalidDate: <MicrosoftShares...viceApplication:SPCmdletRemoveServiceApplication> [Remove-SPServiceApplication], TimoutExeception
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveServiceApplication
- I was running the powershell cmd as admin
- when it asked if i wanted to perform the action it returned the name of the service app, so i know the GUID was correct (i got the guid from central admin)
- the service app is the user profiles service app
Thanks,
Hyde
모든 응답
-
2010년 8월 9일 월요일 오후 2:58
AHHH NM! In case anyone has a similar issue this was my problem. I checked the logs and I had all kinds of timer issues. And I saw this error message there:
The following error occured while trying to initialize the timer: System.Data.SqlClient.SqlException: The
EXECUTE permission was denied on the object 'proc_getNewObjects', database
'Moss2_Config', schema 'dbo'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
......blah ... blah.... blah ...at Microsoft.SharePoint.Administration.SPNativeConfigurationProvider.InitializeTimer(Int64& cacheVersion,
Object& jobDefinitions, Int32& timerMode, Guid& serverId, Boolean& isServerBusyI saw the denied and was like "what the heck...". Turns out I missed an important step in the installation where you are supposed to assign db_owner to the timer db role... woops! Going to go hang my head in shame now...and practice my reading skills.
- 답변으로 표시됨 Hyde_311 2010년 8월 9일 월요일 오후 2:58

