Timeout issues when provisioning service applications SharePoint 2016

I am facing issues with a newly created SharePoint 2016 environment. The farm has 1 WFE, 1 app server, 1 search and 1 SQL server. All servers have 16-20 GB RAM. SharePoint 2016 install is complete and the product and config wizard has been run on all servers except the SQL server. Now I am at the step of creating service applications. The issues faced are:

  1. Service applications created through UI are taking a very long time to create(30 mins from UI and over 2 hours from powershell)
  2. The completion results in a ‘Request timeout error’ / and results in a partially created service application. Usually it doesn’t create the proxy and is the SA is stuck in starting state.
  3. Timeout occurs in the case of Deleting these applications as well hence I have to you the deleteconfiguration stsadm command to delete them and then delete the SA Database manually.
  4. one of the timer jobs ‘UserProfileApplicationProxy – Unified Group Processing High Performance Job’ keeps failing

Service applications that I have tried to create causing issues:

  1. Managed metadata service application
  2. BCS
  3. Usage and health data Collection Service application
  4. User profile service application
  5. Search service application

Resolutions tried: 1. IISRESET 2. Clearing timer job cache 3. Manually creating service applications and proxies using PowerShell and provisioning them. 4. Increasing shutdown time on the application pool for central admin in IIS 5. Installing updates(if any) and running products and config wizard again

I created a Web application and site collection and both of those got created in under 5 minutes.

Could anyone please tell me what may be the reason for the timeouts and why my service applications are breaking?

User Profile Service Application Stuck in Provisioning

My User Profile Service Application (NOT the synchronisation Service) stopped working so I deleted and tried to recreate it using PowerShell.

I have tried a number of times – deleting it before I start again (and the Databases). Using the Central Administration deletion does not work so I use a mixture of STADM -o deleteconfigurationobject -Id {ID of USer Profile Service Application} and then a PowerShell script to delete the timer jobs. (PowerShell Remove-SPServiceApplication fails with a The SPPersistedObject with id, {Id}, could not be found.)

I have tried creating the User Profile Service Application using Central Administration and using PowerShell (running under the \SP_Farm account so the schema on SYncDB is correct).There are no CRITICAL or UNEXPECTED items in the Logs.

The last relevant item in the ULS logs is a message saying it is waiting for a timer job to finish.

“Waiting for service application instance provisioning job to complete for service application with name ‘User Profile Service’ and type ‘Microsoft.Office.Server.Administration.UserProfileApplication’ “

The SPTimer service is still running.

I am running SP2013 with the September 2016 CU.

What am I missing ?

XCode 10 – Failed to create provisioning profile – There are no devices registered

When I try to create a profile to build an App, going on Project -> General -> Signing, I select my Team (Personal) and I get two errors:

Failed to create provisioning profile.

There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.

And:

No profiles for ‘com.my.app.id’ were found

Xcode couldn’t find any iOS App Development provisioning profile matching ‘com.my.app.id’.


I tried to check many tutorials and questions but nothing helped me to solve this errors. Many urls brings me to the Apple Development website but there I only have the option to pay for the membership, and as I understood that’s not necessary to build an App in my device.

Missing Provisioning Profile – App must contain a provisioning profile

my code is programmed with Ionic / Cordova, but that should not be part of the problem. I have the following problem:

I have an old account at Apple, from which I no longer know the security queries and thus I can not do the 2-way authentication. The developer account is therefore no longer available. So I have created a new Apple ID and the new account in the old as admin invited and wanted to at least update the apps there.

I have also created corresponding certificates for the new Apple ID. When I upload the app I get the following error message: App Store Connect Operation Error

ERROR ITMS-90174: “Missing Provisioning Profile – App must contain a provisioning profile in a file name embedded.mobileprovision.

I have not yet created Provisioning Profiles because I can not create an App ID. There is always the error message

There were errors in the data supplied. Please correct and re-submit.

An App ID with identifier ‘com.domainname’ is not available. Please enter a different string.

The problem is with the BundleID, which I can not create. Every other one is successful, just not that particular one. Is it because it’s already in use? The BundleID but should still be as I have deposited it in the app. That is also so, I have made it several times already by copy & paste, so I do not have any spelling mistakes, but I just can not enter this BundleID to me to create the correct AppID and without AppID I get of course not my Provisioning Profiles created and probably the first error message, right?

