{"id":500,"date":"2019-01-11T13:54:53","date_gmt":"2019-01-11T19:54:53","guid":{"rendered":"http:\/\/zewwy.ca\/?p=500"},"modified":"2019-01-11T13:54:53","modified_gmt":"2019-01-11T19:54:53","slug":"sts-security-token-service-on-sharepoint-2013","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2019\/01\/11\/sts-security-token-service-on-sharepoint-2013\/","title":{"rendered":"STS Security Token Service on SharePoint 2013"},"content":{"rendered":"<p>Today I was bringing my stepping server back up. In this case I use it to upgrade content databases from 2010 -&gt; 2016.<\/p>\n<p>Since you can&#8217;t directly upgrade, since the config data had been wiped, I was going through the config wizard to get it rebuilt. Now the wizard will complain if the old website still exists. So for some reason I decided to remove all the old sites and app pools. figured it would get rebuilt.<\/p>\n<p>Now the wizard completed without a hitch, and I was off creating a web app and some content databases to delete as I&#8217;d test and mount the 2010 content databases for staging.<\/p>\n<p>Oddly after I had mounted the database I had noticed the server was failing to successfully call &#8220;Get-SPSite&#8221;, saying that it was due to the security token store service.  There&#8217;s lots of links out there with similiar issues&#8230; such as <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/azure\/en-US\/9f65b69e-379b-4f08-be7b-2732c6f40a3c\/sharepoint-2013-newspsite-there-was-no-endpoint-listening-at?forum=sharepointadmin\">this<\/a>, <a href=\"https:\/\/manojviduranga.wordpress.com\/2014\/02\/17\/there-was-no-endpoint-listening-at-httpservername5725-resourcemanagementservicemex-that-could-accept-the-message-this-is-often-caused-by-an-incorrect-address-or-soap-action-see-innerexception\/\">this<\/a>, <a href=\"https:\/\/pholpar.wordpress.com\/2016\/04\/18\/cannot-find-an-spsite-object-error-from-powershell\/\">this<\/a>, <a href=\"https:\/\/sharepoint.stackexchange.com\/questions\/74264\/there-was-no-endpoint-listening-at-url-sharepoint-2013-provider-hosted-app\">this<\/a> and even <a href=\"http:\/\/answers.flyppdevportal.com\/MVC\/Post\/Thread\/e07f9f7c-184d-43d5-8291-99514b9028ef?category=sharepointadmin\">this<\/a> &#8230;. most of which are dead ends.<\/p>\n<p>There&#8217;s <a href=\"https:\/\/docs.microsoft.com\/en-us\/SharePoint\/technical-reference\/the-security-token-service-is-not-available\">MS support page<\/a> on this as well, however I may have accidentally deleted that App Pool&#8230;<\/p>\n<p>Then I stumbled across <a href=\"https:\/\/blogs.msdn.microsoft.com\/sambetts\/2014\/03\/17\/sharepoint-health-report-error-the-security-token-service-is-not-available\/\">this<\/a>, a MS blog post, which I find a lil more useful usually cause they are more hands on&#8230; in this case since I was already hooped I gave the command a try, and it ran just like his&#8230;<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/01\/50\/44\/metablogapi\/6888.clip_image010_thumb_333C564B.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/01\/50\/44\/metablogapi\/6888.clip_image010_thumb_333C564B.jpg\" alt=\"\" width=\"429\" height=\"293\" \/><\/a><\/p>\n<p>I wasn&#8217;t sure if <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/14887753-bc8d-4337-b8d1-c3f16e5ba3b6\/errors-in-the-event-view-about-claims-based-authentication\">this<\/a> was enough, then I found this and ran these commands as well&#8230;<\/p>\n<pre>$sts = Get-SPServiceApplication | ?{$_ -match \"Security\"}\r\n$sts.Status\r\n$sts.Provision()<\/pre>\n<p>after a reboot, all of a sudden Get-SPSite was working again!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I was bringing my stepping server back up. In this case I use it to upgrade content databases from 2010 -&gt; 2016. Since you can&#8217;t directly upgrade, since the config data had been wiped, I was going through the config wizard to get it rebuilt. Now the wizard will complain if the old website &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2019\/01\/11\/sts-security-token-service-on-sharepoint-2013\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;STS Security Token Service on SharePoint 2013&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8,9],"tags":[139,140,138],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-server-administration","category-sharepoint","tag-security-token-service","tag-sharepoint","tag-sts"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/500\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}