SharePoint 2016 Farm 2 Nodes
Windows 2016 Data Center
I am trying to access Central Administration
Takes a very long time to present this error:
Server Error in '/' Application.
Recently I had to rebuild my SQL Servers
All Databases are online now
The SharePoint User Code Host service stops every now and then also.
All Application pools are started in IIS
Added the accounts back in SQL
This happens on both Node 1 and Node 2.
Is a reinstall needed?
Do not know what else to look for.
Microsoft SharePointWindows OSSQL
Last Comment
Walter Curtis
8/22/2022 - Mon
Jeff Glover
This happened to us when we rebuilt our SQL server. SharePoint was using a SQL Alias and we forgot to add it to the new server. I would check there and also make sure the SPN for the new SQL server is correct.
Member_2_6492660_1
ASKER
how do I check the spn??
Jeff Glover
On the SQL server, from command line, SETSPN -L <servername>
I don't work with instances at this time but no each instance should have a SPN like this: MSSQLSvc/sqlbox1.mydomain.org/instance2. There may be more. Since I am not sure how you rebuilt the SQL box(es), are you using the exact same names as before? Server and instance names? If not, you may have to re-run the SharePoint config wizard to find the Configuration database again.
Not sure what to tell you. You can run the SharePoint Products Configuration wizard to see the SQL server you are connected to. (if it sees SQL, it will be in the first few screens. You can always exit out without doing anything. If it does not see the SQL server, you should be able to use it to reconnect the farm to the SQL instance
I tried to launch the SharePoint Products Configuration Wizard and it takes a long time as does the Central Administration site.
The utilization on the server CPU and memory is very low
Do not understand why the applications take so long to present themselves.
Trying on both nodes.
Jeff Glover
If it talks a long time, it may be timing out trying to find the SQL server. I would look in your DNS. Sort by IP and find the IP of your old SQL server. See if it has multiple entries. if so, one may be the SQL alias used by SharePoint. I only say this because what you are seeing is exactly what we saw when we replaced our SQL server and Our new SQL admin didn't know about the alias. We added it, rebooted SQL and all came back up.
Member_2_6492660_1
ASKER
Jeff
Checked my DNs and yes I had two entries for the server listed. I remove the inactive one.
checked my nslookup and it was gone on the sharepoint server.
Did you check your settings in the web.config files in the IIS folder and the LAYOUTS folder?
Cheers
Member_2_6492660_1
ASKER
Short of a reinstall any other ideas?
Walter Curtis
Great information in this thread. Here are just a few other points, maybe will help, maybe not.
It is mentioned that the SQL Servers were rebuilt. Also mentioned that accounts added back in SQL. Can you access SQL from the SharePoint server. There are various ways to check for connectivity to SQL and importantly that the SQL ports are open.
I use the executable that should be on your server named SQLTest.UDL it is an executable that you can click on. This will help you test connectivity to your SQL servers as well as SQL alias. If it fails, it is not smart enough to tell you why. It could be the port (TCP/1433) is not open or could be that the user account is invalid for some reason, be it a password problem or a problem with the account in SQL.
Once it has been confirmed that you have access to SQL, try the configuration wizard again.
Yes when I rebuilt the SQL server I had to add back the security logins i do not remember which ones I had this time I need to document them
I use mixed mode authentication.
I added back SPFarm SPAdmin SPADBA account they are all domain accounts should I make them local accounts?
I do not remember which accounts I used during the install any way to find out?
Walter Curtis
You SPFarm and SPAdmin accounts should have dbCreator and Security Admin roles. Once you are back on line with SharePoint you can clean up account permissions as needed. I am not sure what your account SPADBA is for, but maybe grant that account the same access.
One thing you can check to maybe determine which account is your farm account is to check on one of your SharePoint servers the membership of a local machine user group named WSS_RESTRICTED_WPG_V4. Members of that group should be SP Farm administrators and will need access to SQL. Just guessing, but the accounts you list above may be in that group.
You mention that you have two SQL nodes. Make sure you set the ports the same on each server.
Also, when using the test tool, you might want to test each server directly before testing using the SQL Alias or cluster name.
Hope that helps -
Member_2_6492660_1
ASKER
Guys
First thank you for all the helpful information.
I believe that before My SQL instance name was in lower case letters now I made it all upper case.
I discovered this when using the sqltest.udl tool
So where in the config is the SQL instance name kept? Need to modify that is my guess
Walter Curtis
You mention that there are three instances on the SQL server.
I don't have an answer for you. I have not installed SharePoint on a multiple instance SQL server recently. If I recall, when you run the set up wizard or the psconfig tool, you can enter in the instance. If you can do that, make sure your use this syntax; servername\instancename
Sorry to say, I doubt it. When you do see the SQL server name, is it the name of the instance you have SharePoint using? I never use different ports for SharePoint (never need to) but you can at least see what SQL server name you are using by going to the registry of your SharePoint server. the Key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\Secure\ConfigDb will have a String called DSN. The DataSource part of the string should tell you what SQL name you were using.
Otherwise, if you plan to blow away what you have and start over, remember to back up all your Content DBs. You can restore them after to the new farm and save some time.
Walter Curtis
Agree with Jeff
Member_2_6492660_1
ASKER
Jeff/Walter.
I made a change to the registry and now the SharePoint Product Configurator comes up almost instantly now.
But now it fails because of the login name.
I was using local spfarm account on the SQL server after running this I saw the error as it was looking for our\spfarm.
So I deleted the spfarm local account and created the windows authenticated account from my AD
This is the same account I logon to the SharePoint server with.
In SQL I have both Local Account and Authenticated accounts selected.
I used the SQLTest.udl program an it fails also to connect.
My password is simple 8 characters 6 letters and 2 numbers all lower case.
But I think I used the domain account when installing not sure
So, yes, SharePoint remembers the accounts. the passwords are used in services. The registry setting I told you about was just to know what SQL you were looking at. Not to change it. This way, you could make sure you could resolve the name. At this point, since you have changed accounts (not sure why you would ever use a local account for anything with SharePoint but...). My recommendation is to backup your content databases. Normally they will start with wss_content_. Once you have them backed up, I would make a new SharePoint server, clean installation. Once you have all the services setup, then restore the databases. Then you can use the SharePoint Powershell to mount them to sharepoint. Perhaps Walter has a better idea but given what you have said, this is the route I would take.
Member_2_6492660_1
ASKER
Jeff/Walter
It took awhile but after I changed the account to a domain account using the sqltest.udl tools I am now able to connect
The SharePoint Product Configurator now runs longer but it still fails this time with different error.
Any ideas?
Walter Curtis
Thomas - you are doing good. But I agree with Jeff. Backup the content databases. On your first or primary SharePoint server make sure you are logged in with your install account or farm account. (They may be different accounts, they may be the same.) Run setup.exe from the SharePoint installation source. One of a few things may happen:
A windows comes and says SharePoint is already installed and the process stops.
The install process will go through with no error. If that is the case run the configuration wizard and it should ask you which configuration database to use, it may ask which farm do you want to join. (Should only be one selection.) Will probably ask for the server name too, use the servername\instance format.
If that doesn't work well, you can try the repair option from 'Program and Features' found in the control panel.
If you receive errors that can't be overcome, Jeff has the best idea. Fresh install after doing a full backup of content. You may have to use control panel to uninstall SharePoint before you do a new install.
Every situation is different. A new install requires a lot of effort, but you should keep moving forward. I repair may never successful. Neither one is fun to be honest.
I have had good luck with SharePoint uninstalls in the past. The uninstaller should remove IIS sites under normal circumstances. In this case I am not sure. That is why Jeff's advice about starting from a clean OS is very good advice. I realize the extra time it adds to the process however.
I agree, SharePoint can be very crazy sometimes. I had a four hour outage this morning thanks for Windows Updates for SharePoint servers.
Walter Curtis
Any luck?
Member_2_6492660_1
ASKER
Walter,
Just got out of Hospital had surgery.
Before I went in I built two new Windows 2019 Servers Almost done with them.
I need to test on the new servers access to my sql server prior to next step
Next step is to install SharePoint.
Before I do that I need to remove all the SharePoint databases from my sql server.
I gave up on trying to uninstall on NODE 2 those two machines will shutdown or repurpose later.