Can someone help me? With the old Apple ID I’m on the developer account everywhere else on it. I can not perform 2-way authentication because of the lack of answers from the security queries.

Creating a Simple Post Provisioning Script

I am creating a simple post provisioning script for Linux. I need the bash .sh to change the settings of the sshd_config file to set PermitRootLogin, PasswordAuthentication, and PermitEmptyPasswords to no. I am using a PATH set by export and then echo the PATH and attempt to change the sshd_config using usr/bin/sed, will this work for my purposes?

```bash #!/bin/bash ### export PATH ### export PATH=$  PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin echo "$  PATH" usr/bin/sed -i 's/#\?\(PermitRootLogin\s*\).*$  / no/' /etc/ssh/sshd_config usr/bin/sed -i 's/#\?\(PasswordAuthentication\s*\).*$  / no/' /etc/ssh/sshd_config usr/bin/sed -i 's/#\?\(PermitEmptyPasswords\s*\).*$  / no/' /etc/ssh/sshd_config service sshd restart ``` 

Using Sharepoint PnP to get SchemaXml and use it while provisioning an SPFx List Instance

I am creating an SPFx Web Part that will provision a list instance upon installation. I have successfully created and provisioned a basic list, however i cannot seem to customize it by altering the schema given in this guide.


So i decided to try creating the list by hand, and use the SharePoint PnP command

Get-PnPList "ListTitle" -includes SchemaXml

to provide a template with the correct data.


I was able to get this xml, but it doesnt seem to be in the correct formatting. This also caused an error in installation to a site collection.

Essentially, I am wondering if it is possible to download a schema from an existing list and use it while provisioning a new list instance using an SPFx Web part. And if so, what am i doing wrong?

Thanks

Provisioning Quicklinks

I have a request to create a template that includes a QuickLinks web part. I noticed that PNP exports the web part like this:

</pnp:CanvasControl> <pnp:CanvasControl WebPartType="QuickLinks" JsonControlData="{&quot;id&quot;: &quot;c70391ea-0b10-4ee9-b2b4-006d3fcad0cd&quot;, &quot;instanceId&quot;: &quot;640b6931-0ad6-4efc-9225-b84761f84b8e&quot;, &quot;title&quot;: &quot;Links&quot;, &quot;description&quot;: &quot;Important documents.&quot;, &quot;dataVersion&quot;: &quot;2.2&quot;, &quot;properties&quot;: {&quot;items&quot;:[{&quot;sourceItem&quot;:{&quot;itemType&quot;:2,&quot;fileExtension&quot;:&quot;&quot;,&quot;progId&quot;:&quot;&quot;},&quot;thumbnailType&quot;:3,&quot;id&quot;:1}],&quot;isMigrated&quot;:true,&quot;layoutId&quot;:&quot;CompactCard&quot;,&quot;shouldShowThumbnail&quot;:true,&quot;buttonLayoutOptions&quot;:{&quot;showDescription&quot;:false,&quot;buttonTreatment&quot;:2,&quot;iconPositionType&quot;:2,&quot;textAlignmentVertical&quot;:2,&quot;textAlignmentHorizontal&quot;:2,&quot;linesOfText&quot;:2},&quot;listLayoutOptions&quot;:{&quot;showDescription&quot;:false,&quot;showIcon&quot;:true},&quot;waffleLayoutOptions&quot;:{&quot;iconSize&quot;:1,&quot;onlyShowThumbnail&quot;:false},&quot;hideWebPartWhenEmpty&quot;:true,&quot;dataProviderId&quot;:&quot;QuickLinks&quot;,&quot;webId&quot;:&quot;{siteid}&quot;,&quot;siteId&quot;:&quot;{sitecollectionid}&quot;}, &quot;serverProcessedContent&quot;: {&quot;htmlStrings&quot;:{},&quot;searchablePlainTexts&quot;:{&quot;title&quot;:&quot;Handige links&quot;,&quot;items[0].title&quot;:&quot;TEST&quot;,&quot;items[0].description&quot;:&quot;&quot;,&quot;items[0].altText&quot;:&quot;&quot;},&quot;imageSources&quot;:{},&quot;links&quot;:{&quot;baseUrl&quot;:&quot;{hosturl}{site}&quot;,&quot;items[0].sourceItem.url&quot;:&quot;https://www.mytenant.sharepoint.com&quot;},&quot;componentDependencies&quot;:{&quot;layoutComponentId&quot;:&quot;706e33c8-af37-4e7b-9d22-6e5694d92a6f&quot;}}, &quot;dynamicDataPaths&quot;: {}, &quot;dynamicDataValues&quot;: {}}" ControlId="c70391ea-0b10-4ee9-b2b4-006d3fcad0cd" Order="1" Column="2" /> </pnp:Controls> 

