Office Online error opening documents

When trying to open a document, I am getting the below error:

Something went wrong and we couldnā€™t load this content. Refreshing the browser may fix the problem.

Session ID: e05905f5-edfb-476a-ab57-4fff76d665d9

I have tried this with both a new document created in nextcloud as well as a document that was already created with content that was uploaded to next cloud. I also tried this with new Excel and PowerPoint files all with the same result.

someone who had the same problem suggested following these steps: Enable TLS 1.1 and TLS 1.2 support in Office Online Server - Office Online Server | Microsoft Learn but not being an expert at the time I didnā€™t follow this guide.

Could someone who has encountered the same problem help me?

Hi everyone,

I hope someone can help me with my case, unfortunately Iā€™m stuck and I canā€™t understand the nature of the problem that is occurring. I followed and then enabled the TLS 1.1 and TLS 1.2 connections but this also did not solve the problem described previously.

Here is the only message that is logged as an error in Nextcloud

[no app in context] Fatale: Capabilities of OCA\Officeonline\Capabilities took 1.86 seconds to generate.
GET /index.php/apps/dashboard/
from the IP [xx.xxx.xxx.xxx] from [username nextcloud] at 10 Feb 2025, 12:14:48

{ā€œreqIdā€:ā€œUwwOD21EiI0qnJriEPoKā€,ā€œlevelā€:4,ā€œtimeā€:ā€œ2025-02-10T11:14:48+00:00ā€,ā€œremoteAddrā€:ā€œxx.xxx.xxx.xxxā€,ā€œuserā€:ā€œusernameā€,ā€œappā€:ā€œno app in contextā€,ā€œmethodā€:ā€œGETā€,ā€œurlā€:ā€œ/index.php/apps/dashboard/ā€,ā€œmessageā€:ā€œCapabilities of OCA\Officeonline\Capabilities took 1.86 seconds to generate.ā€,ā€œuserAgentā€:ā€œMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36ā€,ā€œversionā€:ā€œ30.0.5.1ā€,ā€œdataā€:,ā€œidā€:ā€œ67a9dfc070a57ā€}

Hi @wwe, sorry for the tag but I think you are the person who could perhaps help me more than anyone with my problem. Do you have any solution?

hi @Mario_user welcome to the forum :handshake:

as you ignored the required support template nobody can help you so far.

Iā€™m sorry I have no idea handy to resolve the issue. Iā€™m aware of the Office Online integration - Apps - App Store - Nextcloud app maybe you just need other integration app? wopi works same/similar for all office products ans as you recognize my name you likely found Collabora integration guide alreadyā€¦ this is the source of truth and it should work once you complete the list.

Hi, sorry for not respecting the format required for requesting assistance. I will return shortly to edit the message and make it compliant with the new guidelines. Yes, we have collaborated before for some Collabora server related issues however, this new issue seems to be different from the previous one. I installed the Office Online app from the official store and connected my Windows Office Online server correctly, in fact the connection verification check was successful. The problem occurs with the message provided above when I open a Word, Excel or Power Point document.

System information:
Nextcloud version: 30.0.4
OS and version: Ubuntu 22.04
Web server: apache 2.4.25
Reverse proxy: none
PHP version: 8.0
This is the first time I see this error
The problem occurred when opening Word, Excel and PowerPoint documents
Nextcloud was installed manually without any use of docker or other containers
I do not use CloudFlare or any other security tools

Summary of the issue encountered:
When trying to open a document, I receive the following error message:

ā€œSomething went wrong and we couldnā€™t load this content. Refreshing the browser may fix the problem.ā€

Session ID: e05905f5-edfb-476a-ab57-4fff76d665d9

I have tested this with both a new document created in Nextcloud and an existing document that was uploaded with content to Nextcloud. I also attempted this with new Excel and PowerPoint files, all resulting in the same issue.

Steps to reproduce the error:

  1. After setting up the Office Online server and downloading the Office Online app, open an Office document.

Log entries:
[no app in context] Fatal: Capabilities of OCA\Officeonline\Capabilities took 1.86 seconds to generate.
GET /index.php/apps/dashboard/
from the IP [xx.xxx.xxx.xxx] from [username nextcloud] at 10 Feb 2025, 12:14:48

