nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

Can't open office documents after update to NC 26 #2873

Closed jakobroehrl closed 1 year ago

jakobroehrl commented 1 year ago

⚠️ Before posting ⚠️

Steps to reproduce

I can use Office in the mobile Browser, but it do not load any more in the android app. Before the update to 26 it was working. Tried with 2 different phones.

I tried with this 2 possibilities: grafik

Expected behaviour

open the file

Actual behaviour

grafik

Android version

13

Device brand and model

Pixel 4a (5G)

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

3.24.1

Nextcloud server version

26

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

No response

joshtrichards commented 1 year ago

If you turn on all log levels including Debug under Admin -> Logging do any interesting looking richdoc or WOPI related entries come up when you connect from the Android client?

jakobroehrl commented 1 year ago

Thanks for your anwer. I only get this in logs (loglevel = 0) [richdocuments] Information: Fetched discovery endpoint from https://xxx.de/apps/richdocumentscode/proxy.php?req=/hosting/discovery in 5.638 seconds GET /apps/richdocuments/direct/eHwEmE6HPTtEUuWGk82P5TQO9eYwuIk6eeBM1UzNW5pixn4BhMOhxXLgkRbqzsoq

tobiasKaminsky commented 1 year ago

Another user saw on iOS that there is a dialog to enter a guest user name. This seems to block Android.

As this is from NC Office, I will transfer this issue.

jakobroehrl commented 1 year ago

Another user saw on iOS that there is a dialog to enter a guest user name. This seems to block Android.

I can confirm this, same for me with ios. Thanks for caring

juliushaertl commented 1 year ago

I can reproduce but not sure what causes this yet. I don't recall any related change. Looking into it

Happyfeet01 commented 1 year ago

i have the same issue with Nextcloud Office after updating to NC 26.

Got this message in the Logs:

Trying to access array offset on value of type null at /var/www/nextcloud/apps/richdocuments/lib/WOPI/DiscoveryManager.php#132

the

davidwuest commented 1 year ago

Same issue. Checked all other options. It is the richdocuments plugin causing the problem. Its also in 25.0.5

r4tt4 commented 1 year ago

I also can confirm this issue after upgrading to NC26. Open a document in Android NC App will stuck in "das Laden dauert sehr lange...". Using a mobile webbrowser with NC, document gets loaded w/o any problems. Hope there will be a fix soon...

Edit: Just another info from my setup. I run the Collabora Instance on a subdomain. While trying to open an document via Android NC App, there is nothing logged in the webservers access-log. So it seems the App never contacts the correct Office-Server.

christianlupus commented 1 year ago

I seem to be affected by this issue as well. I collected some more information on this issue.

ghost commented 1 year ago

Asks for nick name when opening or creating a document iOS

‘Please choose your nickname to continue as guest user’

Opening documents desktop browser works well.

Cannot find any error logs.

Tested, iphone 6s and iphone 13.

NC 26.0 and latest apps versions.

LokeYourC3PH commented 1 year ago

Same issue for me. Opening documents in the mobile app doesn't work and loads forever on Android, while Browser works just fine (Collabora CODE self-hosted). Nothing really in the logs when I try opening one of these documents, but I get this sometimes when opening documents:

[richdocuments] Error: GuzzleHttp\Exception\ServerException: Server error: `GET https://office.xx.xx/hosting/capabilities` resulted in a `500 Internal Server Error` response:
<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
 (truncated...)
 at <<closure>>

 0. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create("*** sensitive parameters replaced ***")
 1. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 2. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler(1, "*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 3. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensitive parameters replaced ***")
 4. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run(true)
 5. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
 6. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
 7. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
 8. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
 9. /home/sysadmin/web/**REDACTED**/public_html/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
