Recently I came across Workflow errors and resolved by manually executing TSQL to update Workflow Resource and Workflow Instance tables. Wild but true. The SQL files can be found on the C:\ drive of the Workflow Manager server. After running SQL, the windows service promptly started.
Details below on the error symptom and resolution. Cheers!

Error Symptoms
- Windows Service. Error 1067 – The process terminated unexpectedly.
- HTTP 500 – Internal Server Error Occurred when opening http://workflow:12291 or https://workflow:12290 in a web browser
- Register-SPWorkflowService : An internal error occured. For more details, please see the server logs. Client ActivityId :3033487b-7c53-4f17-ae08-8516c2ec0bef.
Resolution
- RDP to Workflow Manager
- Open “C:\Program Files\Workflow Manager\1.0\Workflow\” folder
- Open file “wfServerUpgradePolicy.config” and look for <wfupgrade targetVersion=”1.3.0.0”>
- Open SQL and execute “SELECT * FROM [StoreVersionTable]” on [WFResourceManagementDB]
- Compare CONFIG file to to SQL table versions
- They mismatch. This the root cause of errors above.
- Open “C:\Program Files\Workflow Manager\1.0\Workflow\” folder
- Execute SQL scripts to update
- WorkflowServiceInstanceManagementDBUpgradeScript.sql
- WorkflowServiceResourceManagementDBUpgradeScript.sql
- Register-SPWorkflowService -SPSite http://sharepoint -WorkflowHostUri http://workflowserver:12291 -AllowOAuthHttp -Force
- Test to verify
Error Screenshots



Resolution Screenshots








