Nextcloud 18 Shared Link error

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

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:

example

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 :heart:

Nextcloud version (eg, 12.0.2): 18.0.0
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): nginx/1.17.5
PHP version (eg, 7.1): PHP 7.3.11

The issue you are facing:

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

Steps to replicate it:

  1. I just upgraded Nextcloud to NC 18
  2. Created a file test.docs and wanted to send a link to friends

The output of your Nextcloud log in Admin > Logging:

{"reqId":"iSF2qH5PCONAd5wrCxbI","level":1,"time":"2020-02-03T15:09:30+01:00","remoteAddr":"10.200.2.5","user":"USER_USER","app":"no app in context","method":"GET","url":"/apps/logreader/poll?lastReqId=x5eTetdiTkpCwDfs41XZ","message":"Deprecated event type for OCA\\User_LDAP\\User\\User::postLDAPBackendAdded: null","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}

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

<?php
$CONFIG = array (
  'passwordsalt' => 'XXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXx',
  'trusted_domains' =>
  array (
    0 => 'XXXXXXX',
    1 => 'XXXXXXX',
    2 => 'XXXXXXX',
  ),
  'datadirectory' => '/data/nc_data',
  'dbtype' => 'mysql',
  'version' => '18.0.0.10',
  'overwrite.cli.url' => 'XXXXXXXX',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXXXXXX',
  'dbpassword' => 'XXXXXXX',
  'installed' => true,
  'instanceid' => 'XXXXXXXX',
  'activity_expire_days' => 14,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' =>
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 0,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
  'logfile' => '/var/nc_data/nextcloud.log',
  'loglevel' => 0,
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 104857600,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'quota_include_external_storage' => false,
  'share_folder' => '/Shares',
  'skeletondirectory' => '',
  'theme' => 'XXXXXXX',
  'trashbin_retention_obligation' => 'auto, 7',
  'updater.release.channel' => 'stable',
  'mail_domain' => 'XXXXXXX',
  'mail_from_address' => 'XXXXXXX',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'XXXXXXX',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'XXXXXXX',
  'mail_smtppassword' => 'XXXXXXX',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'app_install_overwrite' =>
  array (
    0 => 'sharelisting',
    1 => 'zimbradrive',
  ),
);

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

/

image

Hi @RPATARIN ,

Do you have the app Maps enabled on your server? I had the same issue which you describe here and opened an issue on Github for that:

It turned out, that the app “Maps” was interfering with the sharing API and caused the error message.
There is a fix already and it should be shipped with the next release of the Maps app:

Until then, you can avoid these issues by disabling Maps.

If you use federated shares, I would like to make you aware of this issue as well:

Hi Schmu

No, the Map application is not installed on the Nextcloud server.

Hm, strange. Looked very much alike.
Can you then please share more entries from the nextcloud.log, shortly after you tried to create another share.
In addition, please provide the output from the browser console. There is probably an error and the HTTP code 404.

A list of enabled apps would be nice as well.
There is an app for Nextcloud “issue template” which helps to collect the list of enabled apps and a lot of other stuff.

The error from the browser

image

Steps to reproduce

Sharing file

Expected behaviour

sharing a folder / file via a public link

Actual behaviour

Error message

Server configuration detail

Operating system: Linux 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64

Webserver: nginx/1.17.5 (fpm-fcgi)

Database: mysql 10.4.8

PHP version:

7.3.11-1+ubuntu18.04.1+deb.sury.org+1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, libsmbclient, Zend OPcache

Nextcloud version: 18.0.0 - 18.0.0.10

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.4.0
 - activity: 2.11.0
 - admin_audit: 1.8.0
 - cloud_federation_api: 1.1.0
 - comments: 1.8.0
 - dav: 1.14.0
 - federatedfilesharing: 1.8.0
 - federation: 1.8.0
 - files: 1.13.1
 - files_external: 1.9.0
 - files_pdfviewer: 1.7.0
 - files_rightclick: 0.15.2
 - files_sharing: 1.10.1
 - files_trashbin: 1.8.0
 - files_versions: 1.11.0
 - files_videoplayer: 1.7.0
 - issuetemplate: 0.6.0
 - logreader: 2.3.0
 - lookup_server_connector: 1.6.0
 - nextcloud_announcements: 1.7.0
 - notifications: 2.6.0
 - oauth2: 1.6.0
 - onlyoffice: 4.1.4
 - password_policy: 1.8.0
 - photos: 1.0.0
 - privacy: 1.2.0
 - provisioning_api: 1.8.0
 - quota_warning: 1.7.0
 - recommendations: 0.6.0
 - serverinfo: 1.8.0
 - settings: 1.0.0
 - sharebymail: 1.8.0
 - support: 1.1.0
 - systemtags: 1.8.0
 - text: 2.0.0
 - twofactor_backupcodes: 1.7.0
 - updatenotification: 1.8.0
 - user_ldap: 1.8.0
 - viewer: 1.2.0
 - workflowengine: 2.0.0
Disabled:
 - encryption
 - firstrunwizard
 - sharelisting
 - survey_client
 - theming
 - zimbradrive

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "192.168.10.109",
        "cloud.sys1.fr",
        "office.sys1.fr"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "18.0.0.10",
    "overwrite.cli.url": "https:\/\/cloud.sys1.fr",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "activity_expire_days": 14,
    "auth.bruteforce.protection.enabled": true,
    "blacklisted_files": [
        ".htaccess",
        "Thumbs.db",
        "thumbs.db"
    ],
    "cron_log": true,
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\Movie",
        "OC\\Preview\\PDF",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown"
    ],
    "filesystem_check_changes": 0,
    "filelocking.enabled": "true",
    "htaccess.RewriteBase": "\/",
    "integrity.check.disabled": false,
    "knowledgebaseenabled": false,
    "logfile": "\/var\/nc_data\/nextcloud.log",
    "loglevel": 0,
    "logtimezone": "Europe\/Paris",
    "log_rotate_size": 104857600,
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "overwriteprotocol": "https",
    "preview_max_x": 1024,
    "preview_max_y": 768,
    "preview_max_scale_factor": 1,
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "quota_include_external_storage": false,
    "share_folder": "\/Shares",
    "skeletondirectory": "",
    "theme": "sys1",
    "trashbin_retention_obligation": "auto, 7",
    "updater.release.channel": "stable",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "25",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "ldapIgnoreNamingRules": false,
    "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
    "app_install_overwrite": [
        "sharelisting",
        "zimbradrive"
    ]
}

