Sorry to hear you’re facing problems
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
Or for longer, use three backticks above and below the code snippet:
longer example here
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
Nextcloud version (eg, 12.0.2): 17.0.2
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.29
PHP version (eg, 7.1): 7.2
S3 provider: Scaleway
The issue you are facing:
I couldn’t find a way to generate external sharing link for files stored in an external s3fs space. The web UI says that sharing is not authorized.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install external storage addon
- Configure new s3fs mount in the web UI
- Upload some files in the s3fs space
- Display files details and observe the following message in the Sharing tab: “Sharing is not authorized”
The output of your Nextcloud log in Admin > Logging:
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'instanceid' => 'OMMITED', 'passwordsalt' => 'OMMITED', 'secret' => 'OMMITED', 'trusted_domains' => array ( 0 => 'OMMITED', ), 'datadirectory' => '/var/www/html/nextcloud/data', 'dbtype' => 'mysql', 'version' => '188.8.131.52', 'overwrite.cli.url' => 'OMMITED/nextcloud', 'dbname' => 'OMMITED', 'dbhost' => 'OMMITED', 'dbport' => 'OMMITED', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'OMMITED', 'dbpassword' => 'OMMITED', 'installed' => true, 'updater.secret' => 'OMMITED', 'maintenance' => false, 'theme' => '', 'loglevel' => 2, );
The output of your Apache/nginx/system log in
Here are the options currently enabled in the sharing admin panel (i’m translating so it can be sligthly different):
- Authorize applications to use storage API
- Authorize users to share by link
- Authorize publics uploads
- Set default expiration date (7 days)
- Authorize resharing
- Authorize sharing with groups
- Enable autocompletion…
Default sharing authorizations :
The other options are disabled.
I’m adding a little precision: sharing files with external links works fine for files stored locally on the nextcloud server.
Have i missed something obvious?
Thanks in advance for your help!