Hi Steven Hahn, it is a pleasure to be able to help you : )
According to our research, this is a common issue encountered when installing and configuring SharePoint Server.
After the SharePoint completes successfully. However, the SPSearch database is not updated. "Database is too old and needs to be upgraded."
You can run the command below in SharePoint management Shell to check the database upgrade status:
Psconfig -cmd upgrade -inplace b2b -wait -force
For more information, you can refer to the documentation: Database is too old upgrade is required | Microsoft Learn
And for the error message:
An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered. CanUpgrade [StateDatabase Name=SP_State_Service] failed. (EventID:an58c) Exception: The SELECT permission was denied on the object 'Versions', database 'SP_State_Service', schema 'dbo'. The SELECT permission was denied on the object 'Versions', database 'SP_State_Service', schema 'dbo'. The UPDATE permission was denied on the object 'Versions', database 'SP_State_Service', schema 'dbo'. (EventID:an58c) Cannot upgrade [StateDatabase Name=SP_State_Service]. (EventID:an59g)
This issue may be caused by installing newfeature by running the PS_Config needs owner permission. So after adding db_owner, the error fixed.
Hope this helps.
Best Regards.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.