Are you using external storage, if yes which one: local/smb/sftp/…

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this par if not used)
background_sync_interval: 43200background_sync_offset: 0background_sync_prefix: s01cleanUpJobOffset: 0enabled: yesinstalled_version: 1.8.0s01_lastChange: 1580810308s01has_memberof_filter_support: 1s01home_folder_naming_rule: s01last_jpegPhoto_lookup: 0s01ldap_agent_password: OGs2TDhXcnU=s01ldap_attributes_for_group_search: s01ldap_attributes_for_user_search: s01ldap_backup_host: s01ldap_backup_port: s01ldap_base: DC=SYS1,DC=LOCALs01ldap_base_groups: DC=SYS1,DC=LOCALs01ldap_base_users: DC=SYS1,DC=LOCALs01ldap_cache_ttl: 600s01ldap_configuration_active: 1s01ldap_default_ppolicy_dn: s01ldap_display_name: displayNames01ldap_dn: CN=consultation_cloud,OU=CLOUD,OU=APPLICATIONS,OU=sys1.fr,DC=SYS1,DC=LOCALs01ldap_dynamic_group_member_url: s01ldap_email_attr: s01ldap_experienced_admin: 0s01ldap_expert_username_attr: displaynames01ldap_expert_uuid_group_attr: s01ldap_expert_uuid_user_attr: cns01ldap_ext_storage_home_attribute: s01ldap_gid_number: gidNumbers01ldap_group_display_name: cns01ldap_group_filter: s01ldap_group_filter_mode: 0s01ldap_group_member_assoc_attribute: members01ldap_groupfilter_groups: s01ldap_groupfilter_objectclass: s01ldap_host: 192.168.14.3s01ldap_login_filter: (&(&(|(objectclass=person))(|(|(memberof=CN=cloud_access,OU=CLOUD,OU=APPLICATIONS,OU=sys1.fr,DC=SYS1,DC=LOCAL)(primaryGroupID=1324))))(|(samaccountname=%uid)(|(sAMAccountName=%uid))))s01ldap_login_filter_mode: 0s01ldap_loginfilter_attributes: sAMAccountNames01ldap_loginfilter_email: 0s01ldap_loginfilter_username: 1s01ldap_nested_groups: 0s01ldap_override_main_server: s01ldap_paging_size: 500s01ldap_port: 389s01ldap_quota_attr: s01ldap_quota_def: s01ldap_tls: 0s01ldap_turn_off_cert_check: 0s01ldap_turn_on_pwd_change: 0s01ldap_user_avatar_rule: defaults01ldap_user_display_name_2: s01ldap_user_filter_mode: 0s01ldap_userfilter_groups: cloud_accesss01ldap_userfilter_objectclass: persons01ldap_userlist_filter: (&(|(objectclass=person))(|(|(memberof=CN=cloud_access,OU=CLOUD,OU=APPLICATIONS,OU=sys1.fr,DC=SYS1,DC=LOCAL)(primaryGroupID=1324))))s01use_memberof_to_detect_membership: 1types: authentication

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Operating system: Linux 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64

