The Edit locally function does not work on Nextcloud 25.0.1 (beta release channel RC1)

Support intro

When I try to execute the edit function locally nothing happens but in the browser inspect I get the following error

Failed to launch ‘nc://open/admin@test-nextcloud.XYZ/Documents/Welcome%20to%20Nextcloud%20Hub.docx?token=zMVjmJ9UFJF6GI3I875B6HFigGe1tcMpNiR1A1epKld6OIjWube0ftT9fDoURUxcAwo7yzhdxuKm8971ygmdHFJfw2EMbxjhhtG2B6BLOFzbSyxkbFfGPqtdiHwR9RCB’ because the scheme does not have a registered handler.

Nextcloud version (eg, 20.0.5): Nextcloud Hub 3 25.0.1 RC1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41 NO https
PHP version (eg, 7.4): PHP 7.4.3
COOLWSD version: 21.11.7.1
Collabora Office: 21.06.34.1
Nextcloud Office: 7.0.1

The server is a test environment so https is not active.

When I try to execute the edit function locally nothing happens but in the browser inspect I get the following error

Failed to launch ‘nc://open/admin@test-nextcloud.XYZ/Documents/Welcome%20to%20Nextcloud%20Hub.docx?token=zMVjmJ9UFJF6GI3I875B6HFigGe1tcMpNiR1A1epKld6OIjWube0ftT9fDoURUxcAwo7yzhdxuKm8971ygmdHFJfw2EMbxjhhtG2B6BLOFzbSyxkbFfGPqtdiHwR9RCB’ because the scheme does not have a registered handler.

Again thanks to the browser’s inspect, I also see an error in the attached image
No relevant errors in the apache logs or in the nextcloud logs

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Log in to Nextcloud 25.0.1 RC1

  2. Create or select a file (e.g. .odt)

  3. Select the Edit locally function

4.Nothing happens and the file remains available and editable by other users also through Collabora

The output of your Nextcloud log in Admin > Logging:

No error logs

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => 'XXX',
    1 => 'XXX',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'XXX',
  'version' => '25.0.1.0',
  'overwrite.cli.url' => 'XXX',
  'dbname' => 'XXX',
  'dbhost' => 'XXX',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'default_phone_region' => 'XXX',
  'default_locale' => 'XXX',
  'skeletondirectory' => '',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 1.5,
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' =>
  array (
    0 => 'shifts',
  ),
  'updater.secret' => 'XXX',
  'updater.release.channel' => 'beta',
);

The output of your Apache/nginx/system log in /var/log/____:

No error logs

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

No error logs
2 Likes

Same problem here ( 25.0.1 normal release ) - the client OS is Mint 19 - tested with the newest versions of Firefox, Chromium and Chrome ( both Incognito and regular window ) - there is no error message, the file simply does not open - I am testing with a simple .txt file.

If I select … menu next to the file, and click ‘Edit with Nextcloud Office’ the file opens in the editor - when I click upper left button ‘Open in local editor’ it also does not work.

Also, I think there is a bug when using Nextcloud Office to edit .txt file - if I click the bottom right pen icon, and select ‘Continue Editing’ it switches to full Nextcloud Office menu in which would not be possible to save as .txt since editing the file with formatting e.g. underscore cannot be saved into .txt.

I tested it further and the file does save but all non-ascii editing is silently dropped - if a user does this by mistake they could spend a lot of time editing a file to have all (formatting) edits lost - there should be either a warning or it should stay in the simple text edit mode.

When I click “Edit locally” in Firefox, first I see a dialog that says:

Allow this site to open the nc link with the System Handler?

Choose a different application.

☐ Always allow https://example.com/nextcloud to open nc links

(Buttons: CancelOpen Link)

Then I see this:

no apps available

You need desktop client 3.6.4 to test this ( use flatpak on linux )

Mine is launching but server ( 25.0.2 ) return not implemented when the client wants to lock the file

OK it seems you need the temp file lock app installed

https://apps.nextcloud.com/apps/files_lock

It’s working now ( file is lock when local edit is launched ) but stays locked when file is closed like of the client did not send the unlock signal to the server

Nice! Upgraded to 3.6.4 and it works for me now too.

It works for me without the files_lock (the Temporary files lock) app. It degrades gracefully, showing a popup with this message:

Lock operation on mp/auto sync test.md failed with error Error transferring https://www.example.com/remote.php/dav/files/user/test.md - server replied: Not Implemented

That said, the Temporary files lock app is really cool. I think I’ll start using it.

re: flatpak… I’d suggest using the PPA instead.

The flatpak does not support file manager integration.

https://reddit.com/r/flatpak/comments/z3zfwa/nextcloud_flatpak_with_nautilus_integration/

1 Like