10. /home/sysadmin/web/**REDACTED**/public_html/lib/private/Http/Client/Client.php line 226
    GuzzleHttp\Client->request("get", "https://office. ... s", ["/home/sysadmin ... e])
11. /home/sysadmin/web/**REDACTED**/public_html/apps/richdocuments/lib/Service/CapabilitiesService.php line 135
    OC\Http\Client\Client->get("https://office. ... s", [45,[true]])
12. /home/sysadmin/web/**REDACTED**/public_html/apps/richdocuments/lib/Service/CapabilitiesService.php line 73
    OCA\Richdocuments\Service\CapabilitiesService->refetch()
13. /home/sysadmin/web/**REDACTED**/public_html/apps/richdocuments/lib/AppInfo/Application.php line 80
    OCA\Richdocuments\Service\CapabilitiesService->getCapabilities()
14. /home/sysadmin/web/**REDACTED**/public_html/lib/private/AppFramework/Bootstrap/FunctionInjector.php line 66
    OCA\Richdocuments\AppInfo\Application->OCA\Richdocuments\AppInfo\{closure}("*** sensitive parameters replaced ***")
15. /home/sysadmin/web/**REDACTED**/public_html/lib/private/AppFramework/Bootstrap/BootContext.php line 50
    OC\AppFramework\Bootstrap\FunctionInjector->injectFn(["Closure"])
16. /home/sysadmin/web/**REDACTED**/public_html/apps/richdocuments/lib/AppInfo/Application.php line 135
    OC\AppFramework\Bootstrap\BootContext->injectFn(["Closure"])
17. /home/sysadmin/web/**REDACTED**/public_html/lib/private/AppFramework/Bootstrap/Coordinator.php line 200
    OCA\Richdocuments\AppInfo\Application->boot(["OC\\AppFramewo ... "])
18. /home/sysadmin/web/**REDACTED**/public_html/lib/private/legacy/OC_App.php line 213
    OC\AppFramework\Bootstrap\Coordinator->bootApp("richdocuments")
19. /home/sysadmin/web/**REDACTED**/public_html/lib/private/legacy/OC_App.php line 141
    OC_App::loadApp("richdocuments")
20. /home/sysadmin/web/**REDACTED**/public_html/ocs/v1.php line 57
    OC_App::loadApps()
21. /home/sysadmin/web/**REDACTED**/public_html/ocs/v2.php line 23
    require_once("/home/sysadmin/ ... p")

GET /ocs/v2.php/apps/activity/api/v2/activity/by
from xxx.xxx.xxx.xxx by sysadmin at 2023-04-10T05:13:31+00:00

And this one came up once:

[richdocuments] Error: OCA\Richdocuments\Exceptions\UnknownTokenException: Could not find token. at <<closure>>

0. /home/sysadmin/web/**REDACTED**/public_html/apps/richdocuments/lib/Middleware/WOPIMiddleware.php line 76
   OCA\Richdocuments\Db\WopiMapper->getWopiForToken("B80rHLs2rxjhCmH7lrkezsA7X3EZd6dj")
1. /home/sysadmin/web/**REDACTED**/public_html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 96
   OCA\Richdocuments\Middleware\WOPIMiddleware->beforeController(["OCA\\Richdocum ... "], "checkFileInfo")
2. /home/sysadmin/web/**REDACTED**/public_html/lib/private/AppFramework/Http/Dispatcher.php line 129
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(["OCA\\Richdocum ... "], "checkFileInfo")
3. /home/sysadmin/web/**REDACTED**/public_html/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Richdocum ... "], "checkFileInfo")
4. /home/sysadmin/web/**REDACTED**/public_html/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main("OCA\\Richdocume ... r", "checkFileInfo", ["OC\\AppFramewo ... "], ["30476_ocbk6qt4 ... "])
5. /home/sysadmin/web/**REDACTED**/public_html/lib/base.php line 1055
   OC\Route\Router->match("/apps/richdocum ... f")
6. /home/sysadmin/web/**REDACTED**/public_html/index.php line 36
   OC::handleRequest()

GET /index.php/apps/richdocuments/wopi/files/30476_ocbk6qt4plbf?access_token=B80rHLs2rxjhCmH7lrkezsA7X3EZd6dj&access_token_ttl=1681138942000
from xxx.xxx.xxx.xxx at 2023-04-10T05:07:25+00:00
l3ochan commented 1 year ago

I'm getting the exact same issue, collabora working on desktop but not on mobile. I don't have anything regarding this in the logs.

enoch85 commented 1 year ago

This is fixed with the latest release (8.0.1).

Happyfeet01 commented 1 year ago

Yes it's fixed! 👍

l3ochan commented 1 year ago

Fixed with Collabora 8.0.1?

Yes I just installed the update and tried. It works now

LokeYourC3PH commented 1 year ago

This is fixed with the latest release (8.0.1).

Can confirm, it's fixed. Updated to 8.0.1, then tried opening a document in the NextCloud mobile app. Loaded after a short while. 👍

ghost commented 1 year ago

Yes :+1: