I have inherited a TFS server that was also hosting a sharepoint collection. I moved the server onto a new domain - let's call the old one DOMAIN and the new one NEW. All seemed to go OK - where I could find a username on DOMAIN I made TFS and sharepoint admins part of the new domain. The services (SQL, Sharepoint, TFS) now start as admins of NEW, and I had to mess around with database owners in SQL to change them too.
It was all running OK so I deleted the trust from DOMAIN to NEW and closed down the last DC on DOMAIN. (That was server 2012 and NEW is on 2016 level)
While TFS seems to work OK, Sharepoint is playing up - I can't login to the server on port 80 where the collection is, although I can login to the admin pages on a different port. When going to the collection directly I get:
An unexpected error has occurred.
When I navigate to http://server I get
HTTP/1.1 200 OK Server: Microsoft-IIS/8.5 Date: Fri, 21 Jul 2017 12:11:46 GMT Connection: close
When I go into the admin pages and try to change for example authentication providers on the port 80 website, I click Default, then Save and get
Sorry, something went wrong The trust relationship between the primary domain and the trusted domain failed. Technical Details Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: df73079e-d47a-a09d-3885-30c7ccf98f61
OK so I thought I would get everything back again, so I booted up the DOMAIN DC, reestablished the trust from NEW to DOMAIN both ways, but still the same thing.
There are a lot more details I can go into but if someone can point me in the right direction I would be grateful. I don't know sharepoint well, and I know TFS even less! They are the 2013 version by the way.