Webserver: nginx/1.17.5 (fpm-fcgi)

Database: mysql 10.4.8

PHP version:

7.3.11-1+ubuntu18.04.1+deb.sury.org+1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, libsmbclient, Zend OPcache

Nextcloud version: 18.0.0 - 18.0.0.10

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

List of activated apps
Enabled:
 - accessibility: 1.4.0
 - activity: 2.11.0
 - admin_audit: 1.8.0
 - cloud_federation_api: 1.1.0
 - comments: 1.8.0
 - dav: 1.14.0
 - federatedfilesharing: 1.8.0
 - federation: 1.8.0
 - files: 1.13.1
 - files_external: 1.9.0
 - files_pdfviewer: 1.7.0
 - files_rightclick: 0.15.2
 - files_sharing: 1.10.1
 - files_trashbin: 1.8.0
 - files_versions: 1.11.0
 - files_videoplayer: 1.7.0
 - issuetemplate: 0.6.0
 - logreader: 2.3.0
 - lookup_server_connector: 1.6.0
 - nextcloud_announcements: 1.7.0
 - notifications: 2.6.0
 - oauth2: 1.6.0
 - onlyoffice: 4.1.4
 - password_policy: 1.8.0
 - photos: 1.0.0
 - privacy: 1.2.0
 - provisioning_api: 1.8.0
 - quota_warning: 1.7.0
 - recommendations: 0.6.0
 - serverinfo: 1.8.0
 - settings: 1.0.0
 - sharebymail: 1.8.0
 - support: 1.1.0
 - systemtags: 1.8.0
 - text: 2.0.0
 - twofactor_backupcodes: 1.7.0
 - updatenotification: 1.8.0
 - user_ldap: 1.8.0
 - viewer: 1.2.0
 - workflowengine: 2.0.0
Disabled:
 - encryption
 - firstrunwizard
 - sharelisting
 - survey_client
 - theming
 - zimbradrive

My problem is still relevant

image

Error in Chrome

This error in the browser console is the same which I had. So it looks very much the same like my issue with the apps Maps. While you don’t have the Maps app enabled, maybe another app is also causing this issue.

Can you please provide more entries from your nextcloud.log?

Maybe you can compare the enabled apps on my server with the enabled apps on your server and for testing purposes disable all apps, which you have enabled and I don’t.

Accessibility
Activities for shared file downloads
Activity
Announcement center
AppOrder
Audio Player
Auditing / Logging
Automated PDF conversion
Bookmarks
Calendar
Camera RAW Previews
Checksum
Circles
Collaborative tags
Comments
Contacts
Cookbook
Cospend
Data Analytics
Deck
Deleted files
External sites
External storage support
Extract
Federation
File access control
File sharing
Files automated tagging
First run wizard
Group folders
Guests
Issue Template
Log Reader
Markdown Editor
Metadata
Monitoring
Nextcloud announcements
Notes
Notifications
Notifications for calendar event updates
Optical character recognition
Password policy
PDF viewer
Photos
Plain text editor
Polls
Preview Generator
Privacy
QOwnNotesAPI
Quota warning
Ransomware protection
README.md
Retention
Right click
Share by mail
Simple poll for Nextcloud Talk
Support
Suspicious Login
Talk
Tasks
Telephone Provider for ContactsMenu
Temporary Files Lock
Text
Theming
Two-Factor Admin Support
Two-Factor TOTP Provider
Update notification
Versions
Video converter
Video player

