richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Blank screen - background only when exiting NC Office/Code Server

Open n-greene opened this issue 1 year ago • 5 comments

Thanks very much for updating CodeServer to be compatible with NC 26. I can confirm that the update worked.

However when I exit out of Collabora to my NC instance I get a blank screen - background only - I have to refresh the browser to get all the other content to display.

I tried clearing cache on the browser as well as update/upgrade/reboot on my instance with same issue repeating after.

Logging: [richdocuments] Error: GuzzleHttp\Exception\ClientException: Client error: GET http://xxxxxxx.net/apps/richdocumentscode/proxy.php?req=/hosting/capabilities resulted in a 404 Not Found response:

404 Not Found

404 Not Found

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

GET /ocs/v2.php/apps/notifications/api/v2/notifications from 192.168.10.50 by xxxxx at 2023-04-14T23:20:01+00:00

n-greene avatar Apr 14 '23 20:04 n-greene

Just upgraded to NC26 and build-n Code Server app. Having the same issue. When I click an existing document, a blank page is shown. When refreshing browser(F5), the document shows as you normally would expect. However, edits are not saved.

Edit: And as I'm typing this, it seems that it now(after 15 minutes or so) works better(no F5 needed). FYI: NC is running on fast hardware with SSD storage Still can't edit the(for testing purposes) created documents. There seems to be a permission problem, as I can't delete those documents from NC as well. New documents that I create now seem fine.

Yomark1 avatar Apr 18 '23 08:04 Yomark1

Nextcloud Server version 26.0.4

Operating system RHEL 8.8

PHP engine version PHP 8.1

Web server Apache (supported)

Database engine version MariaDB

Just did the upgrade of Collabora ONLINE to version: 23.5.202.

After upgrade was completed :

  • opening documents (*.xlsx, docx) - getting blank screen (logging in with different user)
  • trying to use another browser (i.e. Firefox) - same behave - blank screen
  • logging out /logging in / refresh the browser page - same result - blank screen

What i did to solve:

i had to switch between these setting (in fact re-enable the built-in code server):

ScreenShot052

Githopp192 avatar Aug 07 '23 08:08 Githopp192

@n-greene What happens when you visit http://xxxxxxx.net/apps/richdocumentscode/proxy.php?req=/hosting/capabilities directly in your browser? Also, is http://xxxxxxx.net/ the correct URL for your NC or is it supposed to be https://? Also, to clarify

@Yomark1 The reporter is only getting this behavior when they exit. It sounds like you're getting it when you open a document. Your matter may be different.

joshtrichards avatar Nov 12 '23 13:11 joshtrichards

@n-greene What happens when you visit http://xxxxxxx.net/apps/richdocumentscode/proxy.php?req=/hosting/capabilities directly in your browser? Also, is http://xxxxxxx.net/ the correct URL for your NC or is it supposed to be https://? Also, to clarify

@Yomark1 The reporter is only getting this behavior when they exit. It sounds like you're getting it when you open a document. Your matter may be different.

With HTTPS I get: {"convert-to":{"available":true,"endpoint":"/cool/convert-to"},"hasMobileSupport":true,"hasProxyPrefix":true,"hasTemplateSaveAs":false,"hasTemplateSource":true,"hasZoteroSupport":true,"productName":"Collabora Online Development Edition","productVersion":"23.05.5.3","productVersionHash":"5093121","serverId":"a734ef08"}

n-greene avatar Nov 12 '23 13:11 n-greene

It sounds like either your wopi_url or public_wopi_url are incorrect in richdocuments but richdocumentscode is working fine.

You can check for certain the configuration by running occ config:list richdocuments. You can either change the values from the command-line or go Administration settings->Office. If you *Use the built-in CODE" is already selected it will probably be sufficient to toggle it to "Use your own server" then back.

joshtrichards avatar Nov 12 '23 13:11 joshtrichards