[CLOSED]Cannot acces Onlyoffice document from external link

Summary of the issue you are facing:

I cannot create an external link that allows my friends to edit a spreadsheet stored in my nextcloud instance. The link only allows them to download the document.

Otherwise everything works fine for me personally, both localy and externaly (when logged into my account).

Is it a limitation of the onlyoffice + nextcloud setup ? If not what can I do to be able to share my documents.

Thank you all in advance for your answers.

A few infos on my setup

  • Nextcloud Server version (e.g., 29.x.x):
    • Server Version 33.0.1 (Truenas-app)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Truenas 25.10.2.1
  • Web server and version (e.g, Apache 2.4.25):
    • Don't know how to find the info
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Nginx Proxy Manager v2.14.0
  • PHP version (e.g, 8.3):
    • Don't know how to find the info
  • Onlyoffice-document-server version
    • Truenas App 9.3.1 (Version 1.2.10)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

What about the rest of the support template (Logs, config.php etc.)?

Did you limit documents access in Administraition-settings - Nextcloud Office to a single IP-address (Allow list for WOPI-access)?

Hi,
The other one seemed not important as everything is working fine while connected as a user on my nextcloud instance both on the same network as my server as well as by using my phone network.

to be clear, this issue is with the onlyoffice app and not nextcloud office app. Looking closely at the app settings for onlyoffice, there doesn’t seem to be any settings regarding IP restriction / whitelisting

concerning my config.php

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => 'xxxxx',
    'port' => 6379,
  ),
  'overwrite.cli.url' => 'https://zzz.xxx.yy',
  'overwriteprotocol' => 'https',
  'upgrade.disable-web' => true,
  'passwordsalt' => 'xxxxx',
  'secret' => 'xxxxxx',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '33.0.1.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'postgres:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_yyyyy',
  'dbpassword' => 'xxxxxxx',
  'installed' => true,
  'instanceid' => 'xxxxxx',
  'maintenance' => false,
  'memories.db.triggers.fcu' => true,
  'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-amd64-glibc',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-amd64',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'memories.gis_type' => 2,
  'maintenance_window_start' => 1,
  'default_phone_region' => 250,
  'default_timezone' => 'Europe/Paris',
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\HEIC',
    2 => 'OC\\Preview\\Movie',
  ),
  'preview_max_x' => 1024,
  'preview_max_y' => 1024,
  'preview_max_memory' => 256,
  'memories.viewer.high_res_cond_default' => 'always',
  'loglevel' => 1,
  'app_install_overwrite' => 
  array (
  ),
  'trusted_domains' => 
  array (
    0 => '127.0.0.1',
    1 => 'zzzz.xxx.yy',
    2 => 'localhost',
    3 => 'nextcloud',
  ),
);

regading nextcloud logs there are a few items, but nothing linked to onlyoffice
——–
Small update after writing all of this, I updated to the latest version of the nexcloud app on my truenas, and the problem solved itself ………. good news ?
Anyway you have my thanks !

1 Like