[SOLVED ]No options for public sharing of files

Hi all,

I’m hosting the latest version (30.0.6) of NC on my server, in a container, behind a reverse proxy (traefik) …
I have an issue with sharing.

I have zero options to share files. I don’t have “copy public link” or anything of the sort…

Here is my sharing configuration:

And here what I see on file details.

Am I missing something ?

Cheers.

Based on the last screen shot, the item you’re trying to share appears to be an item that was shared with you and resharing was disabled on it by the sharer (“Resharing is not allowed”).

Can you check if the same thing happens with an item that is yours or that you newly create?

Ideally test outside of a shared folder.

Hi, thanks for your reply, I am the only user, it’s my personal server

Screenshot 2025-02-23 144527
More hooks.

I think you must activate all points.

hey, I did that, it didn’t change anything … Still not able to share, no public link, I don’t get it.

Then perhaps you can back up a bit and fill out the support template. Also, do you have any errors or warnings under Admin settings->Overview?

OK here goes :wink:

The Basics

Dockerised Nextcloud on Debian Buster

  • Nextcloud Server version : 30.0.6
  • Operating system and version : Linux 4.19.0-26-amd64 x86_64
  • Web server and version : no idea , it’s all in the nextcloud docker image
  • Reverse proxy and version _(e.g. nginx 1.27.2): Traefik 2
  • PHP version (e.g, 8.3): 8.2.27
  • Is this the first time you’ve seen this error? (Yes / No): No
  • When did this problem seem to first start? Since the beginning
  • Installation method : docker
  • Are you using Cloudflare, mod_security, or similar? No

Summary of the issue you are facing:

Can’t seem to be able to share files with public link, no link, no button, tried all options in the admin settings to no avail.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?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,
    ),
  ),
  'instanceid' => 'ocvbsxe1h06d',
  'passwordsalt' => '...',
  'secret' => '...',
  'trusted_domains' => 
  array (
    0 => 'ip:port',
    1 => 'subdomain.domain.com',
  ),
  'trusted_proxies' => 
  array (
    0 => 'ip:port',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '30.0.6.2',
  'overwritehost' => 'subdomain.domain.com',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'http://ip:port',
  'defaultapp' => 'documents',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextcloud_db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '/run/secrets/mysql_password',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'username',
  'mail_domain' => 'domain.org',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'domain.org',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'username',
  'mail_smtppassword' => '...',
  'filelocking.enabled' => true,
  'remember_login_cookie_lifetime' => 1800,
  'session_lifetime' => 1800,
  'session_keepalive' => false,
  'auto_logout' => true,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'loglevel' => 2,
  'maintenance' => false,
  'theme' => '',
);

Apps

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.6
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.3
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.6.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0

Disabled:
  - admin_audit: 1.20.0
  - encryption: 2.18.0
  - files_accesscontrol: 1.20.1 (installed 1.20.1)
  - files_automatedtagging: 1.20.0 (installed 1.20.0)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - integration_jira: 1.2.1 (installed 1.2.1)
  - integration_reddit: 2.0.5 (installed 2.0.5)
  - sharebymail: 1.20.0 (installed 1.20.0)
  - suspicious_login: 8.0.0
  - twofactor_admin: 4.7.1 (installed 4.7.1)
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0
  - welcome: 1.2.0 (installed 1.2.0)

Could it be that I am the sole user, in an admin role, and therefore, sharing is not allowed to an admin profile, and so maybe I should create a “regular” user to actually use the system, instead os using nextcloud as an admin ?
Does it make sense ?
Admin roles are used to administrate, not actually use … see what I mean ?

EDIT: I just created a new group “Users” and created a user in that group. And logged in with that user … and guess what … I can share stuff … how weird is that ?

That is very interesting. Normally, an admin of the admin group can also share folders and files without any problems. Perhaps this is somehow restricted for your admin group. Unfortunately I don’t know where.

OK new development.
After I created the new user, I tried sharing a document to see what’s what…
I saw the sharing button and came her to say that all was well …

Well actually no, the file I tried sharing was one of the standard documents that one gets when one creates a new user, like nextcloud user manual, stuff like that… but when I went into my external storages documents, those I coudn’t share.

YAAAAAYYY I got it…
i went, as admin, into the “external storage” panel, and for each line of external storage, I clicked on the “…” at the end of the line, and there, there was a “Enable Sharing” tick box, and after ticking it, all was shareable !!!
Yipeee.

2 Likes

Well, the information with the external storage might have helped us. But now it works. Have fun with Nextcloud.

1 Like

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