Can't work with Office Online Server from SharePoint 2019

Vasily Zaytsev 241 Reputation points
2020-12-08T09:23:35.977+00:00

Can't work with Office Online Server 2016 from SharePoint 2019.
I have Russian SharePoint 2019 Enterprise 16.0.10337.12109 with English Language Pack (with SU KB4486714 16.0.10368.20022)
AND
Office Online Server 16.0.7601.6800.
Web application on SP2019 via HTTP and OOS via HTTP.
On OOS:
New-OfficeWebAppsFarm -InternalURL "http://server1.domain1.local" -AllowHttp -EditingEnabled
On SP2019 (http://server2.domain2.local):
New-SPWOPIBinding -ServerName server1.domain1.local -AllowHTTP
Set-SPWOPIZone -zone "internal-http"
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
Set-OfficeWebAppsFarm -AllowHttpSecureStoreConnections:$true
When I open document library document on SP2019 for OOS, I have error in Microsoft Word Online with correlation id.
On this correlation id I have two interesting messagse in ULS log viewer for domain2\user (not system account on SP2019):

  1. «WopiFrame: OnLoad Succeeded with TargetUrl: http://server1.domain1.local/wv/wordviewerframe.aspx?ui=ru%2DRU&rs=ru%2DRU&WOPISrc=http%3A%2F%2Ftest%2Dsp2019%2F%5Fvti%5Fbin%2Fwopi%2Eashx%2Ffiles%2F20aec7489dc049a2997edeb0fe5075ff&wdEnableRoaming=1&mscc=1&hid=503c959f-fd73-60e7-d440-04383a525ed0, fileUrl: http://server2.domain2.local/Shared Documents/4. test/4.3 test/test.docx, AccessToken: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Imw4cFdYOWotY2NuUkN3NDdYeHhscTY2S3ZwbyJ9.eyJhdWQiOiJ3b3BpL3Rlc3Qtc3AyMDE5QGE0YTVhZmM0LWI4NDctNGJmNi04NGEwLTNlNDRlYmE2ZGU3NiIsImlzcyI6IjAwMDAwMDAzLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMEBhNGE1YWZjNC1iODQ3LTRiZjYtODRhMC0zZTQ0ZWJhNmRlNzYiLCJuYmYiOiIxNjA3NDE4MjYxIiwiZXhwIjoiMTYwNzQ1NDI2MSIsIm5hbWVpZCI6IjAjLnd8dGxcXHZrcGFfZGV2X2FkbSIsIm5paSI6Im1pY3Jvc29mdC5zaGFyZXBvaW50IiwiaXN1c2VyIjoidHJ1ZSIsImNhY2hla2V5IjoiMCkud3xzLTEtNS0yMS00MTE4NTg3ODM3LTIyNDkwMzUyNTAtMzIwNzY3MTY5NC0xOTkxIiwiaXNsb29wYmFjayI6IlRydWUiLCJhcHBjdHgiOiIyMGFlYzc0ODlkYzA0OWEyOTk3ZWRlYjBmZTUwNzVmZjtreU9hRFlzMnl1S0VqdHJCZllIYlhBUmIzSjA9O0ludHJhbmV0OztCMDA4NDMxMDYxO1RydWU7In0.S6YwnUUVgwIAo2care2wZoHqjegVqvVKSHzrISMbFQM1XbQBlqmskO4Ozqu-ZX4p0ggOkHQ8PRPeEvQKD6U1akHhOLvJcgLzg5taLlGnOHpuuSoNO8CwJeJ6sYXHMuGosPf3EU0iAQDU0YIndLwwuXV0PGfsE_eNvxo6HEalTnqlIzUUS1vqS-Dmr9WeQArgIlf5IfIj4r_NG4VE8ot6m-xvMuaJpybXmdzAWqZPmxszidBf0wgMYGUyIQsOq7oSA9ZlxevKPfHNeapLHoMtnNFk1YljKCTKHBnU7C0Tf5wTW34jEr5immfHINzUg7buKQYIR_h1j2o6fhIrSTg9Lg»
  2. «PermissionMask check failed for {A90239EB-E2BE-4810-91CF-A43146F7AFE3}. Asking for 0x04000000, have 0xB008431061».
    With best regards, Vasily Zaytsev
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
639 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasily Zaytsev 241 Reputation points
    2020-12-08T09:49:18.587+00:00

    The problem was with SP2019 permission - need write permission for user, and WOPI DNS can't resolve SP2019 (write it in hosts of WOPI server).


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.