Collabora CODE (arm64) "was not connected to because it violates local access rules"

  1. docker-compose image install to localhost.
  2. Install Collabora CODE (arm64)
  3. Install Nextcloud Office interface.

Both apps install fine and say they are both accessible and working from admin settings page. Creating a new office document works, but will not open in the office suite.

/index.php/settings/admin/richdocuments
image

/index.php/settings/admin/richdocumentscode_arm64

Collabora Online - Built-in CODE Server
You have the Collabora Online app enabled.

image

Error displayed

File is created, but Nextcloud Office is not accessible from the webui.

{“reqId”:“Y0m9mxPI0M6QvHKRtIGbzAAACxY”,“level”:2,“time”:“2022-10-14T19:50:51+00:00”,“remoteAddr”:“192.168.0.3”,“user”:“ncp”,“app”:“no app in context”,“method”:“GET”,“url”:“/index.php/core/preview?fileId=256&c=b62d8119aafa6c96f585f6d04412b409&x=250&y=250&forceIcon=0&a=0”,“message”:“Host 192.168.0.2 was not connected to because it violates local access rules”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0”,“version”:“25.0.0.17”,“data”:}

Unable to create new file from template.

Maybe this helps?

1 Like

I hint the issue in the past as well, likely this is the reason

add the setting **allow_local_remote_servers ** to your config.php or run this command:

docker exec --user www-data ${your nextcloud container} php occ config:system:set allow_local_remote_servers --value true --type bool

[richdocuments] Error: GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 45001 milliseconds with 0 bytes received (see libcurl - Error Codes) for https://$IP/apps/richdocumentscode_arm64/proxy.php?req=/hosting/capabilities at <>

  1. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158
    GuzzleHttp\Handler\CurlFactory::createRejection()
  2. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110
    GuzzleHttp\Handler\CurlFactory::finishError()
  3. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47
    GuzzleHttp\Handler\CurlFactory::finish()
  4. /data/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php line 113
    GuzzleHttp\Handler\CurlHandler->__invoke()
  5. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 35
    OC\Http\Client\DnsPinMiddleware->OC\Http\Client{closure}(“*** sensitive parameters replaced ***”)
  6. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31
    GuzzleHttp\PrepareBodyMiddleware->__invoke()
  7. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71
    GuzzleHttp\Middleware::GuzzleHttp{closure}(“*** sensitive parameters replaced ***”)
  8. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63
    GuzzleHttp\RedirectMiddleware->__invoke()
  9. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75
    GuzzleHttp\Middleware::GuzzleHttp{closure}(“*** sensitive parameters replaced ***”)
  10. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 331
    GuzzleHttp\HandlerStack->__invoke()
  11. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 168
    GuzzleHttp\Client->transfer()
  12. /data/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Client->requestAsync()
  13. /data/nextcloud/lib/private/Http/Client/Client.php line 218
    GuzzleHttp\Client->request()
  14. /data/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php line 131
    OC\Http\Client\Client->get()
  15. /data/nextcloud/apps/richdocuments/lib/AppInfo/Application.php line 203
    OCA\Richdocuments\Service\CapabilitiesService->refetch()
  16. /data/nextcloud/apps/richdocuments/lib/AppInfo/Application.php line 135
    OCA\Richdocuments\AppInfo\Application->checkAndEnableCODEServer()
  17. /data/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 190
    OCA\Richdocuments\AppInfo\Application->boot()
  18. /data/nextcloud/lib/private/legacy/OC_App.php line 208
    OC\AppFramework\Bootstrap\Coordinator->bootApp()
  19. /data/nextcloud/lib/private/legacy/OC_App.php line 141
    OC_App::loadApp()
  20. /data/nextcloud/lib/base.php line 1027
    OC_App::loadApps()
  21. /data/nextcloud/index.php line 36
    OC::handleRequest()

GET /index.php/apps/theming/image/background?v=0
from $IP by ncp at 2022-10-17T19:41:36+00:00

in general https:// does not work good with IP addresses s you can’t receive official certificates for an IP address. You must ensure your systems use DNS in all directions.