Not wanting to hijack the thread but i also have this issue, though i hope this additional information helps someone figure out the problem.

I do not have the MAPS plugin installed, i CAN invite another user by email if they are on the same domain, but i cannot invite an external user, i get the following error in the logs

Swift_TransportException: Expected response code 354 but got code “554”, with message "554 5.5.1 Error: no valid recipients "

it doesn’t matter what external domain or email i use, i also cannot register new guests for the same reason, it will not invite them as it fails to send the email.

The share creation seems to fail if the email is not able to be sent.

Creating a guest account gives the following error;

An error occured during the request. Unable to proceed.
Sending email failed

(there are also 2 r’s in occurred, this should be easy to fix)

But also logs the same as above;

Swift_TransportException: Expected response code 354 but got code “554”, with message "554 5.5.1 Error: no valid recipients "

Hello, I had the same issue; have you configured your email settings correctly, so that Nextcloud can send emails at all?

Same here. Mailsserver is set up and working.

I’m having this issue also, is this a plugin issue?

VM1470:1 POST https://share.DOMAIN.com/ocs/v2.php/apps/files_sharing/api/v1/shares 403 (Forbidden)
(anonymous) @ VM1470:1
(anonymous) @ xhr.js:178
t.exports @ xhr.js:12
t.exports @ dispatchRequest.js:50
Promise.then (async)
A.request @ Axios.js:61
r.forEach.A.<computed> @ Axios.js:86
(anonymous) @ bind.js:9
(anonymous) @ ShareRequests.js:55
c @ Multiselect.js:119
(anonymous) @ Multiselect.js:119
forEach.t.<computed> @ Multiselect.js:119
P @ files_sharing_tab.js?v=aa72c152-23:1361
a @ files_sharing_tab.js?v=aa72c152-23:1361
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1361
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1361
(anonymous) @ ShareRequests.js:36
(anonymous) @ SharingInput.vue:434
c @ Multiselect.js:119
(anonymous) @ Multiselect.js:119
forEach.t.<computed> @ Multiselect.js:119
W @ files_sharing_tab.js?v=aa72c152-23:1382
a @ files_sharing_tab.js?v=aa72c152-23:1382
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1382
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1382
(anonymous) @ SharingInput.vue:161
Ue @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
Ue @ vue.runtime.esm.js:1854
e.$emit @ vue.runtime.esm.js:3888
select @ Multiselect.js:133
click @ Multiselect.js:133
Ue @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
o._wrapper @ vue.runtime.esm.js:6917
ShareRequests.js:61 Error while creating share Error: Request failed with status code 403
    at t.exports (createError.js:16)
    at t.exports (settle.js:17)
    at XMLHttpRequest.d.onreadystatechange (xhr.js:61)
(anonymous) @ ShareRequests.js:61
c @ Multiselect.js:119
(anonymous) @ Multiselect.js:119
forEach.t.<computed> @ Multiselect.js:119
P @ files_sharing_tab.js?v=aa72c152-23:1361
s @ files_sharing_tab.js?v=aa72c152-23:1361
Promise.then (async)
P @ files_sharing_tab.js?v=aa72c152-23:1361
a @ files_sharing_tab.js?v=aa72c152-23:1361
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1361
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1361
(anonymous) @ ShareRequests.js:36
(anonymous) @ SharingInput.vue:434
c @ Multiselect.js:119
(anonymous) @ Multiselect.js:119
forEach.t.<computed> @ Multiselect.js:119
W @ files_sharing_tab.js?v=aa72c152-23:1382
a @ files_sharing_tab.js?v=aa72c152-23:1382
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1382
(anonymous) @ files_sharing_tab.js?v=aa72c152-23:1382
(anonymous) @ SharingInput.vue:161
Ue @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
Ue @ vue.runtime.esm.js:1854
e.$emit @ vue.runtime.esm.js:3888
select @ Multiselect.js:133
click @ Multiselect.js:133
Ue @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
o._wrapper @ vue.runtime.esm.js:6917

There ended up being an error in my internal network mail relay host that was causing the issue. It would be better if we could get the error back from the mail server stating the exact issue. The errors presented give no clues to the real issue.

I had same issue with only 1 folder.

uBlock Origin was the issue. Somehow it blocked this folder.