{
  "reqId": "UwwOD21EiI0qnJriEPoK",
  "level": 4,
  "time": "2025-02-10T11:14:48+00:00",
  "remoteAddr": "xx.xxx.xxx.xxx",
  "user": "username",
  "app": "no app in context",
  "method": "GET",
  "url": "/index.php/apps/dashboard/",
  "message": "Capabilities of OCA\\Officeonline\\Capabilities took 1.86 seconds to generate.",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",
  "version": "30.0.5.1",
  "data": "",
  "id": "67a9dfc070a57"
}

Hi @wwe, thanks again for your suggestions. I have opened a new case following the guidelines for opening a request, I would be grateful if you could confirm that this setting is correct for receiving support.

I merged you new post into this topics. you could have simply edit your initial post rather starting another thread.

Your log seems unrelated to the document editing. The error you post comes from OOS and I would look into OOS logs. Increasing log level of NC might reveal additional details. You must see some request coming from OOS server in NC log. please spend time to understand the concepts and follow additional especially MS reference provided in Collabora integration guide.

Hi, Iā€™m sorry I wasnā€™t clear with my problem. Iā€™m not using a Collabora server but an Office Online server. So I donā€™t need richdocuments, Iā€™m using another application that allows integration with my windows server dedicated to performing the Office Online function. Here are the details Office Online integration - Apps - App Store - Nextcloud

I also share the error I read in the Nextcloud logs hoping it can help

[no app in context] Fatale: Capabilities of OCA\Officeonline\Capabilities took 1.83 seconds to generate. GET /index.php/login IP from ā€“ at 12 feb 2025, 18:04:32

Perhaps this Windows log could be more useful

Riepilogo

Health report by ExcelServicesWfeWatchdog: Agent: ExcelServicesWfe, eventId: 20230, eventType: Error, categoryId: 1, eventMessage: <?xml version="1.0" encoding="utf-16"?> ExcelServicesWfeWatchdog reported status for ExcelServicesWfe in category ā€˜WfeHealthā€™. Reported status: Got CommunicationException when running WFE watchdog health test: System.ServiceModel.Security.SecurityNegotiationException: Unable to establish trust relationships for the SSL/TLS secure channel with the authority ā€˜win-doeedlj.officeonline.localā€™. ā€”> System.Net.WebException: Underlying connection closed: Unable to establish trust for SSL/TLS secure channelā€¦ ā€”> System.Security.Authentication.AuthenticationException: The remote certificate was not deemed valid by the validation procedure. in System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) in System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.ProcessReceivedBlob(Byte buffer, Int32 count, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.StartReceiveBlob(Byte buffer, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.ProcessReceivedBlob(Byte buffer, Int32 count, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.StartReceiveBlob(Byte buffer, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.ProcessReceivedBlob(Byte buffer, Int32 count, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.StartReceiveBlob(Byte buffer, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte buffer, AsyncProtocolRequest asyncRequest) in System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) in System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) in System.Net.TlsStream.Write(Byte buffer, Int32 offset, Int32 size) in System.Net.PooledStream.Write(Byte buffer, Int32 offset, Int32 size) in System.Net.ConnectStream.WriteHeaders(Boolean async) ā€” Fine della traccia dello stack dellā€™eccezione interna ā€” in System.Net.HttpWebRequest.GetResponse() in System.ServiceModel.Channels.HttpChannelFactory1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) --- End of internal exception stack trace --- Server stack trace: in System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) in System.ServiceModel.Channels.HttpChannelFactory1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) in System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) in System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) in System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object ins, Object outs, TimeSpan timeout) in System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) in System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: in System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) in System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) in Microsoft.Office.Excel.WebUI.IPrivateWatchdogService.GetHealth(String correlationId) in Microsoft.Office.Excel.Server.WfeWatchdog.Program.WfeWatchdog.TryRunHealthTest(String serviceRoot, ServiceInstance instance, HealthCategory healthCategory, List`1 results, Int32 currentAttempt)

Not much experience with Office Online on-prem solution, however the error is clear.
The remote certificate was not deemed valid by the validation procedure.

Some ideas:

  • Check if your hostname matches with the SSL certificate, not sure but doubt that win-doeedlj.officeonline.local is valid.
  • You might also want to double check which TLS version is used, earlier in your post there was a mention of TLS 1.1 and TLS 1.2. However, perhaps Nextcloud tries to negotiate in TLS 1.3, can be a problem depending on your Windows version.
  • Ensure if youā€™re using a self-signed certificate, that itā€™s available on machine-level for all devices (root).
1 Like