Good day, I am trying to deploy SP site collection from development server to live but noticed I had issues with User Profiles so I deleted and in the process of creating another User Profile Service Application using Powershell, It returned this error 'New-SpProfileServiceApplication : Timeout expired .' as shown in the attached.
I've searched and all options don't seem to work. Urgent help needed please.
- Does your server and SQL server meet the minimum specification for SharePoint? The error suggests that it simply isn't able to complete the action in a normal amount of time.Callum Crowley– Callum Crowley2020-12-07 21:33:11 +00:00Commented Dec 7, 2020 at 21:33
- Yes they do. It's a live server like I said. There are a number of services running on it. The SQL server is a cluster thoughAina Joseph– Aina Joseph2020-12-08 03:46:05 +00:00Commented Dec 8, 2020 at 3:46
- Have you considered giving the user profile service it's own application pool?Callum Crowley– Callum Crowley2020-12-08 09:54:44 +00:00Commented Dec 8, 2020 at 9:54
- Yes I have. But it returns the same error.Aina Joseph– Aina Joseph2020-12-08 10:21:31 +00:00Commented Dec 8, 2020 at 10:21
- Is there anything in the ULS logs?Callum Crowley– Callum Crowley2020-12-08 10:26:38 +00:00Commented Dec 8, 2020 at 10:26
1 Answer
Thanks to all that contributed. I will drop the solution in case there is someone who needs it.
USER PROFILE SERVICE CREATION TIMEOUT ISSUES:
STEP 1: To delete User Profile service Application
- Get-SPServiceApplication --> This gives a list of service apps
- Copy the particular id of the app to be deleted
$todel = Get-SPServiceApplication 00a368c9-21d5-4ba4-b03a-fe76c7960bd9$todel.Delete()
STEP 2*: Get faulty timer jobs that have been orphaned after deleting User Profile Service Application
Get-SPTimerJob | ? { $_.DisplayName -eq $null }| select Id--> This list the id of all orphaned jobsPick the id's one by one and pass into a variable as it is below(N.B: you can have multiple line, copy and paste at once)
$FaultyJob = Get-SPTimerJob d8b33cf4-39c4-49ca-8a02-67d77138f3e1 $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob 871b7272-ccde-4556-a142-d2c8b7e8223f $FaultyJob.Delete()$FaultyJob = Get-SPTimerJob 384a4284-e55c-4e48-bb44-2d822f78c751 $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob deebdfff-eb31-493d-854e-319ca3f27293 $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob fe19f397-1dbf-412b-86bb-cb7e03a33cc2 $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob 9aea80a1-f921-40b2-8383-90c9ee79fdec $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob 5f129a1e-fb18-49ab-8cc6-6a0b480b7c08 $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob 577f08cb-40bc-4649-8a31-07605e177ab8 $FaultyJob.Delete() $FaultyJob = Get-SPTimerJob 5f129a1e-fb18-49ab-8cc6-6a0b480b7c08 $FaultyJob.Delete() STEP 3:
- Check all servers in the farm to confirm they are all up and running
- Start all services on the servers. To start, Central Administration > Manage services on this server
STEP 4
- Launch the configuration wizard.
Voila! you have the user profile service application created.