Unable to create a share link using the desktop client

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.0.13
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.3
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.58
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.28.0
  • PHP version (e.g, 8.3):
    • 8.3.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When upgrading to latest nextcloud version
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Plesk Web App - upgraded via commandline
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Sucuri/CloudProxy

Summary of the issue you are facing:

When I try to create a shareable link, the nextcloud desktop client tells me Sharing is disabled

I can create sharable links via the web interface

The required permissions in settings appear to be active

Just for clarification, this is a simple folder in your file structure that you want to share via link?

Not something that was already shared to you, external storage, … etc.?

Reproduce:

  • go to you main folder
  • create test folder
  • try to share this folder via link from desktop client

and with NC 31, this was working for you?

@tflidd

Yeah, it is a file which I uploaded to nextcloud which I was then trying to create a share link for

With client 3.17.2 on Win11, on NC 32 RC 3 I cannot reproduce the error. I updated the test setup to the latest NC 32, and even then I can create a shared link of a file.

However I cannot unshare….

This seems to be a bug in the maps app, there is already a bug report:

Did you also check your logs? I suppose for the sharing permissions, the client is sending a query to the server, and if there is an error, this might explain the difference.

@tflidd
the main log seems to be `OCP\HintException: Configuration was not read or initialized correctly, not overwriting /path/to/nextcloud/config/config.php`

As this is a plesk install, the permissions are all set up as owned by plesk

With this being a plesk install, the directory and all contents has the ownership - user psaserv

Do you know the php user? This user needs at least read access to the config file.

The PHP user is showing the same when I run ps aux | grep php-fpm

Did you change something in the config file?

@tflidd

No, Until the sharing option stopped working, I had no reason to change anything in the config.

My config.php

$CONFIG = array (
  'passwordsalt' => 'ramdom_salt',
  'secret' => 'random-secret',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'nextcloud.domain.com',
    2 => 'server.domain.com',
    3 => '87.xxx.xxx.xxx',
  ),
  'datadirectory' => '/var/www/vhosts/domain.com/.nextcloud/data/f3bc0a18c779',
  'dbtype' => 'mysql',
  'version' => '32.0.0.13',
  'overwrite.cli.url' => 'https://nextcloud.domain.com',
  'dbname' => 'nextcloud_5eb59705',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncuser',
  'dbpassword' => 'password',
  'installed' => true,
  'instanceid' => 'ocrqyjx7bdai',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => 'smtp.smtp.com',
  'mail_smtpport' => '587',
  'mail_from_address' => 'webmaster',
  'mail_domain' => 'domain.com',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'server',
  'mail_smtppassword' => 'password',
  'mail_smtpsecure' => 'tls',
  'default_phone_region' => '+44',
  'config_is_read_only' => false,
);

I have tried with and without the closing `?>` it makes no difference

Looks like ive solved it

That section seems to ahve been the problem… I turned it on and now it works… I dont know what would have turned it off in the 1st place as I never access the nextcloud web interface. I have no need to.

Is this new since the last update?

@tflidd
I was under the impression that it was sorted andI had just left it be.

I then noticed that, although sheare links were being created, they were not working correctly. when clicking them, there was no file available.
I then logged into nextcloud to check things at my end and this is what I noticed

I dont have a clue what would be causing this error. As you can see, along the top, the files are there but the main file tree isnt working

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.