Now, this doesn’t look nice. I understand that because the data is stored as attribute, it cannot be preseted as CDATA in the xml, but is there any way to use unescaped JSON in the PnP template with either some tricky xml import function (similar to xinclude for combining xml’s) or with the PnP engine itself?

CSOM site provisioning error: The request uses too many resources

I continue to get an error (sometimes) when provisioning a web using CSOM. According to this MSDN article, this error is returned when the CSOM request exceeds 2MB. I watched the call in Fiddler and the request is not greater that 2MB. What could the problem be? Below is the code and request/response from fiddler:

   using (ClientContext cc = new ClientContext(url))     {         cc.Credentials = new SharePointOnlineCredentials(username, password);         WebCreationInformation information = new WebCreationInformation();        information.WebTemplate = "CMSPUBLISHING#0";        information.Description = "My New Site";        information.Title = "My New Site";        information.Url = "newsite";        // Currently all English, could be extended to be configurable based on language pack usage         information.Language = 1033;         information.UseSamePermissionsAsParentSite = false;          cc.Web.Webs.Add(information);         cc.ExecuteQueryRetry(); } 

Fiddler Request:

<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="1158" ObjectPathId="1157" /><ObjectIdentityQuery Id="1159" ObjectPathId="1157" /></Actions><ObjectPaths><Method Id="1157" ParentId="923" Name="Add"><Parameters><Parameter TypeId="{8f9e9fbe-189e-492f-884f-98f9ef9cc4d6}"><Property Name="Description" Type="String"></Property><Property Name="Language" Type="Int32">1033</Property><Property Name="Title" Type="String">Manuals</Property><Property Name="Url" Type="String">manuals</Property><Property Name="UseSamePermissionsAsParentSite" Type="Boolean">false</Property><Property Name="WebTemplate" Type="String">CMSPUBLISHING#0</Property></Parameter></Parameters></Method><Property Id="923" ParentId="384" Name="Webs" /><Identity Id="384" Name="7e19049d-e009-2000-008d-b659834a548f|740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:a43f2ef7-f1aa-423a-ad26-59b66edef6bb:web:a30643dc-7034-47ae-b87e-119ef8a2975d" /></ObjectPaths></Request> 

Fiddler Response:

HTTP/1.1 200 OK Cache-Control: private Content-Type: application/json; charset=utf-8 Vary: Accept-Encoding Server: Microsoft-IIS/8.5 X-SharePointHealthScore: 0 X-SP-SERVERSTATE: ReadOnly=0 SPClientServiceRequestDuration: 7513 X-AspNet-Version: 4.0.30319 SPRequestGuid: 7e19049d-601e-2000-008d-b31e125c7e26 request-id: 7e19049d-601e-2000-008d-b31e125c7e26 X-RequestDigest: 0x1B109C2C5737406AB9E9A2983D743443F86CEF7D92CD6041BB1510FCDD2A4866A55C5BF0D32E4E55C4448C12C9727F191740AAF929E6353320C1CAE0FBBC1D16,07 May 2015 17:27:33 -0000 X-FRAME-OPTIONS: SAMEORIGIN X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 16.0.0.4021 X-Content-Type-Options: nosniff X-MS-InvokeApp: 1; RequireReadOnly P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI" Date: Thu, 07 May 2015 17:27:40 GMT Content-Length: 574  [ { "SchemaVersion":"15.0.0.0","LibraryVersion":"16.0.4021.1200","ErrorInfo":{ "ErrorMessage":"Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: 'https:\u002f\u002fslalomdev123.sharepoint.com\u002fsites\u002fPaulDev\u002fcompany\u002fACS\u002fmanuals' OriginalException: The request uses too many resources.","ErrorValue":null,"TraceCorrelationId":"7e19049d-601e-2000-008d-b31e125c7e26","ErrorCode":-2146232832,"ErrorTypeName":"Microsoft.SharePoint.SPException" },"TraceCorrelationId":"7e19049d-601e-2000-008d-b31e125c7e26" } ]