Office Web Apps for SharePoint on-premise

My Office Web Apps (Office Online Server--OOS--in my case) server stopped rendering Office Docs with an error:


Sorry, there was a problem and we can't open this document. If this happens again, try opening the document in Microsoft Word.


The error also included a session ID. I was able to find the session ID in the ULS logs but it didn't seem to help as the error was quite generic. I had a load balanced pair. It made troubleshooting less than ideal.


Nothing I did to try and resolve it made any difference. Configuring OOS or reconfiguring is really super simple and requires only a few minutes of downtime. It's so quick to rebuild OOS or OWA by following these steps in this link:
https://blogs.technet.microsoft.com/office_web_apps_server_2013_support_blog/2013/12/20/office-web-apps-2013-rebuild-your-farm-in-a-few-easy-steps/


Open PowerShell and let's fix it!


Remove-OfficeWebAppsMachine on both OOS servers. Reboot after the command completes.


Next I ran this command on the "first" OOS server (Quotes around the certificate name and URL are getting stripped out of this page):


New-OfficeWebAppsFarm -InternalURL "https://OOSserver.fqdn.domain.com"  -EditingEnabled -OpenFromURLEnabled -CertificateName "cert-friendly-name"


On the second, load balanced OOS machine I ran this command:
New-OfficeWebAppsMachine -MachineToJoin OOSserver.fqdn.domain.com


Then on one of the SharePoint servers I ran these two commands:

Remove-SPWOPIBinding -All:$true
New-SPWOPIBinding -ServerName "OOSserver.fqdn.domain.com"


Tested and it worked! Quick rebuild and back online in a few minutes!

Comments

Popular posts from this blog

Exchange 2010 event errors 2601, 2604, 2501

"The following factors also affect the level of access for" user with excess permissions

Robocopy Error 31 A device attached to the system is not functioning