nextcloud / officeonline

officeonline
46 stars 15 forks source link

Error - Failed to open the requested file. #308

Closed exander77 closed 1 year ago

exander77 commented 2 years ago

Opening files causes:


Error

    Failed to open the requested file.
denhomyakov commented 2 years ago

I have error too. Error

This is config PS C:\Users\administrator> Set-OfficeWebAppsFarm -OpenFromUrlEnabled:$true

FarmOU : InternalURL : http://office.mydomen.com/ ExternalURL : AllowHTTP : True AllowOutboundHttp : False SSLOffloaded : False CertificateName : S2SCertificateName : EditingEnabled : True LogLocation : C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS LogRetentionInDays : 7 LogVerbosity : Proxy : CacheLocation : C:\ProgramData\Microsoft\OfficeWebApps\Working\d MaxMemoryCacheSizeInMB : 75 DocumentInfoCacheSize : 5000 CacheSizeInGB : 15 ClipartEnabled : False OnlinePictureEnabled : False OnlineVideoEnabled : False TranslationEnabled : False MaxTranslationCharacterCount : 125000 TranslationServiceAppId : TranslationServiceAddress : RenderingLocalCacheLocation : C:\ProgramData\Microsoft\OfficeWebApps\Working\waccache RecycleActiveProcessCount : 5 AllowCEIP : False OfficeAddinEnabled : False ExcelRequestDurationMax : 300 ExcelSessionTimeout : 450 ExcelWorkbookSizeMax : 30 ExcelPrivateBytesMax : -1 ExcelConnectionLifetime : 1800 ExcelExternalDataCacheLifetime : 300 ExcelAllowExternalData : True ExcelUseEffectiveUserName : False ExcelWarnOnDataRefresh : True ExcelUdfsAllowed : False ExcelMemoryCacheThreshold : 85 ExcelUnusedObjectAgeMax : -1 ExcelCachingUnusedFiles : True ExcelAbortOnRefreshOnOpenFail : True ExcelEnableCrossForestKerberosAuthentication : False ExcelAutomaticVolatileFunctionCacheLifeTime : 300 ExcelConcurrentDataRequestsPerSessionMax : 5 ExcelDefaultWorkbookCalcMode : File ExcelRestExternalDataEnabled : True ExcelChartAndImageSizeMax : 1 OpenFromUrlEnabled : True OpenFromUncEnabled : True OpenFromUrlThrottlingEnabled : True PicturePasteDisabled : True RemovePersonalInformationFromLogs : False AllowHttpSecureStoreConnections : False Machines : {MSK-OFFICE-SRV}

PS C:\Users\administrator> New-OfficeWebAppsHost -domain "nextcloud.mydomen.com"

allowList

{nextcloud.mydomen.com}

PS C:\Users\administrator> Get-OfficeWebAppsHost

allowList

{nextcloud.mydomen.com}

denhomyakov commented 2 years ago

Error2

exander77 commented 2 years ago

It is caused by disabling legacy encryption, even tough test said the legacy encryption is no longer needed.

perkinF commented 2 years ago

nextcloud log show:“could not find urlsrc in wopi" ?

dario94 commented 1 year ago

It is caused by disabling legacy encryption, even tough test said the legacy encryption is no longer needed.

Hi, I still have this issue, I tried enabling the reg keys in OOS as described in this post https://help.nextcloud.com/t/office-online-error-message-something-went-wrong/100447/11?u=andyxheli and also in Apache ( https://httpd.apache.org/docs/trunk/ssl/ssl_howto.html )

Have you got some ideas why it doesn't work?

Regards

juliushaertl commented 1 year ago

Before todays release only external urls were supported. Now with the latest 1.1.4 release your existing OfficeWebAppsFarm configuration with only an internal url should also match.

Can you check that with the latest release?

Reference in code https://github.com/nextcloud/officeonline/blob/master/lib/WOPI/Parser.php#L178-L183

patschi commented 1 year ago

There were changes implemented by Julius, however no response if issues still present in over half a year - hence suspecting this issue has been fixed. Closing this.